class SimpleLabel

abstract (simple) text label class.

Inheritance:


Public Fields

static const int MIN_TEXT_WIDTH
minimal width of cell text outline.
static const int MIN_TEXT_HEIGHT
minimal height of cell text outline.

Public Methods

SimpleLabel (Grafport *g, XFont *font)
SimpleLabel (const SimpleLabel &text)
virtual ~SimpleLabel ()
friend int operator== (const SimpleLabel &t1, const SimpleLabel &t2)
friend int Compare (SimpleLabel *r1, SimpleLabel *r2)
virtual void Draw ()
draw label.
virtual void Undraw ()
erase label.
void DrawOutLine (const Point *c)
when label is dragged only a dotted box (outline) is drawn
virtual void UpdatePosition (const Point *)
update position and redraw.
virtual void UpdateText (const string *)
update label and redraw.
void SetPosition (const Point *pt)
set position.
void SetText (const string *s)
set label text
void SetGrafport (Grafport *g)
set grafport
void CalcSize ()
calculate text size.
bool HitText (int x, int y)
true iff (x,y) is in text.
const Point* GetPosition () const
simple 'get' actions.
const Point* GetTopLeft () const
const string* GetText () const
int GetWidth () const
int GetHeight () const
XFont* GetFont () const
void SetFont (XFont *f)
virtual void UpdateFont (XFont *font)
int FontHeight () const

Protected Methods

Grafport* GetGrafport () const

Documentation

abstract (simple) text label class.
SimpleLabel(Grafport *g, XFont *font)

SimpleLabel(const SimpleLabel &text)

virtual ~SimpleLabel()

friend int operator==(const SimpleLabel &t1, const SimpleLabel &t2)

friend int Compare(SimpleLabel *r1, SimpleLabel *r2)

virtual void Draw()
draw label.

virtual void Undraw()
erase label.

void DrawOutLine(const Point *c)
when label is dragged only a dotted box (outline) is drawn

virtual void UpdatePosition(const Point *)
update position and redraw.

virtual void UpdateText(const string *)
update label and redraw.

void SetPosition(const Point *pt)
set position.

void SetText(const string *s)
set label text

void SetGrafport(Grafport *g)
set grafport

void CalcSize()
calculate text size.

bool HitText(int x, int y)
true iff (x,y) is in text.

const Point* GetPosition() const
simple 'get' actions.

const Point* GetTopLeft() const

const string* GetText() const

int GetWidth() const

int GetHeight() const

XFont* GetFont() const

void SetFont(XFont *f)

virtual void UpdateFont(XFont *font)

int FontHeight() const

static const int MIN_TEXT_WIDTH
minimal width of cell text outline.

static const int MIN_TEXT_HEIGHT
minimal height of cell text outline.

Grafport* GetGrafport() const


Direct child classes:
RowColumnLabel
CellText

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de