Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Protected Attributes | List of all members
ns_whiteboard::text Class Reference

#include <Whiteboard.h>

Inheritance diagram for ns_whiteboard::text:
ns_whiteboard::graphic

Public Member Functions

 text (const xy_coords &coords, const string &chars, const color &c=black, const double fontSize=12.0, const string &fontName="Times-Roman", const double rotAngle=0.0, bool alignLeft=false)
 
void SetVertAlign (const vert_align a)
 
void SetHorizAlign (const horiz_align a)
 
virtual ~text ()
 
void Draw (display_type *d)
 
- Public Member Functions inherited from ns_whiteboard::graphic
 graphic ()
 
virtual ~graphic ()
 

Protected Attributes

xy_coords m_coords
 
string m_chars
 
color m_color
 
double m_fontSize
 
string m_fontName
 
double m_rotAngle
 
vert_align m_vertAlign
 
horiz_align m_horizAlign
 

Detailed Description

Class to draw text.

Constructor & Destructor Documentation

ns_whiteboard::text::text ( const xy_coords coords,
const string &  chars,
const color c = black,
const double  fontSize = 12.0,
const string &  fontName = "Times-Roman",
const double  rotAngle = 0.0,
bool  alignLeft = false 
)
inline
Parameters
coordsleft-most x-y coordinate of the text to display
charstext to display
ccolor
fontSizesize (pts)
fontNamefont
rotAnglerotation angle of text measured counterclockwise from horizontal and given in degrees
alignLeftif true, left-justify text
virtual ns_whiteboard::text::~text ( )
inlinevirtual

Member Function Documentation

void ns_whiteboard::text::Draw ( display_type d)
inlinevirtual

Method to draw an object.

Parameters
dpointer to a display_type instantiating a particular graphics file format

Implements ns_whiteboard::graphic.

void ns_whiteboard::text::SetHorizAlign ( const horiz_align  a)
inline

Method to set the horizontal alignment of the text.

void ns_whiteboard::text::SetVertAlign ( const vert_align  a)
inline

Method to set the vertical alignment of the text.

Member Data Documentation

string ns_whiteboard::text::m_chars
protected
color ns_whiteboard::text::m_color
protected
xy_coords ns_whiteboard::text::m_coords
protected
string ns_whiteboard::text::m_fontName
protected
double ns_whiteboard::text::m_fontSize
protected
horiz_align ns_whiteboard::text::m_horizAlign
protected
double ns_whiteboard::text::m_rotAngle
protected
vert_align ns_whiteboard::text::m_vertAlign
protected

The documentation for this class was generated from the following file: