public static class BoxPlot.BoxWhiskerRenderer extends AbstractPointRenderer
Modifier and Type | Field and Description |
---|---|
static Key |
BAR_CENTER_COLOR
Key for specifying the
Paint instance to be used
to paint the lines of the center bar. |
static Key |
BAR_CENTER_STROKE
Key for specifying the
Stroke instance to be used
to paint the lines of the center bar. |
static Key |
BAR_WIDTH
Key for specifying a
Number value for the relative width of
the bottom and top bars. |
static Key |
BOX_BACKGROUND
Key for specifying an instance of
ColorMapper that will be used
to paint the background of the box. |
static Key |
BOX_BORDER
Key for specifying the
Stroke instance to be used
to paint the border of the box and the lines of the bars. |
static Key |
BOX_COLOR
Key for specifying the
Paint instance to be used
to paint the border of the box and the lines of bars. |
static Key |
BOX_WIDTH
Key for specifying a
Number value for the relative width
of the box. |
static Key |
COLUMN_BAR_BOTTOM
Key for specifying the
Integer value which specifies the
index of the column that is used for the bottom bar. |
static Key |
COLUMN_BAR_CENTER
Key for specifying the
Integer value which specifies the
index of the column that is used for the center bar. |
static Key |
COLUMN_BAR_TOP
Key for specifying the
Integer value which specifies the
index of the column that is used for the top bar. |
static Key |
COLUMN_BOX_BOTTOM
Key for specifying the
Integer value which specifies the
index of the column that is used for the bottom edge of the box. |
static Key |
COLUMN_BOX_TOP
Key for specifying the
Integer value which specifies the
index of the column that is used for the bottom edge of the box. |
static Key |
COLUMN_POSITION
Key for specifying the
Integer value which specifies the
index of the column that is used for the horizontal position of a box. |
static Key |
WHISKER_COLOR
Key for specifying the
Paint instance to be used
to paint the lines of the whiskers. |
static Key |
WHISKER_STROKE
Key for specifying the
Stroke instance to be used
to paint the lines of the whiskers. |
COLOR, ERROR_COLOR, ERROR_COLUMN_BOTTOM, ERROR_COLUMN_TOP, ERROR_DISPLAYED, ERROR_SHAPE, ERROR_STROKE, SHAPE, VALUE_ALIGNMENT_X, VALUE_ALIGNMENT_Y, VALUE_COLOR, VALUE_COLUMN, VALUE_DISPLAYED, VALUE_DISTANCE, VALUE_FONT, VALUE_FORMAT, VALUE_LOCATION, VALUE_ROTATION
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 |
---|---|
Drawable |
getPoint(PointData data,
Shape shape)
Returns the graphical representation to be drawn for the specified
data value.
|
Shape |
getPointShape(PointData data)
Returns a
Shape instance that can be used for further
calculations. |
Drawable |
getValue(PointData data,
Shape shape)
Returns a graphical representation of the value label to be drawn for
the specified data value.
|
protected <T> void |
setSetting(Key key,
T value,
boolean isDefault)
Sets the setting or default setting with the specified key to a new
value.
|
settingChanged
addSettingsListener, getSetting, hasSetting, hasSettingDefault, notifySettingChanged, removeSetting, removeSettingDefault, removeSettingsListener, setSetting, setSettingDefault
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSetting, removeSetting, removeSettingDefault, setSetting, setSettingDefault
public static final Key COLUMN_POSITION
Integer
value which specifies the
index of the column that is used for the horizontal position of a box.public static final Key COLUMN_BAR_CENTER
Integer
value which specifies the
index of the column that is used for the center bar.public static final Key COLUMN_BAR_BOTTOM
Integer
value which specifies the
index of the column that is used for the bottom bar.public static final Key COLUMN_BOX_BOTTOM
Integer
value which specifies the
index of the column that is used for the bottom edge of the box.public static final Key COLUMN_BOX_TOP
Integer
value which specifies the
index of the column that is used for the bottom edge of the box.public static final Key COLUMN_BAR_TOP
Integer
value which specifies the
index of the column that is used for the top bar.public static final Key BOX_WIDTH
Number
value for the relative width
of the box.public static final Key BOX_BACKGROUND
ColorMapper
that will be used
to paint the background of the box.public static final Key BOX_COLOR
Paint
instance to be used
to paint the border of the box and the lines of bars.public static final Key BOX_BORDER
Stroke
instance to be used
to paint the border of the box and the lines of the bars.public static final Key WHISKER_COLOR
Paint
instance to be used
to paint the lines of the whiskers.public static final Key WHISKER_STROKE
Stroke
instance to be used
to paint the lines of the whiskers.public static final Key BAR_WIDTH
Number
value for the relative width of
the bottom and top bars.public static final Key BAR_CENTER_COLOR
Paint
instance to be used
to paint the lines of the center bar.public BoxPlot.BoxWhiskerRenderer()
public Drawable getPoint(PointData data, Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the point's shape.public 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, Shape shape)
data
- Information on axes, renderers, and values.shape
- Outline that describes the bounds for the value label.protected <T> void setSetting(Key key, T value, boolean isDefault)
BasicSettingsStorage
setSetting
in class AbstractPointRenderer
T
- Type of setting.key
- Key.value
- Value to be set.isDefault
- true
when the value should be the default,
otherwise false
Copyright © 2009-2013. All Rights Reserved.