com.jinsight.jetchart
Class StackBarSerie

java.lang.Object
  extended bycom.jinsight.jetchart.AbstractSerie
      extended bycom.jinsight.jetchart.GraphSerie
          extended bycom.jinsight.jetchart.BarSerie
              extended bycom.jinsight.jetchart.StackBarSerie

public class StackBarSerie
extends BarSerie

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.

See Also:
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

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.
Method Detail

setStackBarWidth

public static void setStackBarWidth(int stackBarWidth)
Deprecated.  

This method has been deprecated. Use the dynamic method 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)

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
Throws:
java.lang.Throwable