public static class BarPlot.BarRenderer extends DefaultPointRenderer2D
Modifier and Type | Field and Description |
---|---|
static Key |
STROKE
Key for specifying a
Stroke instance used to paint
the outline of the point shape. |
static Key |
STROKE_COLOR
Key for specifying a
Paint instance used to fill
the point shape. |
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 |
---|
BarPlot.BarRenderer(SettingsStorage plotSettings)
Constructor that creates a new instance and initializes it with a
plot as data provider.
|
Modifier and Type | Method and Description |
---|---|
protected Shape |
getBarShape(double x,
double y,
double width,
double height)
Returns the shape for a bar.
|
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.
|
drawErrorBars, drawValueLabel
setSetting, 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 STROKE
Stroke
instance used to paint
the outline of the point shape.public BarPlot.BarRenderer(SettingsStorage plotSettings)
plotSettings
- The settings of the associated plot.public Drawable getPoint(PointData data, Shape shape)
getPoint
in interface PointRenderer
getPoint
in class DefaultPointRenderer2D
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.getPointShape
in interface PointRenderer
getPointShape
in class DefaultPointRenderer2D
data
- Information on axes, renderers, and values.protected Shape getBarShape(double x, double y, double width, double height)
x
- Distance from the left in view units (e.g. pixels).y
- Distance from the top in view units (e.g. pixels).width
- Width of the shape in view units (e.g. pixels).height
- Height of the shape in view units (e.g. pixels).public Drawable getValue(PointData data, Shape shape)
getValue
in interface PointRenderer
getValue
in class DefaultPointRenderer2D
data
- Information on axes, renderers, and values.shape
- Outline that describes the bounds for the value label.Copyright © 2009-2013. All Rights Reserved.