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

oofStackedBarGraph Class Reference
[OOFILE Graphing engine.]

#include <oofGrphs.h>

Inheritance diagram for oofStackedBarGraph:

Inheritance graph
[legend]
Collaboration diagram for oofStackedBarGraph:

Collaboration graph
[legend]
List of all members.

Detailed Description

Graph of oofGeoBar horizontal bars where each point in series is percentage of one bar.

Total bar size at any given X point is sum of values of all series at that point. So stacked bar makes it easy to compare both relative values at each X point and totals between different X points.


Public Types

enum  { BarWidth = 20 }
enum  { Spacing = 4 }
enum  { SeriesSpacing = 10 }
typedef RECT Rect

Public Member Functions

 oofStackedBarGraph (dbView *clonedView=0, unsigned long numOverlaid=0)
virtual oofGraphclone () const
virtual void finishConstruction (dbView *, const char *theTitle, unsigned long yAxisHeight)
virtual void finishConstructionWithPresets ()
void draw ()
void describe (std::ostream &os) const
void setView (dbView *)
dbViewgetView ()
void setTitle (const char *)
const char * getTitle ()
const char * getType ()
void setPaneRect (Rect inRect)
void setPaneRect (oofRect inRect)
void clearTransform ()
void setDrawStyles (oofDrawStyleSet &)
void setDrawStyles (oofDrawStyleArray &)
void setStyleToMono ()
void setStyleToColor ()
bool drawStylesWereSet () const
const oofGraphSettingssettings () const
oofGraphSettingsgetLocalSettings ()
void setCurrentDC (HDC hdc)
const HDC getCurrentDC ()
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
void setOverlaid (unsigned long numOverlaid)
void setOverlayView (dbView *clonedView)
 will become adoptedView in future

void setOverlayView (const dbView &clonedView)
dbViewgetOverlayView () const
unsigned long getNumOverlaid () const

Static Public Member Functions

oofGraphcurrentGraph ()
oofGraphSettingsdefaultSettings ()

Protected Member Functions

virtual void DrawSelf ()
virtual void DescribeSelf (std::ostream &os) const
void becomeCurrent ()

Protected Attributes

oofPlotBits mPlotBits
oofSeriesSet mSeriesSet
bool mIsMono
oofGraphSettingsmSettings
bool mDrawStylesWereSet
dbViewmView
OOF_String mTitle
OOF_String mType
oofDrawStylemDrawStyle
unsigned long mNumOverlaid
 Allow for items in the main view to be overlaid.

dbViewmOverlayView
 OWNED Allow for adding another view (long) with an overlay in it.


Static Protected Attributes

oofGraphsCurrentGraph


Member Typedef Documentation

typedef RECT oofGraph::Rect [inherited]
 


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
BarWidth 

anonymous enum
 

Enumeration values:
Spacing 

anonymous enum
 

Enumeration values:
SeriesSpacing 


Constructor & Destructor Documentation

oofStackedBarGraph::oofStackedBarGraph dbView clonedView = 0,
unsigned long  numOverlaid = 0
 


Member Function Documentation

void oofGraph::becomeCurrent  )  [protected, inherited]
 

void oofGraph::clearTransform  )  [inline, inherited]
 

oofGraph * oofStackedBarGraph::clone  )  const [virtual]
 

Implements oofGraph.

oofGraph * oofGraph::currentGraph  )  [static, inherited]
 

oofGraphSettings * oofGraph::defaultSettings  )  [static, inherited]
 

void oofGraph::describe std::ostream &  os  )  const [inherited]
 

void oofGraph::DescribeSelf std::ostream &  os  )  const [protected, virtual, inherited]
 

void oofGraph::draw  )  [inherited]
 

void oofGraph::DrawSelf  )  [protected, virtual, inherited]
 

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

bool oofGraph::drawStylesWereSet  )  const [inline, inherited]
 

void oofStackedBarGraph::finishConstruction dbView ,
const char *  theTitle,
unsigned long  yAxisHeight
[virtual]
 

Implements oofGraph.

void oofGraph::finishConstructionWithPresets  )  [virtual, inherited]
 

const HDC oofGraph::getCurrentDC  )  [inline, inherited]
 

oofGraphSettings * oofGraph::getLocalSettings  )  [inherited]
 

unsigned long OOF_mixOverlayableGraph::getNumOverlaid  )  const [inline, inherited]
 

dbView * OOF_mixOverlayableGraph::getOverlayView  )  const [inline, inherited]
 

const char * oofGraph::getTitle  )  [inherited]
 

const char * oofGraph::getType  )  [inherited]
 

dbView * oofGraph::getView  )  [inherited]
 

void oofGraph::setCurrentDC HDC  hdc  )  [inline, 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]
 

void oofGraph::setDrawStyles oofDrawStyleArray  )  [inherited]
 

void oofGraph::setDrawStyles oofDrawStyleSet  )  [inherited]
 

void OOF_mixOverlayableGraph::setOverlaid unsigned long  numOverlaid  )  [inherited]
 

void OOF_mixOverlayableGraph::setOverlayView const dbView clonedView  )  [inherited]
 

void OOF_mixOverlayableGraph::setOverlayView dbView clonedView  )  [inherited]
 

will become adoptedView in future

void oofGraph::setPaneRect oofRect  inRect  )  [inherited]
 

void oofGraph::setPaneRect Rect  inRect  )  [inherited]
 

void oofGraph::setStyleToColor  )  [inherited]
 

void oofGraph::setStyleToMono  )  [inherited]
 

const oofGraphSettings * oofGraph::settings  )  const [inherited]
 

void oofGraph::setTitle const char *   )  [inherited]
 

void oofGraph::setView dbView  )  [inherited]
 


Member Data Documentation

oofDrawStyle* oofColorable::mDrawStyle [protected, inherited]
 

bool oofGraph::mDrawStylesWereSet [protected, inherited]
 

bool oofGraph::mIsMono [protected, inherited]
 

unsigned long OOF_mixOverlayableGraph::mNumOverlaid [protected, inherited]
 

Allow for items in the main view to be overlaid.

dbView* OOF_mixOverlayableGraph::mOverlayView [protected, inherited]
 

OWNED Allow for adding another view (long) with an overlay in it.

oofPlotBits oofGraph::mPlotBits [protected, inherited]
 

oofSeriesSet oofGraph::mSeriesSet [protected, inherited]
 

oofGraphSettings* oofGraph::mSettings [protected, inherited]
 

OOF_String oofGraph::mTitle [protected, inherited]
 

OOF_String oofGraph::mType [protected, inherited]
 

dbView* oofGraph::mView [protected, inherited]
 

oofGraph * oofGraph::sCurrentGraph [static, protected, inherited]
 


The documentation for this class was generated from the following files:
Generated on Thu Jan 1 22:04:43 2004 for OOFILE by doxygen 1.3.5