StackedGraph Class Reference

This class is a stacked graph. More...

#include <StackedGraph.h>

List of all members.

Public Slots

void makeStackedGraph ()
 rebuilds the stacked graph
void setXRange (int newXRange)
 sets the xRange and rebuilds the graph
void setBaselineAlgo (int newBaselineAlgo)
 sets the baseline algorithm and rebuilds the graph
void setSortAlgo (int newSortAlgo)
 sets the sort algorithm and rebuilds the graph
void setColorAlgo (int newColorAlgo)
 sets the color algorithm and rebuilds the graph
void setMaxColor (const QColor &newMaxColor)
 sets the max color and rebuilds the graph
void setMinColor (const QColor &newMinColor)
 sets the min color and rebuilds the graph
void setDetailedInformation (bool detailedInfo)
 sets the detailed information and resends the min/max values
void makeToolTip (QGraphicsItem *item, QPoint pos)
 makes and shows the tool tip of the item item at the position pos

Signals

void maxColorTextChanged (const QString &text, const QColor &color)
 this signal is send when the graph is rendered with the text and color for the max color button
void minColorTextChanged (const QString &text, const QColor &color)
 this signal is send when the graph is rendered with the text and color for the min color button

Public Member Functions

 StackedGraph (const QVector< DataItem > *dataPtr, const QString *unitSymbolPtr, const bool *unitAfterNumberPtr, const QVector< QString > *unitSizeNamesPtr, QWidget *parent)
 creates a stacked graph.
StackedGraphViewgetView ()
 returns the view to this stacked graph
int getLength ()
 returns the length of the graph in months-1
int getXRange ()
 returns the x range (length)
int getYRange ()
 returns the y range (height)
bool getRenderGraph ()
 returns if the graph will be rendered on makeStackedGraph(). if false the graph won't be rendered if makeStackedGraph() is called.
void setRenderGraph (bool renderGraphOn)
 sets the renderGraph option. if false the graph won't be rendered if makeStackedGraph() is called.

Detailed Description

This class is a stacked graph.


Constructor & Destructor Documentation

StackedGraph::StackedGraph ( const QVector< DataItem > *  dataPtr,
const QString *  unitSymbolPtr,
const bool *  unitAfterNumberPtr,
const QVector< QString > *  unitSizeNamesPtr,
QWidget *  parent 
)

creates a stacked graph.

Parameters:
dataPtr the data which should be used for the stacked graph.
unitSymbolPtr the unit symbol for the data.
unitAfterNumberPtr if the unit symbol should be shown before or after the number.
unitSizeNamesPtr the size names for each 1000 step.
parent the parent widget.

Member Function Documentation

int StackedGraph::getLength (  )  [inline]

returns the length of the graph in months-1

bool StackedGraph::getRenderGraph (  )  [inline]

returns if the graph will be rendered on makeStackedGraph(). if false the graph won't be rendered if makeStackedGraph() is called.

StackedGraphView* StackedGraph::getView (  )  [inline]

returns the view to this stacked graph

int StackedGraph::getXRange (  )  [inline]

returns the x range (length)

int StackedGraph::getYRange (  )  [inline]

returns the y range (height)

void StackedGraph::makeStackedGraph (  )  [slot]

rebuilds the stacked graph

void StackedGraph::makeToolTip ( QGraphicsItem *  item,
QPoint  pos 
) [slot]

makes and shows the tool tip of the item item at the position pos

void StackedGraph::maxColorTextChanged ( const QString &  text,
const QColor &  color 
) [signal]

this signal is send when the graph is rendered with the text and color for the max color button

void StackedGraph::minColorTextChanged ( const QString &  text,
const QColor &  color 
) [signal]

this signal is send when the graph is rendered with the text and color for the min color button

void StackedGraph::setBaselineAlgo ( int  newBaselineAlgo  )  [inline, slot]

sets the baseline algorithm and rebuilds the graph

void StackedGraph::setColorAlgo ( int  newColorAlgo  )  [inline, slot]

sets the color algorithm and rebuilds the graph

void StackedGraph::setDetailedInformation ( bool  detailedInfo  )  [inline, slot]

sets the detailed information and resends the min/max values

void StackedGraph::setMaxColor ( const QColor &  newMaxColor  )  [inline, slot]

sets the max color and rebuilds the graph

void StackedGraph::setMinColor ( const QColor &  newMinColor  )  [inline, slot]

sets the min color and rebuilds the graph

void StackedGraph::setRenderGraph ( bool  renderGraphOn  )  [inline]

sets the renderGraph option. if false the graph won't be rendered if makeStackedGraph() is called.

void StackedGraph::setSortAlgo ( int  newSortAlgo  )  [inline, slot]

sets the sort algorithm and rebuilds the graph

void StackedGraph::setXRange ( int  newXRange  )  [inline, slot]

sets the xRange and rebuilds the graph


The documentation for this class was generated from the following files:
Generated on Tue Jun 8 17:57:01 2010 for InfoVis - Stacked Graphs by  doxygen 1.6.3