public class StackedBarSeries extends GeneralBarSeries
Modifier and Type | Field and Description |
---|---|
protected List<BarSeries> |
seriesset |
bardepth, barwidth, bottombarwidth, max, min, order
Constructor and Description |
---|
StackedBarSeries(String name)
Create a new StackedBarSeries
|
Modifier and Type | Method and Description |
---|---|
void |
add(BarSeries series)
Add a BarSeries to this set.
|
void |
setBarDepth(double depth)
Set the depth of each bar.
|
void |
setBarGap(double gap)
Set the size of the gap between each bar.
|
void |
setBarWidth(double width)
Set the width of each bar.
|
void |
setBarWidth(double topwidth,
double bottomwidth)
Set the width of each bar.
|
void |
setBarWidth(double topwidth,
double middlewidth,
double bottomwidth)
Set the width of each bar.
|
addMarker, drawBox, getStyle, isBarsAtNoon, setBarLabels, setRoundBars, setRoundBars, setStyle
addBox, addLine, addMarker, getName, outputToSeries, outputToSeriesFunction, setFloatingPointX, setFloatingPointY, setStyle, toString
public StackedBarSeries(String name)
name
- the name of the seriespublic void setBarGap(double gap)
gap
- the size of the gap between each barpublic void add(BarSeries series)
series
- the Series to add to this set. If the Series has already
been added, an IllegalArgumentException
will be thrown.public void setBarWidth(double width)
GeneralBarSeries
GeneralBarSeries.setBarWidth(double)
and GeneralBarSeries.setBarDepth(double)
methods control how
much of that square is filled. The default width and depth are both 1,
ie. the whole square is used.setBarWidth
in class GeneralBarSeries
width
- the width of the bar - must be 0 < width <= 1public void setBarWidth(double topwidth, double bottomwidth)
GeneralBarSeries
GeneralBarSeries.setBarWidth(double)
, but this method
allows you to "taper" the bar to be wider at the top or bottom. This method is
used to draw pyramids instead of regular bar charts.
All values must be between 0 and 1 inclusive.setBarWidth
in class GeneralBarSeries
topwidth
- the width of the bar at the topbottomwidth
- the width of the bar at the bottompublic void setBarWidth(double topwidth, double middlewidth, double bottomwidth)
GeneralBarSeries
GeneralBarSeries.setBarWidth(double)
, but this method
allows you to "taper" the bar to be wider at the top or bottom with a middle "waist".
This method is used to draw "funnels" instead of regular bar charts.
All values must be between 0 and 1 inclusive.setBarWidth
in class GeneralBarSeries
topwidth
- the width of the bar at the topmiddlewidth
- the width of the bar at the middlebottomwidth
- the width of the bar at the bottompublic void setBarDepth(double depth)
GeneralBarSeries
GeneralBarSeries.setBarWidth(double)
and GeneralBarSeries.setBarDepth(double)
methods control how
much of that square is filled. The default width and depth are both 1,
ie. the whole square is used.setBarDepth
in class GeneralBarSeries
depth
- the depth of the bar - must be 0 < depth <= 1Copyright © 2001-2016 Big Faceless Organization