#include <xytext.h>
Inheritance diagram for XYText:
Public Types | |
enum | Orientation { vertTopBot = -1, horizontal, vertBotTop } |
enum | Alignment { north, south, east, west, northEast, northWest, southEast, southWest, center, baseLeft, baseCenter, baseRight, leftBase = baseLeft, centerBase = baseCenter, rightBase = baseRight } |
enum | Typeface { common, timesRoman, courier, helvetica } |
enum | Style { plain, bold, italic, boldItalic, italicBold = boldItalic } |
Public Methods | |
XYText (const char *text, XYCoordinate x, XYCoordinate y, long color, Typeface font, Style style, Alignment alignment, Orientation orientation, xybool underline=xyfalse, xybool visible=xytrue) | |
XYText (const char *text, XYCoordinate x, XYCoordinate y, xybool visible=xytrue) | |
XYText (const char *text, long color, Typeface font, Style style, Alignment alignment, Orientation orientation, xybool underline=xyfalse, xybool visible=xytrue) | |
XYText (long color, Typeface font, Style style, Alignment alignment, Orientation orientation, xybool underline=xyfalse, xybool visible=xytrue) | |
virtual | ~XYText (void) |
virtual void | color (long c) |
virtual long | color (void) const |
virtual void | font (Typeface f) |
virtual int | font (void) const |
virtual void | style (Style sl) |
virtual int | style (void) const |
virtual void | align (Alignment a) |
virtual int | align (void) const |
virtual void | orientation (Orientation o) |
virtual int | orientation (void) const |
virtual void | text (const char *s) |
virtual char * | text (void) const |
virtual void | underline (xybool u) |
virtual xybool | underline (void) const |
virtual void | operator= (const XYText &t) |
virtual void | insertAction (XYGraph *g) |
virtual void | removeAction (XYGraph *g) |
virtual xybool | pick (int px, int py) |
virtual xybool | fence (int x0, int y0, int x1, int y1) |
virtual void | draw (void)=0 |
virtual void | draw (int xmin, int ymin, int xmax, int ymax) const=0 |
virtual void | boundingBox (int &bxmin, int &bymin, int &bxmax, int &bymax) const=0 |
Protected Attributes | |
char * | _text |
long | _color |
Typeface | _font |
Style | _style |
Alignment | _alignment |
Orientation | _orientation |
xybool | _underline |
Static Protected Attributes | |
const int | _underline_gap = 2 |
|
|
|
|
|
|
|
|
|
Definition at line 21 of file xytext.cpp. |
|
Definition at line 42 of file xytext.cpp. |
|
Definition at line 57 of file xytext.cpp. |
|
Definition at line 76 of file xytext.cpp. |
|
Definition at line 95 of file xytext.cpp. |
|
Definition at line 146 of file xytext.cpp. References _alignment. Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw(). |
|
Definition at line 141 of file xytext.cpp. References _alignment. |
|
Implements XYObject. Implemented in XYMultiRasterText, XYMultilineVectorText, XYRasterText, and XYVectorText. Referenced by XYLogScaleDecorator::draw(), fence(), and pick(). |
|
Definition at line 116 of file xytext.cpp. References _color. Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw(). |
|
Definition at line 111 of file xytext.cpp. References _color. |
|
Implements XYObject. Implemented in XYMultiRasterText, XYMultilineVectorText, XYRasterText, and XYVectorText. |
|
Implements XYObject. Implemented in XYMultiRasterText, XYMultilineVectorText, XYRasterText, and XYVectorText. Referenced by XYLogScaleDecorator::draw(). |
|
Definition at line 192 of file xytext.cpp. References boundingBox(), mtInclude(), XYObject::visible(), xybool, and xyfalse. |
|
Definition at line 126 of file xytext.cpp. References _font. Referenced by XYRasterText::draw(), and XYMultiRasterText::draw(). |
|
Definition at line 121 of file xytext.cpp. References _font. |
|
Definition at line 205 of file xytext.cpp. |
|
Definition at line 171 of file xytext.cpp. References _text. |
|
Definition at line 156 of file xytext.cpp. References _orientation. Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw(). |
|
Definition at line 151 of file xytext.cpp. References _orientation. |
|
Definition at line 180 of file xytext.cpp. References boundingBox(), mtPointInRect(), XYObject::visible(), xybool, and xyfalse. |
|
Definition at line 210 of file xytext.cpp. |
|
Definition at line 136 of file xytext.cpp. References _style. Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw(). |
|
Definition at line 131 of file xytext.cpp. References _style. |
|
Reimplemented in XYMultiRasterText. Definition at line 106 of file xytext.cpp. References _text. Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::text(). |
|
Reimplemented in XYMultiRasterText. Definition at line 100 of file xytext.cpp. References _text. Referenced by XYLogScaleDecorator::draw(). |
|
Definition at line 166 of file xytext.cpp. References _underline, and xybool. Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw(). |
|
Definition at line 161 of file xytext.cpp. References _underline. |
|
Definition at line 198 of file xytext.h. Referenced by align(). |
|
Definition at line 195 of file xytext.h. Referenced by color(). |
|
Definition at line 196 of file xytext.h. Referenced by font(). |
|
Definition at line 199 of file xytext.h. Referenced by orientation(). |
|
Definition at line 197 of file xytext.h. Referenced by style(). |
|
Definition at line 194 of file xytext.h. Referenced by operator=(), and text(). |
|
Definition at line 201 of file xytext.h. Referenced by underline(). |
|
Definition at line 19 of file xytext.cpp. |