public static class BoxPlot.BoxWhiskerRenderer extends AbstractPointRenderer
Constructor and Description |
---|
BoxPlot.BoxWhiskerRenderer()
Constructor that creates a new instance and initializes it with a
plot as data provider.
|
Modifier and Type | Method and Description |
---|---|
double |
getBarWidth()
Returns the relative width of the bottom and top bars.
|
int |
getBottomBarColumn()
Returns the index of the column which is used for the bottom bar.
|
ColorMapper |
getBoxBackground()
Returns the mapping which is used to fill the background of a box.
|
java.awt.Paint |
getBoxBorderColor()
Returns the paint which is used to fill the border of a box and the
lines of bars.
|
java.awt.Stroke |
getBoxBorderStroke()
Returns the stroke which is used to paint the border of a box and
the lines of the bars.
|
int |
getBoxBottomColumn()
Returns the index of the column which is used for the bottom edge of
the box.
|
int |
getBoxTopColumn()
Returns the index of the column which is used for the top edge of
the box.
|
double |
getBoxWidth()
Returns the relative width of the box.
|
java.awt.Paint |
getCenterBarColor()
Returns the paint which is used to fill the lines of the center bar.
|
int |
getCenterBarColumn()
Returns the index of the column which is used for the center bar.
|
java.awt.Stroke |
getCenterBarStroke()
Returns the stroke which is used to paint the lines of the center
bar.
|
Drawable |
getPoint(PointData data,
java.awt.Shape shape)
Returns the graphical representation to be drawn for the specified
data value.
|
java.awt.Shape |
getPointShape(PointData data)
Returns a
Shape instance that can be used for further
calculations. |
int |
getPositionColumn()
Returns the index of the column which is used for the horizontal
position of a box.
|
int |
getTopBarColumn()
Returns the index of the column which is used for the top bar.
|
Drawable |
getValue(PointData data,
java.awt.Shape shape)
Returns a graphical representation of the value label to be drawn for
the specified data value.
|
java.awt.Paint |
getWhiskerColor()
Returns the paint which is used to fill the lines of the whiskers.
|
java.awt.Stroke |
getWhiskerStroke()
Returns the stroke which is used to paint the lines of the whiskers.
|
void |
setBarWidth(double width)
Sets the relative width of the bottom and top bars.
|
void |
setBottomBarColumn(int columnIndex)
Sets the index of the column which will be used for the bottom bar.
|
void |
setBoxBackground(ColorMapper color)
Sets the mapping which will be used to fill the background of a box.
|
void |
setBoxBackground(java.awt.Paint color)
Sets the paint which will be used to fill the background of a box.
|
void |
setBoxBorderColor(java.awt.Paint color)
Sets the paint which will be used to fill the border of a box and
the lines of bars.
|
void |
setBoxBorderStroke(java.awt.Stroke stroke)
Sets the stroke which will be used to paint the border of a box and
the lines of the bars.
|
void |
setBoxTopColumn(int columnIndex)
Sets the index of the column which will be used for the top edge of
the box.
|
void |
setBoxWidth(double boxWidth)
Sets the relative width of the box.
|
void |
setCenterBarColor(java.awt.Paint color)
Sets the paint which will be used to fill the lines of the center
bar.
|
void |
setCenterBarColumn(int columnIndex)
Sets the index of the column which will be used for the center bar.
|
void |
setCenterBarStroke(java.awt.Stroke stroke)
Sets the stroke which will be used to paint the lines of the
center bar.
|
void |
setColumnBoxBottom(int columnIndex)
Sets the index of the column which will be used for the bottom edge
of the box.
|
void |
setPositionColumn(int columnIndex)
Sets the index of the column which will be used for the horizontal
position of a box.
|
void |
setTopBarColumn(int columnIndex)
Sets the index of the column which will be used for the top bar.
|
void |
setWhiskerColor(java.awt.Paint color)
Sets the paint which will be used to fill the lines of the whiskers.
|
void |
setWhiskerStroke(java.awt.Stroke stroke)
Sets the stroke which will be used to paint the lines of the
whiskers.
|
getColor, getErrorColor, getErrorColumnBottom, getErrorColumnTop, getErrorShape, getErrorStroke, getShape, getValueAlignmentX, getValueAlignmentY, getValueColor, getValueColumn, getValueDistance, getValueFont, getValueFormat, getValueLocation, getValueRotation, isErrorVisible, isValueVisible, setColor, setColor, setErrorColor, setErrorColor, setErrorColumnBottom, setErrorColumnTop, setErrorShape, setErrorStroke, setErrorVisible, setShape, setValueAlignmentX, setValueAlignmentY, setValueColor, setValueColor, setValueColumn, setValueDistance, setValueFont, setValueFormat, setValueLocation, setValueRotation, setValueVisible
public BoxPlot.BoxWhiskerRenderer()
public int getPositionColumn()
public void setPositionColumn(int columnIndex)
columnIndex
- Index of the column that is used for the
horizontal position of a box.public int getCenterBarColumn()
public void setCenterBarColumn(int columnIndex)
columnIndex
- Index of the column which will be used for
the center bar.public int getBottomBarColumn()
public void setBottomBarColumn(int columnIndex)
columnIndex
- Index of the column which will be used for
the bottom bar.public int getBoxBottomColumn()
public void setColumnBoxBottom(int columnIndex)
columnIndex
- Index of the column which will be used for
the bottom edge of the box.public int getBoxTopColumn()
public void setBoxTopColumn(int columnIndex)
columnIndex
- Index of the column which will be used for the
top edge of the box.public int getTopBarColumn()
public void setTopBarColumn(int columnIndex)
columnIndex
- Index of the column which will be used for the
top bar.public double getBoxWidth()
public void setBoxWidth(double boxWidth)
boxWidth
- Relative width of the box.public ColorMapper getBoxBackground()
ColorMapper
instance which is used to fill the
background of a box.public void setBoxBackground(ColorMapper color)
color
- ColorMapper
instance which will be used to fill
the background of a box.public void setBoxBackground(java.awt.Paint color)
color
- Paint
instance which will be used to fill the
background of a box.public java.awt.Paint getBoxBorderColor()
public void setBoxBorderColor(java.awt.Paint color)
color
- Paint which will be used to fill the border of a box
and the lines of bars.public java.awt.Stroke getBoxBorderStroke()
Stroke
instance which is used to paint the border of
a box and the lines of the bars.public void setBoxBorderStroke(java.awt.Stroke stroke)
stroke
- Stroke
instance which will be used to paint
the border of a box and the lines of the bars.public java.awt.Paint getWhiskerColor()
public void setWhiskerColor(java.awt.Paint color)
color
- Paint which will be used to fill the lines of the
whiskers.public java.awt.Stroke getWhiskerStroke()
Stroke
instance which is used to paint the lines of
the whiskers.public void setWhiskerStroke(java.awt.Stroke stroke)
stroke
- Stroke
instance which will be used to paint
the lines of the whiskers.public double getBarWidth()
public void setBarWidth(double width)
width
- Relative width of the bottom and top bars.public java.awt.Paint getCenterBarColor()
public void setCenterBarColor(java.awt.Paint color)
color
- Paint which will be used to fill the lines of the
center bar.public java.awt.Stroke getCenterBarStroke()
Stroke
instance which is used to paint the lines of
the center bar.public void setCenterBarStroke(java.awt.Stroke stroke)
stroke
- Stroke
instance which will be used to paint
the lines of the center bar.public Drawable getPoint(PointData data, java.awt.Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.public java.awt.Shape getPointShape(PointData data)
Shape
instance that can be used for further
calculations.data
- Information on axes, renderers, and values.public Drawable getValue(PointData data, java.awt.Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the bounds for the value label.