com.jinsight.jetchart
Class StackBarSerie
java.lang.Object
|
+--com.jinsight.jetchart.AbstractSerie
|
+--com.jinsight.jetchart.GraphSerie
|
+--com.jinsight.jetchart.BarSerie
|
+--com.jinsight.jetchart.StackBarSerie
- public class StackBarSerie
- extends BarSerie
This class implements the methods and properties of stacked bars series.
StackedBarSerie is a subclass of BarSerie.
- See Also:
BarSerie
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, X_MARK |
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)
Sets stacked bar series width. |
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, setMarksStyle, setMultipleValues, setStartPoint, setTitle, setTitleFont, setTitlePosition, setToolTipContent, setValues, setValuesQuery |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StackBarSerie
public StackBarSerie()
- Creates a StackBarSerie object.
Default constructor.
StackBarSerie
public StackBarSerie(double[] values)
- Creates a StackBarSerie object.
- Parameters:
values
- Array of double precision numbers containing series values.
StackBarSerie
public StackBarSerie(double[] values,
java.lang.String title)
- Creates a StackBarSerie object.
- Parameters:
values
- Array of double precision numbers containing series values.title
- String containing series title. Will be displayed inside the legend box.
setStackBarWidth
public static void setStackBarWidth(int stackBarWidth)
- Sets stacked bar series width. This method is static because stacked bar series are
displayed with the same width. Any change in this property affects all stacked bar series
displayed together in a combo chart, even if they are included in different GraphSet objects.
The
setWidth()
method of BarSerie(the super class) has no effect on stacked bars series.
- Parameters:
stackBarWidth
- An integer number representing the stacked bar series width. Default value is 10.- See Also:
BarSerie.setWidth(int)
,
GraphSet
setBorderEnabled
public void setBorderEnabled(boolean isBorderEnabled)
- Enables/disables the border of all stacked bars. This method affects all
stacked bars series displayed together in the same chart.
- Overrides:
setBorderEnabled
in class BarSerie
- Parameters:
isBorderEnabled
- A boolean value(true/false)
finalize
protected void finalize()
throws java.lang.Throwable
- Overrides:
finalize
in class BarSerie