GLabel Class Reference

#include <graph.h>

Inheritance diagram for GLabel:
Inheritance graph
[legend]
Collaboration diagram for GLabel:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GLabel (const char *s, const Color *, int fixtype=1, float size=12, float x_align=0., float y_align=0.)
virtual ~GLabel ()
virtual Glyph * clone () const
virtual void request (Requisition &) const
virtual void allocate (Canvas *, const Allocation &, Extension &)
virtual void draw (Canvas *, const Allocation &) const
virtual void save (ostream &, Coord, Coord)
virtual void pick (Canvas *, const Allocation &, int depth, Hit &)
void text (const char *)
void fixed (float scale)
void vfixed (float scale)
void relative (float scale)
void align (float x, float y)
void color (const Color *)
boolean fixed () const
float scale () const
const char * text () const
int fixtype () const
float x_align () const
float y_align () const
const Color * color () const
boolean erase_flag ()
void erase_flag (boolean b)
GPolyLinelabeled_line () const

Private Member Functions

void need (Canvas *, const Allocation &, Extension &) const

Private Attributes

int fixtype_
float scale_
float x_align_
float y_align_
CopyString text_
Glyph * label_
const Color * color_
GPolyLinegpl_
boolean erase_flag_

Friends

void GPolyLine::label (GLabel *)

Constructor & Destructor Documentation

GLabel::GLabel ( const char *  s,
const Color *  ,
int  fixtype = 1,
float  size = 12,
float  x_align = 0.,
float  y_align = 0. 
)
virtual GLabel::~GLabel (  )  [virtual]

Member Function Documentation

void GLabel::align ( float  x,
float  y 
)
virtual void GLabel::allocate ( Canvas *  ,
const Allocation &  ,
Extension &   
) [virtual]
virtual Glyph* GLabel::clone (  )  const [virtual]
const Color* GLabel::color (  )  const [inline]

References color_.

void GLabel::color ( const Color *   ) 
virtual void GLabel::draw ( Canvas *  ,
const Allocation &   
) const [virtual]
void GLabel::erase_flag ( boolean  b  )  [inline]

References erase_flag_.

boolean GLabel::erase_flag (  )  [inline]

References erase_flag_.

boolean GLabel::fixed (  )  const [inline]

References fixtype_.

void GLabel::fixed ( float  scale  ) 
int GLabel::fixtype (  )  const [inline]

References fixtype_.

Referenced by gr_line_info().

GPolyLine* GLabel::labeled_line (  )  const [inline]

References gpl_.

void GLabel::need ( Canvas *  ,
const Allocation &  ,
Extension &   
) const [private]
virtual void GLabel::pick ( Canvas *  ,
const Allocation &  ,
int  depth,
Hit &   
) [virtual]
void GLabel::relative ( float  scale  ) 
virtual void GLabel::request ( Requisition &   )  const [virtual]
virtual void GLabel::save ( ostream &  ,
Coord  ,
Coord   
) [virtual]
float GLabel::scale (  )  const [inline]

References scale_.

const char* GLabel::text (  )  const [inline]

References text_.

void GLabel::text ( const char *   ) 

Referenced by gr_line_info().

void GLabel::vfixed ( float  scale  ) 
float GLabel::x_align (  )  const [inline]

References x_align_.

float GLabel::y_align (  )  const [inline]

References y_align_.


Friends And Related Function Documentation

void GPolyLine::label ( GLabel  )  [friend]

Member Data Documentation

const Color* GLabel::color_ [private]

Referenced by color().

Referenced by erase_flag().

int GLabel::fixtype_ [private]

Referenced by fixed(), and fixtype().

GPolyLine* GLabel::gpl_ [private]

Referenced by labeled_line().

Glyph* GLabel::label_ [private]
float GLabel::scale_ [private]

Referenced by scale().

CopyString GLabel::text_ [private]

Referenced by text().

float GLabel::x_align_ [private]

Referenced by x_align().

float GLabel::y_align_ [private]

Referenced by y_align().


The documentation for this class was generated from the following file:
Generated on Mon Jun 13 08:10:31 2011 for NEURON by  doxygen 1.6.3