public class LabelPointRenderer extends DefaultPointRenderer2D
Drawable
s, which display specified data
values as labels.Constructor and Description |
---|
LabelPointRenderer()
Initializes a new renderer.
|
Modifier and Type | Method and Description |
---|---|
double |
getAlignmentX()
Returns the horizontal alignment relative to the data point.
0 means left, 1 means right.
|
double |
getAlignmentY()
Returns the vertical alignment relative to the data point.
0 means top, 1 means bottom.
|
int |
getColumn()
Returns the index of the column which is used for the label.
|
java.awt.Font |
getFont()
Returns the font of this label.
|
java.text.Format |
getFormat()
Returns the format which specifies how the labels are displayed.
|
java.awt.Shape |
getPointShape(PointData data)
Returns a
Shape instance that can be used for further
calculations. |
void |
setAlignmentX(double alignmentX)
Sets the horizontal alignment relative to the data point.
0 means left, 1 means right.
|
void |
setAlignmentY(double alignmentY)
Sets the vertical alignment relative to the data point.
0 means top, 1 means bottom.
|
void |
setColumn(int column)
Sets the index of the column which will be used for the label.
|
void |
setFont(java.awt.Font font)
Sets font of this label.
|
void |
setFormat(java.text.Format format)
Sets the format which specifies how the labels will be displayed.
|
drawErrorBars, drawValueLabel, getPoint, getValue
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 int getColumn()
public void setColumn(int column)
column
- Index of the column which will be used for the label.public java.text.Format getFormat()
Format
instance which specifies how the labels are
displayed.public void setFormat(java.text.Format format)
format
- Format
instance which specifies how the labels will
be displayed.public java.awt.Font getFont()
public void setFont(java.awt.Font font)
font
- Font of this label.public double getAlignmentX()
public void setAlignmentX(double alignmentX)
alignmentX
- Horizontal alignment relative to the data point.public double getAlignmentY()
public void setAlignmentY(double alignmentY)
alignmentY
- Vertical alignment relative to the data point.public java.awt.Shape getPointShape(PointData data)
DefaultPointRenderer2D
Shape
instance that can be used for further
calculations.getPointShape
in interface PointRenderer
getPointShape
in class DefaultPointRenderer2D
data
- Information on axes, renderers, and values.