|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jinsight.jetchart.AbstractSerie
com.jinsight.jetchart.ScatterSerie
com.jinsight.jetchart.XYBarSerie
This class implements the properties and methods of an XY bar series. A
data point of an XY bar series is associated with three values. The first and
second values determine the horizontal position of the left and right sides of
a vertical bar, respectively, calculated against the horizontal scale of a
scatter graph, whereas the third value determines the bar's height, calculated
against the vertical scale of a scatter graph.
The bars rest on the horizontal axis by default. However, floating bars can be
achieved by setting the method setFloatingEnabled(boolean isFloatingEnabled)
to true. The height of floating bars can be specified with the methods
setHeight(int height) and setHeights(int[] heights). The former
accepts an integer value, which is applied to the height of all bars, whereas the
latter allows for specifying an individual height to each bar.
One of the applications an XY bar series is intended for is the plotting of
histograms, consisting of vertical bars whose widths represent the range of similar
data gathered in discrete groups, and the heights are the values that correspond to
the data frequency within each group.
ScatterSerie| Field Summary |
| Fields inherited from class com.jinsight.jetchart.AbstractSerie |
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA |
| Constructor Summary | |
XYBarSerie()
Creates an XYBarSerie object. |
|
XYBarSerie(double[][] multipleValues)
Creates an XYBarSerie object. |
|
XYBarSerie(double[][] multipleValues,
java.lang.String title)
Creates an XYBarSerie object. |
|
| Method Summary | |
void |
setBorderColor(java.awt.Color borderColor)
Sets the color of the border that surrounds each bar. |
void |
setColors(java.awt.Color[] colors)
Sets an individual color for each bar. |
void |
setFloatingEnabled(boolean isFloatingEnabled)
Enables/disables floating bars. |
void |
setHeight(int height)
Sets the bars' height. |
void |
setHeightCenteredEnabled(boolean isCenteredHeightEnabled)
Enables/disables vertical centering of floating bars with the vertical coordinate of the corresponding y value. |
void |
setHeights(int[] heights)
Sets an individual height for each bar. |
| Methods inherited from class com.jinsight.jetchart.ScatterSerie |
finalize, getColor, getMultipleValues, getRegressionLine, getSerieMap, getTitle, removeRegressionLine, setColor, setDateFormat, setDateFormat, setDateValues, setMultipleValues, setTitle, setToolTipDateFormat, setToolTipDateFormat, setToolTipText, setValuesFormat, setValuesQuery |
| Methods inherited from class com.jinsight.jetchart.AbstractSerie |
addMultipleValues, addValue, getId, getValues, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipContent, setToolTipEnabled, setValueFormat, setValues, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XYBarSerie()
public XYBarSerie(double[][] multipleValues)
multipleValues - Bidimensional array of double precision numbers.AbstractSerie.setMultipleValues(double[][])
public XYBarSerie(double[][] multipleValues,
java.lang.String title)
multipleValues - Bidimensional array of double precision numbers.title - A String object.AbstractSerie.setMultipleValues(double[][])| Method Detail |
public void setBorderColor(java.awt.Color borderColor)
borderColor - A Color object.public void setColors(java.awt.Color[] colors)
ScatterSerie.setColor(Color color).
colors - An array of Color objects.ScatterSerie.setColor(java.awt.Color)public void setHeight(int height)
height - An integer value, greater than or equal to 1.setFloatingEnabled(boolean),
setHeights(int[])public void setHeights(int[] heights)
setHeight(int height). A height smaller than 1 is
reset to 10 pixels.
heights - An array of integer numbers, greater than or equal to 1.setHeight(int),
setFloatingEnabled(boolean)public void setFloatingEnabled(boolean isFloatingEnabled)
setHeight(int height)
or setHeights(int[] heights), otherwise the height is the
distance from the top of each bar to the horizontal axis.
- Parameters:
isFloatingEnabled - A boolean value(true/false).- See Also:
setHeight(int),
setHeights(int[])
public void setHeightCenteredEnabled(boolean isCenteredHeightEnabled)
isCenteredHeightEnabled - A boolean value(true/false).setFloatingEnabled(boolean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||