|
||||||||||
| 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.GraphSerie
com.jinsight.jetchart.BarSerie
com.jinsight.jetchart.StackBarSerie
This class implements the methods and properties of stacked bars series. Stacked bar series are similar to bar series, however a sequence of objects of the latter type are placed side by side, whereas objects of the former type are stacked one above the other.
Stacked bars are commonly used to compare individual values of a certain type against each other, the size of each stacked bar depicting the extent of a value.
The position of stacked bars are always calculated with respect to the zero coordinate, no matter what the maximum and minimum scale values are.
Stacked bar series belonging to the same GraphSet object are the same width.
BarSerie,
GraphSet.setStackedBarsWidth(int)| Field Summary |
| Fields inherited from class com.jinsight.jetchart.BarSerie |
INSIDE, INSIDE_VERTICAL, TOP |
| Fields inherited from class com.jinsight.jetchart.GraphSerie |
ABOVE_TOP_YAXIS, AREA, BAR, BAR_HLC, BAR_OHLC, BESIDE_TOP_YAXIS, CANDLESTICK, DASHED, EMPTY_CIRCLE_MARK, EMPTY_DIAMOND_MARK, EMPTY_SQUARE_MARK, EMPTY_TRIANGLE_MARK, IMAGE, LEGEND, LINE, LINE_HLC, LINE_OHLC, MARK_SHAPE_LEGEND, POINT, ROUNDED_CANDLESTICK, SOLID, SOLID_CIRCLE_MARK, SOLID_DIAMOND_MARK, SOLID_SQUARE_LEGEND, SOLID_SQUARE_MARK, SOLID_TRIANGLE_MARK, STACKED_BAR, VECTOR, X_MARK |
| Fields inherited from class com.jinsight.jetchart.AbstractSerie |
CLIENT_SIDE, SERVER_SIDE_CERN, SERVER_SIDE_NCSA |
| Constructor Summary | |
StackBarSerie()
Creates a StackBarSerie object. |
|
StackBarSerie(double[] values)
Creates a StackBarSerie object. |
|
StackBarSerie(double[] values,
java.lang.String title)
Creates a StackBarSerie object. |
|
| Method Summary | |
protected void |
finalize()
|
void |
setBorderEnabled(boolean isBorderEnabled)
Enables/disables the border of all stacked bars. |
static void |
setStackBarWidth(int stackBarWidth)
Deprecated. |
| Methods inherited from class com.jinsight.jetchart.BarSerie |
setColors, setMarkLegendPosition, setMarkLegendRoomCheckEnabled, setWidth |
| Methods inherited from class com.jinsight.jetchart.GraphSerie |
getColor, getMultipleValues, getRegressionLine, getSerieMap, getSerieMap, getSerieMap, getTitle, getType, getValues, removeRegressionLine, setColor, setCoordinatesStatus, setFont, setMarkLegendBackground, setMarkLegendEnabled, setMarkLegendForeground, setMarkLegendOpacityEnabled, setMarksColor, setMarksEnabled, setMarksHeight, setMarksStyle, setMarksWidth, setMultipleValues, setStartPoint, setTitle, setTitleFont, setTitlePosition, setToolTipContent, setValues, setValuesQuery |
| Methods inherited from class com.jinsight.jetchart.AbstractSerie |
addMultipleValues, addValue, getId, setHighlightColor, setHighlightEnabled, setId, setLegendEnabled, setMultipleValues, setSVGURLs, setToolTipEnabled, setValueFormat, setValues |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StackBarSerie()
public StackBarSerie(double[] values)
values - Array of double precision numbers containing series values.
public StackBarSerie(double[] values,
java.lang.String title)
values - Array of double precision numbers containing series values.title - String containing series title. Will be displayed inside the legend box.| Method Detail |
public static void setStackBarWidth(int stackBarWidth)
GraphSet.setStackedBarsWidth(int stackedBarsWidth) instead.
Using a static method to set the width of stacked bar series
brings a drawback, multiple charts displayed in a single
application always have the same stacked bars width.
Moving this method to the GraphSet class and turning it into
an object method assures that the only affected stacked bars
are those owned by a GraphSet object.
- See Also:
GraphSet.setStackedBarsWidth(int)
public void setBorderEnabled(boolean isBorderEnabled)
setBorderEnabled in class BarSerieisBorderEnabled - A boolean value(true/false)
protected void finalize()
throws java.lang.Throwable
finalize in class BarSeriejava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||