WikiVis Web Application
 All Classes Namespaces Files Functions Variables Pages
Package Functions | Package Attributes | Static Package Attributes | List of all members
PlotManager Class Reference

Processing class - Manager Class for Barplotting. More...

Package Functions

void clearData ()
 clears all revision data and resets amounts.
void addDate (DateBox dateBox)
 Adds a DateBox to the Manager.
void plotDiagram (float x, float y, float widthWidget, float heightWidget)
 Plots the bar-diagram.
void setSelection (Selection sel)

Package Attributes

ArrayList< DateBoxplotBoxes = new ArrayList<DateBox>()
int totalRevisions = 0
int biggestBox = 0
Selection selection = new Selection()

Static Package Attributes

static final color TEXT_COLOR = #999999
static final color BAR_COLOR_UNSELECTED = #CCCCCC
static final color BAR_COLOR_SELECTED = #006EA8
static final color PLOT_FRAME_COLOR = #999999
static final color SELECTION_BOX_COLOR = #B6DAF0

Detailed Description

Processing class - Manager Class for Barplotting.

This Class contains all data for bar-plot. It also draws the graph.

Author
Manuel Wyss e0106.nosp@m.157@.nosp@m.stude.nosp@m.nt.t.nosp@m.uwien.nosp@m..ac..nosp@m.at

Member Function Documentation

void PlotManager.addDate ( DateBox  dateBox)
package

Adds a DateBox to the Manager.

Parameters
dateBoxDateBox that shall be rendered
void PlotManager.clearData ( )
package

clears all revision data and resets amounts.

void PlotManager.plotDiagram ( float  x,
float  y,
float  widthWidget,
float  heightWidget 
)
package

Plots the bar-diagram.

If no data is managed, the plot will be empty. The plot function needs the coordinates pf the plotting area. Required offsets and borders are computet according to inputs. the whole plot scales accordingly to the designated area.

Parameters
xx-coordinate of upper left corner of drawing region (widget).
yy-coordinate of upper left corner of drawing region (widget).
widthWidgetwidth of widget in pixels.
heightWidgetheight of widget in pixels.
void PlotManager.setSelection ( Selection  sel)
package

Member Data Documentation

final color PlotManager.BAR_COLOR_SELECTED = #006EA8
staticpackage
final color PlotManager.BAR_COLOR_UNSELECTED = #CCCCCC
staticpackage
int PlotManager.biggestBox = 0
package
final color PlotManager.PLOT_FRAME_COLOR = #999999
staticpackage
ArrayList<DateBox> PlotManager.plotBoxes = new ArrayList<DateBox>()
package
Selection PlotManager.selection = new Selection()
package
final color PlotManager.SELECTION_BOX_COLOR = #B6DAF0
staticpackage
final color PlotManager.TEXT_COLOR = #999999
staticpackage
int PlotManager.totalRevisions = 0
package

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