de.erichseifert.gral.plots.points
Class DefaultPointRenderer2D
- java.lang.Object
-
- de.erichseifert.gral.plots.points.AbstractPointRenderer
-
- de.erichseifert.gral.plots.points.DefaultPointRenderer2D
-
- All Implemented Interfaces:
- PointRenderer, java.io.Serializable
- Direct Known Subclasses:
- BarPlot.BarRenderer, LabelPointRenderer, SizeablePointRenderer
public class DefaultPointRenderer2D extends AbstractPointRenderer
Class that createsDrawables for a row of data.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description DefaultPointRenderer2D()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description DrawablegetPoint(PointData data, java.awt.Shape shape)Returns the graphical representation to be drawn for the specified data value.java.awt.ShapegetPointShape(PointData data)Returns aShapeinstance that can be used for further calculations.DrawablegetValue(PointData data, java.awt.Shape shape)Returns a graphical representation of the value label to be drawn for the specified data value.-
Methods inherited from class de.erichseifert.gral.plots.points.AbstractPointRenderer
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
-
-
-
-
Method Detail
-
getPoint
public Drawable getPoint(PointData data, java.awt.Shape shape)
Description copied from interface:PointRendererReturns the graphical representation to be drawn for the specified data value.- Parameters:
data- Information on axes, renderers, and values.shape- Outline that describes the point's shape.- Returns:
- Component that can be used to draw the point.
-
getPointShape
public java.awt.Shape getPointShape(PointData data)
Returns aShapeinstance that can be used for further calculations.- Parameters:
data- Information on axes, renderers, and values.- Returns:
- Outline that describes the point's shape.
-
getValue
public Drawable getValue(PointData data, java.awt.Shape shape)
Returns a graphical representation of the value label to be drawn for the specified data value.- Parameters:
data- Information on axes, renderers, and values.shape- Outline that describes the bounds for the value label.- Returns:
- Component that can be used to draw the value label.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG