Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

XYText Class Reference

#include <xytext.h>

Inheritance diagram for XYText:

Inheritance graph
[legend]
Collaboration diagram for XYText:

Collaboration graph
[legend]
List of all members.

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

Member Enumeration Documentation

enum XYText::Alignment
 

Enumeration values:
north 
south 
east 
west 
northEast 
northWest 
southEast 
southWest 
center 
baseLeft 
baseCenter 
baseRight 
leftBase 
centerBase 
rightBase 

Definition at line 44 of file xytext.h.

enum XYText::Orientation
 

Enumeration values:
vertTopBot 
horizontal 
vertBotTop 

Definition at line 36 of file xytext.h.

enum XYText::Style
 

Enumeration values:
plain 
bold 
italic 
boldItalic 
italicBold 

Definition at line 73 of file xytext.h.

enum XYText::Typeface
 

Enumeration values:
common 
timesRoman 
courier 
helvetica 

Definition at line 64 of file xytext.h.


Constructor & Destructor Documentation

XYText::XYText const char *    text,
XYCoordinate    x,
XYCoordinate    y,
long    color,
Typeface    font,
Style    style,
Alignment    alignment,
Orientation    orientation,
xybool    underline = xyfalse,
xybool    visible = xytrue
 

Definition at line 21 of file xytext.cpp.

XYText::XYText const char *    text,
XYCoordinate    x,
XYCoordinate    y,
xybool    visible = xytrue
 

Definition at line 42 of file xytext.cpp.

References XY_BLACK, and xyfalse.

XYText::XYText const char *    text,
long    color,
Typeface    font,
Style    style,
Alignment    alignment,
Orientation    orientation,
xybool    underline = xyfalse,
xybool    visible = xytrue
 

Definition at line 57 of file xytext.cpp.

XYText::XYText long    color,
Typeface    font,
Style    style,
Alignment    alignment,
Orientation    orientation,
xybool    underline = xyfalse,
xybool    visible = xytrue
 

Definition at line 76 of file xytext.cpp.

XYText::~XYText void    [virtual]
 

Definition at line 95 of file xytext.cpp.


Member Function Documentation

int XYText::align void    const [virtual]
 

Definition at line 146 of file xytext.cpp.

References _alignment.

Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw().

void XYText::align Alignment    a [virtual]
 

Definition at line 141 of file xytext.cpp.

References _alignment.

virtual void XYText::boundingBox int &    bxmin,
int &    bymin,
int &    bxmax,
int &    bymax
const [pure virtual]
 

Implements XYObject.

Implemented in XYMultiRasterText, XYMultilineVectorText, XYRasterText, and XYVectorText.

Referenced by XYLogScaleDecorator::draw(), fence(), and pick().

long XYText::color void    const [virtual]
 

Definition at line 116 of file xytext.cpp.

References _color.

Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw().

void XYText::color long    c [virtual]
 

Definition at line 111 of file xytext.cpp.

References _color.

virtual void XYText::draw int    xmin,
int    ymin,
int    xmax,
int    ymax
const [pure virtual]
 

Implements XYObject.

Implemented in XYMultiRasterText, XYMultilineVectorText, XYRasterText, and XYVectorText.

virtual void XYText::draw void    [pure virtual]
 

Implements XYObject.

Implemented in XYMultiRasterText, XYMultilineVectorText, XYRasterText, and XYVectorText.

Referenced by XYLogScaleDecorator::draw().

xybool XYText::fence int    x0,
int    y0,
int    x1,
int    y1
[virtual]
 

Definition at line 192 of file xytext.cpp.

References boundingBox(), mtInclude(), XYObject::visible(), xybool, and xyfalse.

int XYText::font void    const [virtual]
 

Definition at line 126 of file xytext.cpp.

References _font.

Referenced by XYRasterText::draw(), and XYMultiRasterText::draw().

void XYText::font Typeface    f [virtual]
 

Definition at line 121 of file xytext.cpp.

References _font.

void XYText::insertAction XYGraph   g [virtual]
 

Definition at line 205 of file xytext.cpp.

void XYText::operator= const XYText &    t [virtual]
 

Definition at line 171 of file xytext.cpp.

References _text.

int XYText::orientation void    const [virtual]
 

Definition at line 156 of file xytext.cpp.

References _orientation.

Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw().

void XYText::orientation Orientation    o [virtual]
 

Definition at line 151 of file xytext.cpp.

References _orientation.

xybool XYText::pick int    px,
int    py
[virtual]
 

Definition at line 180 of file xytext.cpp.

References boundingBox(), mtPointInRect(), XYObject::visible(), xybool, and xyfalse.

void XYText::removeAction XYGraph   g [virtual]
 

Definition at line 210 of file xytext.cpp.

int XYText::style void    const [virtual]
 

Definition at line 136 of file xytext.cpp.

References _style.

Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw().

void XYText::style Style    sl [virtual]
 

Definition at line 131 of file xytext.cpp.

References _style.

char * XYText::text void    const [virtual]
 

Reimplemented in XYMultiRasterText.

Definition at line 106 of file xytext.cpp.

References _text.

Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::text().

void XYText::text const char *    s [virtual]
 

Reimplemented in XYMultiRasterText.

Definition at line 100 of file xytext.cpp.

References _text.

Referenced by XYLogScaleDecorator::draw().

xybool XYText::underline void    const [virtual]
 

Definition at line 166 of file xytext.cpp.

References _underline, and xybool.

Referenced by XYRasterText::draw(), XYVectorText::draw(), and XYMultiRasterText::draw().

void XYText::underline xybool    u [virtual]
 

Definition at line 161 of file xytext.cpp.

References _underline.


Member Data Documentation

Alignment XYText::_alignment [protected]
 

Definition at line 198 of file xytext.h.

Referenced by align().

long XYText::_color [protected]
 

Definition at line 195 of file xytext.h.

Referenced by color().

Typeface XYText::_font [protected]
 

Definition at line 196 of file xytext.h.

Referenced by font().

Orientation XYText::_orientation [protected]
 

Definition at line 199 of file xytext.h.

Referenced by orientation().

Style XYText::_style [protected]
 

Definition at line 197 of file xytext.h.

Referenced by style().

char* XYText::_text [protected]
 

Definition at line 194 of file xytext.h.

Referenced by operator=(), and text().

xybool XYText::_underline [protected]
 

Definition at line 201 of file xytext.h.

Referenced by underline().

const int XYText::_underline_gap = 2 [static, protected]
 

Definition at line 19 of file xytext.cpp.


The documentation for this class was generated from the following files:
XY
Tecgraf / PUC-Rio - Computer Graphics Technology Group