de.erichseifert.gral.plots.points
Class LabelPointRenderer
- java.lang.Object
-
- de.erichseifert.gral.plots.points.AbstractPointRenderer
-
- de.erichseifert.gral.plots.points.DefaultPointRenderer2D
-
- de.erichseifert.gral.plots.points.LabelPointRenderer
-
- All Implemented Interfaces:
- PointRenderer, java.io.Serializable
public class LabelPointRenderer extends DefaultPointRenderer2D
Class that providesDrawables, which display specified data values as labels.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LabelPointRenderer()Initializes a new renderer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetAlignmentX()Returns the horizontal alignment relative to the data point.doublegetAlignmentY()Returns the vertical alignment relative to the data point.intgetColumn()Returns the index of the column which is used for the label.java.awt.FontgetFont()Returns the font of this label.java.text.FormatgetFormat()Returns the format which specifies how the labels are displayed.java.awt.ShapegetPointShape(PointData data)Returns aShapeinstance that can be used for further calculations.voidsetAlignmentX(double alignmentX)Sets the horizontal alignment relative to the data point.voidsetAlignmentY(double alignmentY)Sets the vertical alignment relative to the data point.voidsetColumn(int column)Sets the index of the column which will be used for the label.voidsetFont(java.awt.Font font)Sets font of this label.voidsetFormat(java.text.Format format)Sets the format which specifies how the labels will be displayed.-
Methods inherited from class de.erichseifert.gral.plots.points.DefaultPointRenderer2D
getPoint, getValue
-
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
-
getColumn
public int getColumn()
Returns the index of the column which is used for the label.- Returns:
- Index of the column which is used for the label.
-
setColumn
public void setColumn(int column)
Sets the index of the column which will be used for the label.- Parameters:
column- Index of the column which will be used for the label.
-
getFormat
public java.text.Format getFormat()
Returns the format which specifies how the labels are displayed.- Returns:
Formatinstance which specifies how the labels are displayed.
-
setFormat
public void setFormat(java.text.Format format)
Sets the format which specifies how the labels will be displayed.- Parameters:
format-Formatinstance which specifies how the labels will be displayed.
-
getFont
public java.awt.Font getFont()
Returns the font of this label.- Returns:
- Font of this label.
-
setFont
public void setFont(java.awt.Font font)
Sets font of this label.- Parameters:
font- Font of this label.
-
getAlignmentX
public double getAlignmentX()
Returns the horizontal alignment relative to the data point. 0 means left, 1 means right.- Returns:
- Horizontal alignment relative to the data point.
-
setAlignmentX
public void setAlignmentX(double alignmentX)
Sets the horizontal alignment relative to the data point. 0 means left, 1 means right.- Parameters:
alignmentX- Horizontal alignment relative to the data point.
-
getAlignmentY
public double getAlignmentY()
Returns the vertical alignment relative to the data point. 0 means top, 1 means bottom.- Returns:
- Vertical alignment relative to the data point.
-
setAlignmentY
public void setAlignmentY(double alignmentY)
Sets the vertical alignment relative to the data point. 0 means top, 1 means bottom.- Parameters:
alignmentY- Vertical alignment relative to the data point.
-
getPointShape
public java.awt.Shape getPointShape(PointData data)
Description copied from class:DefaultPointRenderer2DReturns aShapeinstance that can be used for further calculations.- Specified by:
getPointShapein interfacePointRenderer- Overrides:
getPointShapein classDefaultPointRenderer2D- Parameters:
data- Information on axes, renderers, and values.- Returns:
- Outline that describes the point's shape.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG