public class BoxWhiskerSeries extends GeneralBarSeries
bardepth, barwidth, bottombarwidth, max, min, order
Constructor and Description |
---|
BoxWhiskerSeries(String name)
Create a new BoxWhiskerSeries
|
Modifier and Type | Method and Description |
---|---|
protected void |
drawBox(org.faceless.graph2.Drawable c,
double x,
double barwidthscale,
double z,
org.faceless.graph2.AxisScaler xscale,
org.faceless.graph2.AxisScaler yscale,
double scaledepth,
String name,
double[] vals,
Style style)
Actually draw the box.
|
void |
set(String x,
double min,
double bottom,
double middle,
double top,
double max)
Add a box to the series.
|
void |
set(String x,
double min,
double bottom,
double lower,
double middle,
double upper,
double top,
double max)
Add a box to the series.
|
void |
setSerifWidth(double width)
Set the width of the "serif" at the end of the lines.
|
void |
setShoulderWidth(double width)
Set the width of the "shoulder" of the box - the width of the box at the outer corner.
|
void |
setWaistWidth(double width)
Set the width of the "waist" of the box - the width of the box at the middle.
|
void |
setWhiskerWidth(double width)
Set the width of the "whisker" of the box.
|
addMarker, getStyle, isBarsAtNoon, setBarDepth, setBarLabels, setBarWidth, setBarWidth, setBarWidth, setRoundBars, setRoundBars, setStyle
addBox, addLine, addMarker, getName, outputToSeries, outputToSeriesFunction, setFloatingPointX, setFloatingPointY, setStyle, toString
public BoxWhiskerSeries(String name)
name
- the name of the seriespublic void set(String x, double min, double bottom, double middle, double top, double max)
x
- the X value of this boxmin
- the minimum value of the range of values for this box. Must be <= lowerbottom
- the lower quartile of the range of values for this box. Must be <= meanmiddle
- the mean value of the range of values for this box. Must be <= uppertop
- the upper quartile of of the range of values for this box. Must be <= maxmax
- the maximum value of the range of values for this box.IllegalArgumentException
- if the parameters aren't in ascending order.public void set(String x, double min, double bottom, double lower, double middle, double upper, double top, double max)
x
- the X value of this boxmin
- the minimum value of the range of values for this box. Must be <= bottombottom
- the outermost lower percentile of the range of values for this box. Must be <= lowerlower
- the lower percentile of the range of values for this box. Must be <= meanmiddle
- the middle value of the range of values for this box. Must be <= upperupper
- the upper percentile of of the range of values for this box. Must be <= toptop
- the outermost upper percentile of of the range of values for this box. Must be <= maxmax
- the maximum value of the range of values for this box.IllegalArgumentException
- if the parameters aren't in ascending order.public void setWaistWidth(double width)
width
- the width of the waist of each box - must be 0 <= val <=1public void setShoulderWidth(double width)
width
- the width of the shoulder of each box - must be 0 <= val <=1public void setWhiskerWidth(double width)
width
- the width of the shoulder of each box - must be 0 <= val <=1public void setSerifWidth(double width)
width
- the width of the serif of each whisker - must be 0 <= val <=1protected void drawBox(org.faceless.graph2.Drawable c, double x, double barwidthscale, double z, org.faceless.graph2.AxisScaler xscale, org.faceless.graph2.AxisScaler yscale, double scaledepth, String name, double[] vals, Style style)
drawBox
in class GeneralBarSeries
c
- the Canvasx
- the X center of the barbarwidthscale
- how much to multiply barwidth byz
- the Z position of the bar centerxscale
- the X scaleryscale
- the Y scalerscaledepth
- the scaled Z depthname
- the name of the barvals
- the Y valuesstyle
- the Style to use for the barCopyright © 2001-2016 Big Faceless Organization