public static class BarPlot.BarRenderer extends DefaultPointRenderer2D
Constructor and Description |
---|
BarPlot.BarRenderer(BarPlot plot)
Constructor that creates a new instance and initializes it with a
plot as data provider.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.Shape |
getBarShape(double x,
double y,
double width,
double height)
Returns the shape for a bar.
|
java.awt.Paint |
getBorderColor()
Returns the paint which is used to fill the point shape.
|
java.awt.Stroke |
getBorderStroke()
Returns the stroke used to paint the outline of the point shape.
|
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. |
Drawable |
getValue(PointData data,
java.awt.Shape shape)
Returns a graphical representation of the value label to be drawn for
the specified data value.
|
void |
setBorderColor(java.awt.Paint color)
Sets the paint which will be used to fill the point shape.
|
void |
setBorderStroke(java.awt.Stroke stroke)
Sets the stroke used to paint the outline of the point shape.
|
drawErrorBars, drawValueLabel
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 BarPlot.BarRenderer(BarPlot plot)
plot
- The associated plot.public java.awt.Stroke getBorderStroke()
public void setBorderStroke(java.awt.Stroke stroke)
stroke
- Stroke used to paint the outline of the point shape.public java.awt.Paint getBorderColor()
public void setBorderColor(java.awt.Paint color)
color
- Paint which will be used to fill the point shape.public Drawable getPoint(PointData data, java.awt.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 java.awt.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 java.awt.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, java.awt.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.