Package org.faceless.graph
Class MultiBarGraph
- java.lang.Object
-
- org.faceless.graph.Graph
-
- org.faceless.graph.AxesGraph
-
- org.faceless.graph.AbstractBarGraph
-
- org.faceless.graph.MultiBarGraph
-
public class MultiBarGraph extends AbstractBarGraph
A concrete subclass of AbstractBarGraph that describes Bar Graphs with multiple datasets plotted next to eachother on a single X axis. Useful to plot the same type of data as a
DepthBarGraph
but in two dimensions.As the usage of a MultiBarGraph is identical to a
DepthBarGraph
, please see that class for an example.- Since:
- 1.0.4
-
-
Field Summary
-
Fields inherited from class org.faceless.graph.AbstractBarGraph
bardepth, barwidth, displayvalue, DISPLAYVALUE_INSIDETOP, DISPLAYVALUE_MIDDLE, DISPLAYVALUE_NONE, DISPLAYVALUE_TOP, maxv, maxx, maxz, minv, minx, minz, roundbars, xkey, ykey, zkey
-
Fields inherited from class org.faceless.graph.AxesGraph
absolutemaxy, absoluteminy, axesmaxx, axesmaxy, axesmaxz, axesminx, axesminy, axesminz, axesstyle, boxstyle, data, xaxeslabelstyle, xaxestextstyle, xfloat, xformatter, xwallstyle, yaxeslabelstyle, yaxestextstyle, yfloat, yformatter, ywallstyle, zaxestextstyle, zfloat, zformatter, zwallstyle
-
Fields inherited from class org.faceless.graph.Graph
canvas, key, KEY_BOXED_BOTTOM, KEY_BOXED_LEFT, KEY_BOXED_RIGHT, KEY_BOXED_TOP, KEY_NONE, keyboxstyle, keypadding, keystyle, keytype, subtitle, subtitlestyle, title, titlepadding, titlestyle, xrotation, yrotation, zrotation
-
-
Constructor Summary
Constructors Constructor Description MultiBarGraph()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
plotBar(int ix, int iy, int iz, double endval)
Needs to be completed by concrete subclasses of this class.void
set(java.lang.String xset, java.lang.String yset, double val)
Set the value of the specified entry.void
setColor(java.lang.String set, java.awt.Paint color)
Set the color for an entry.-
Methods inherited from class org.faceless.graph.AbstractBarGraph
complete, getBoxElement, optionBarDepth, optionBarWidth, optionDisplayValue, optionRoundBars, optionXStretchToZero, optionYStretchToZero, plotBarValue, postcomplete, prescalecomplete
-
Methods inherited from class org.faceless.graph.AxesGraph
optionAxisStyle, optionBoxColor, optionFloorStyle, optionMaxY, optionMinY, optionXAxisAtZero, optionXAxisLabel, optionXAxisLabelStyle, optionXAxisStyle, optionXAxisTextRotation, optionXFormatter, optionYAxisAtZero, optionYAxisLabel, optionYAxisLabelStyle, optionYAxisStyle, optionYAxisTextRotation, optionYFormatter, optionYWallStyle, optionZAxisStyle, optionZFormatter, optionZWallStyle, postpostcomplete
-
Methods inherited from class org.faceless.graph.Graph
addElement, getDefaultBorderColor, getFontScale, optionDisplayKey, optionFixedAspectRatio, optionKeyBoxStyle, optionKeyStyle, optionRemoveBackFace, optionSubTitle, optionSubTitleStyle, optionTitle, optionTitleStyle, optionXRotation, optionYRotation, optionZRotation, setDefaultBorderColor, setDefaultColors, setDefaultLineThickness, setFontScale, setLicenseKey, setLightLevel, setLightVector, setPieEdgeDegrees, toCanvas
-
-
-
-
Method Detail
-
setColor
public void setColor(java.lang.String set, java.awt.Paint color)
Set the color for an entry.
-
set
public void set(java.lang.String xset, java.lang.String yset, double val)
Set the value of the specified entry.- Parameters:
xset
- the entry on the X-axis to plot the value againstyset
- the position in the X-axis square to plot the value againstval
- the value to plot- Throws:
java.lang.IllegalArgumentException
- if paramater val is infinite.
-
plotBar
protected void plotBar(int ix, int iy, int iz, double endval)
Description copied from class:AbstractBarGraph
Needs to be completed by concrete subclasses of this class.- Specified by:
plotBar
in classAbstractBarGraph
- Parameters:
ix
- The X position of this valueiy
- The Y position of this valueiz
- The Z position of this valueendval
- The value to plot.
-
-