OOFILE  1.9
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
oofStackedBarGraph Class Reference

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

#include <oofGrphs.h>

Inheritance diagram for oofStackedBarGraph:
Inheritance graph
[legend]
Collaboration diagram for oofStackedBarGraph:
Collaboration graph
[legend]

Public Types

enum  { BarWidth = 20 }
 
enum  { Spacing = 4 }
 
enum  { SeriesSpacing = 10 }
 

Public Member Functions

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

Static Public Member Functions

static oofGraphcurrentGraph ()
 
static oofGraphSettingsdefaultSettings ()
 

Protected Member Functions

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

Protected Attributes

oofDrawStylemDrawStyle
 
bool mDrawStylesWereSet
 
bool mIsMono
 
unsigned long mNumOverlaid
 Allow for items in the main view to be overlaid. More...
 
dbViewmOverlayView
 OWNED Allow for adding another view (long) with an overlay in it. More...
 
oofPlotBits mPlotBits
 
oofSeriesSet mSeriesSet
 
oofGraphSettingsmSettings
 
OOF_String mTitle
 
OOF_String mType
 
dbViewmView
 

Static Protected Attributes

static oofGraphsCurrentGraph
 

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.

Definition at line 282 of file oofGrphs.h.

Constructor & Destructor Documentation

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

Definition at line 717 of file oofGrphs.cpp.

References oofGraph::setView().

Referenced by clone().

Member Function Documentation

void oofGraph::becomeCurrent ( )
protectedinherited

Definition at line 259 of file oofGrphs.cpp.

References oofGraph::sCurrentGraph.

Referenced by oofGraph::draw(), and oofGraph::oofGraph().

void oofGraph::clearTransform ( )
inlineinherited

Definition at line 93 of file oofGrphs.h.

oofGraph * oofStackedBarGraph::clone ( ) const
virtual

Implements oofGraph.

Definition at line 725 of file oofGrphs.cpp.

References oofStackedBarGraph().

oofGraph * oofGraph::currentGraph ( )
staticinherited
oofGraphSettings * oofGraph::defaultSettings ( )
staticinherited
void oofGraph::describe ( std::ostream &  os) const
inherited

Definition at line 93 of file oofGrphs.cpp.

References oofGraph::DescribeSelf().

Referenced by oofRepGraphBand_MacRender::draw().

void oofGraph::DescribeSelf ( std::ostream &  os) const
protectedvirtualinherited

Definition at line 248 of file oofGrphs.cpp.

References oofPlotBits::describe(), oofGraph::mIsMono, and oofGraph::mPlotBits.

Referenced by oofGraph::describe().

void oofGraph::draw ( )
inherited
void oofGraph::DrawSelf ( )
protectedvirtualinherited
const oofDrawStyle * oofColorable::drawStyle ( ) const
inlineinherited

Definition at line 60 of file oofClrbl.h.

References oofColorable::mDrawStyle.

Referenced by oofGeo::draw(), and oofColorable::oofColorable().

bool oofGraph::drawStylesWereSet ( ) const
inlineinherited

Definition at line 373 of file oofGrphs.h.

References oofGraph::mDrawStylesWereSet.

Referenced by oofRepGraphBand::finishConstruction().

void oofStackedBarGraph::finishConstruction ( dbView theView,
const char *  theTitle,
unsigned long  yAxisHeight 
)
virtual
void oofGraph::finishConstructionWithPresets ( )
virtualinherited
oofGraphSettings * oofGraph::getLocalSettings ( )
inherited

Definition at line 225 of file oofGrphs.cpp.

References oofGraph::mSettings.

Referenced by oofGraphSettingsCompleter::completeSettings().

unsigned long OOF_mixOverlayableGraph::getNumOverlaid ( ) const
inlineinherited

Definition at line 406 of file oofGrphs.h.

References OOF_mixOverlayableGraph::mNumOverlaid.

Referenced by oofRepGraphBand::numOverlaid().

dbView * OOF_mixOverlayableGraph::getOverlayView ( ) const
inlineinherited

Definition at line 399 of file oofGrphs.h.

References OOF_mixOverlayableGraph::mOverlayView.

Referenced by oofRepGraphBand::view().

const char * oofGraph::getTitle ( )
inherited
const char * oofGraph::getType ( )
inherited

Definition at line 170 of file oofGrphs.cpp.

References oofGraph::mType.

Referenced by oofRepGraphBand_XMLRender::describeLayout().

dbView * oofGraph::getView ( )
inherited
void oofColorable::setDrawStyle ( const oofColor fg = oofColor::Black,
const oofPattern pat = oofPattern::gray,
const oofPattern mono = oofPattern::gray,
const oofColor bg = oofColor::White 
)
inlineinherited

Definition at line 40 of file oofClrbl.h.

References oofColorable::mDrawStyle.

void oofColorable::setDrawStyle ( const oofDrawStyle inDrawStyle)
inlineinherited

Definition at line 48 of file oofClrbl.h.

References oofColorable::mDrawStyle.

void oofGraph::setDrawStyles ( oofDrawStyleSet inSet)
inherited
void oofGraph::setDrawStyles ( oofDrawStyleArray inArray)
inherited
void OOF_mixOverlayableGraph::setOverlaid ( unsigned long  numOverlaid)
inherited
void OOF_mixOverlayableGraph::setOverlayView ( dbView clonedView)
inherited

will become adoptedView in future

Definition at line 288 of file oofGrphs.cpp.

References OOF_mixOverlayableGraph::mOverlayView.

Referenced by oofGraphWindow::CreateStackedBarGraphWindowWithOverlayView().

void OOF_mixOverlayableGraph::setOverlayView ( const dbView clonedView)
inherited

Definition at line 296 of file oofGrphs.cpp.

References OOF_mixOverlayableGraph::mOverlayView.

void oofGraph::setPaneRect ( Rect  inRect)
inherited
void oofGraph::setPaneRect ( oofRect  inRect)
inherited

Definition at line 114 of file oofGrphs.cpp.

References oofGraph::mPlotBits, and oofPlotBits::setPaneRect().

void oofGraph::setStyleToColor ( )
inherited
void oofGraph::setStyleToMono ( )
inherited
const oofGraphSettings * oofGraph::settings ( ) const
inherited
void oofGraph::setTitle ( const char *  inTitle)
inherited

Definition at line 157 of file oofGrphs.cpp.

References oofGraph::mTitle.

Referenced by oofRepGraphBand::oofRepGraphBand().

void oofGraph::setView ( dbView inView)
inherited

Member Data Documentation

oofDrawStyle* oofColorable::mDrawStyle
protectedinherited
bool oofGraph::mDrawStylesWereSet
protectedinherited

Definition at line 123 of file oofGrphs.h.

Referenced by oofGraph::drawStylesWereSet(), and oofGraph::setDrawStyles().

bool oofGraph::mIsMono
protectedinherited
unsigned long OOF_mixOverlayableGraph::mNumOverlaid
protectedinherited

Allow for items in the main view to be overlaid.

Definition at line 154 of file oofGrphs.h.

Referenced by finishConstruction(), OOF_mixOverlayableGraph::getNumOverlaid(), and OOF_mixOverlayableGraph::setOverlaid().

dbView* OOF_mixOverlayableGraph::mOverlayView
protectedinherited
oofPlotBits oofGraph::mPlotBits
protectedinherited
oofSeriesSet oofGraph::mSeriesSet
protectedinherited
oofGraphSettings* oofGraph::mSettings
protectedinherited

Definition at line 122 of file oofGrphs.h.

Referenced by oofGraph::getLocalSettings(), oofGraph::settings(), and oofGraph::~oofGraph().

OOF_String oofGraph::mTitle
protectedinherited
OOF_String oofGraph::mType
protectedinherited
dbView* oofGraph::mView
protectedinherited
oofGraph * oofGraph::sCurrentGraph
staticprotectedinherited

Definition at line 121 of file oofGrphs.h.

Referenced by oofGraph::becomeCurrent(), and oofGraph::currentGraph().


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