Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

oofGeoSuppressibleText Class Reference
[OOFILE Graphing engine.]

#include <oofGeos.h>

Inheritance diagram for oofGeoSuppressibleText:

Inheritance graph
[legend]
Collaboration diagram for oofGeoSuppressibleText:

Collaboration graph
[legend]
List of all members.

Detailed Description

Text on graphs that can be suppressed based on scaling.

Adds decision making into calling oofGeoText::DrawSelf by calling virtual method ShouldDraw.


Public Types

enum  PositionState {
  posNone, posTop, posLeft, posRight,
  posBottom, posBelow, posToLeft, posCentre
}

Public Member Functions

virtual void Transform (oofTransformationManager *inTransformationManagerPtr)
void setTextSize (int PointSize)
bool setFontSize (int textSize=-1)
int calcCharHeight (int textSize=-1)
oofSeriesSeriesPtr ()
PositionState Position ()
virtual void setLocation (long inXIdeal, long inYIdeal)
int locationX ()
int locationY ()
void draw ()
void setDrawStyle (const oofColor &fg=oofColor::Black, const oofPattern &pat=oofPattern::gray, const oofPattern &mono=oofPattern::gray, const oofColor &bg=oofColor::White)
void setDrawStyle (const oofDrawStyle &)
const oofDrawStyledrawStyle () const

Protected Member Functions

 oofGeoSuppressibleText (int XIdeal, int YIdeal, int Width, const char *inString, oofSeries *SeriesPtr=0, PositionState=posNone)
 oofGeoSuppressibleText (int Width, const char *inString)
virtual oofRect BoundingRect (oofTransformationManager *)
virtual void describe (std::ostream &) const
virtual oofString geoType () const
virtual void DrawSelf (const oofDrawStyle *)
virtual bool ShouldDraw () const=0

Protected Attributes

oofString mText
unsigned int mIdealTextSize
unsigned int mWidthIdeal
int mDrawTextSize
int mDrawWidth
int mDrawHeight
oofTextSizer mSizer
int mXIdeal
int mYIdeal
int mXDraw
int mYDraw
oofSeriesmSeriesPtr
PositionState mPosition
oofDrawStylemDrawStyle


Member Enumeration Documentation

enum oofGeo::PositionState [inherited]
 

Enumeration values:
posNone 
posTop 
posLeft 
posRight 
posBottom 
posBelow 
posToLeft 
posCentre 


Constructor & Destructor Documentation

oofGeoSuppressibleText::oofGeoSuppressibleText int  XIdeal,
int  YIdeal,
int  Width,
const char *  inString,
oofSeries SeriesPtr = 0,
PositionState  = posNone
[protected]
 

oofGeoSuppressibleText::oofGeoSuppressibleText int  Width,
const char *  inString
[protected]
 


Member Function Documentation

oofRect oofGeoSuppressibleText::BoundingRect oofTransformationManager  )  [protected, virtual]
 

Reimplemented from oofGeoText.

int oofGeoText::calcCharHeight int  textSize = -1  )  [inline, inherited]
 

void oofGeoSuppressibleText::describe std::ostream &   )  const [protected, virtual]
 

Reimplemented from oofGeoText.

void oofGeo::draw  )  [inherited]
 

void oofGeoSuppressibleText::DrawSelf const oofDrawStyle  )  [protected, virtual]
 

Reimplemented from oofGeoText.

const oofDrawStyle * oofColorable::drawStyle  )  const [inline, inherited]
 

oofString oofGeoSuppressibleText::geoType  )  const [protected, virtual]
 

Reimplemented from oofGeoText.

Reimplemented in oofGeoTitle, oofGeoXLabel, and oofGeoYLabel.

int oofGeo::locationX  )  [inline, inherited]
 

int oofGeo::locationY  )  [inline, inherited]
 

PositionState oofGeo::Position  )  [inline, inherited]
 

oofSeries * oofGeo::SeriesPtr  )  [inherited]
 

void oofColorable::setDrawStyle const oofDrawStyle  )  [inline, inherited]
 

void oofColorable::setDrawStyle const oofColor fg = oofColor::Black,
const oofPattern pat = oofPattern::gray,
const oofPattern mono = oofPattern::gray,
const oofColor bg = oofColor::White
[inline, inherited]
 

bool oofGeoText::setFontSize int  textSize = -1  )  [inline, inherited]
 

void oofGeo::setLocation long  inXIdeal,
long  inYIdeal
[virtual, inherited]
 

void oofGeoText::setTextSize int  PointSize  )  [inline, inherited]
 

virtual bool oofGeoSuppressibleText::ShouldDraw  )  const [protected, pure virtual]
 

Implemented in oofGeoTitle, oofGeoXLabel, and oofGeoYLabel.

void oofGeoText::Transform oofTransformationManager inTransformationManagerPtr  )  [virtual, inherited]
 

Implements oofGeo.

Reimplemented in oofGeoTitle, oofGeoXLabel, oofGeoYLabel, oofGeoXTickLabel, and oofGeoYTickLabel.


Member Data Documentation

int oofGeoText::mDrawHeight [protected, inherited]
 

oofDrawStyle* oofColorable::mDrawStyle [protected, inherited]
 

int oofGeoText::mDrawTextSize [protected, inherited]
 

int oofGeoText::mDrawWidth [protected, inherited]
 

unsigned int oofGeoText::mIdealTextSize [protected, inherited]
 

PositionState oofGeo::mPosition [protected, inherited]
 

oofSeries* oofGeo::mSeriesPtr [protected, inherited]
 

oofTextSizer oofGeoText::mSizer [protected, inherited]
 

oofString oofGeoText::mText [protected, inherited]
 

unsigned int oofGeoText::mWidthIdeal [protected, inherited]
 

int oofGeo::mXDraw [protected, inherited]
 

int oofGeo::mXIdeal [protected, inherited]
 

int oofGeo::mYDraw [protected, inherited]
 

int oofGeo::mYIdeal [protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 21:37:11 2004 for OOFILE by doxygen 1.3.5