org.jfree.chart.plot.dial
public class DialValueIndicator extends AbstractDialLayer implements DialLayer, Cloneable, PublicCloneable, Serializable
Since: 1.0.7
Constructor Summary | |
---|---|
DialValueIndicator()
Creates a new instance of DialValueIndicator . | |
DialValueIndicator(int datasetIndex)
Creates a new instance of DialValueIndicator .
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of this instance.
|
void | draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the background to the specified graphics device. |
boolean | equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
double | getAngle()
Returns the angle for the anchor point. |
Paint | getBackgroundPaint()
Returns the background paint.
|
int | getDatasetIndex()
Returns the index of the dataset from which this indicator fetches its
current value.
|
Font | getFont()
Returns the font.
|
RectangleAnchor | getFrameAnchor()
Returns the frame anchor.
|
RectangleInsets | getInsets()
Returns the insets.
|
NumberFormat | getNumberFormat()
Returns the formatter used to format the value.
|
Paint | getOutlinePaint()
Returns the outline paint.
|
Stroke | getOutlineStroke()
Returns the outline stroke.
|
Paint | getPaint()
Returns the paint.
|
double | getRadius()
Returns the radius.
|
Number | getTemplateValue()
Returns the template value.
|
TextAnchor | getTextAnchor()
Returns the text anchor.
|
RectangleAnchor | getValueAnchor()
Returns the value anchor.
|
int | hashCode()
Returns a hash code for this instance.
|
boolean | isClippedToWindow()
Returns true to indicate that this layer should be
clipped within the dial window.
|
void | setAngle(double angle)
Sets the angle for the anchor point and sends a
DialLayerChangeEvent to all registered listeners.
|
void | setBackgroundPaint(Paint paint)
Sets the background paint and sends a DialLayerChangeEvent to
all registered listeners.
|
void | setDatasetIndex(int index)
Sets the dataset index and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setFont(Font font)
Sets the font and sends a DialLayerChangeEvent to all registered
listeners.
|
void | setFrameAnchor(RectangleAnchor anchor)
Sets the frame anchor and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setInsets(RectangleInsets insets)
Sets the insets and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setNumberFormat(NumberFormat formatter)
Sets the formatter used to format the value and sends a
DialLayerChangeEvent to all registered listeners.
|
void | setOutlinePaint(Paint paint)
Sets the outline paint and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setOutlineStroke(Stroke stroke)
Sets the outline stroke and sends a DialLayerChangeEvent to
all registered listeners.
|
void | setPaint(Paint paint)
Sets the paint and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setRadius(double radius)
Sets the radius and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setTemplateValue(Number value)
Sets the template value and sends a DialLayerChangeEvent to
all registered listeners.
|
void | setTextAnchor(TextAnchor anchor)
Sets the text anchor and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setValueAnchor(RectangleAnchor anchor)
Sets the value anchor and sends a DialLayerChangeEvent to all
registered listeners.
|
DialValueIndicator
.DialValueIndicator
.
Parameters: datasetIndex the dataset index.
Returns: The clone.
Throws: CloneNotSupportedException if some attribute of this instance cannot be cloned.
Parameters: g2 the graphics device (null
not permitted). plot the plot (ignored here). frame the dial frame (ignored here). view the view rectangle (null
not permitted).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Arc2D
class.
Returns: The angle (in degrees).
See Also: DialValueIndicator
Returns: The background paint.
See Also: setBackgroundPaint
Returns: The dataset index.
See Also: DialValueIndicator
Returns: The font (never null
).
See Also: getFont
Returns: The frame anchor.
See Also: setFrameAnchor
Returns: The insets (never null
).
See Also: setInsets
Returns: The formatter (never null
).
See Also: setNumberFormat
Returns: The outline paint (never null
).
See Also: setOutlinePaint
Returns: The outline stroke (never null
).
See Also: setOutlineStroke
Returns: The paint (never null
).
See Also: setPaint
Returns: The radius.
See Also: DialValueIndicator
Returns: The template value (never null
).
See Also: setTemplateValue
Returns: The text anchor (never null
).
See Also: setTextAnchor
Returns: The value anchor (never null
).
See Also: setValueAnchor
Returns: The hash code.
true
to indicate that this layer should be
clipped within the dial window.
Returns: true
.
Parameters: angle the angle (in degrees).
See Also: getAngle
Parameters: paint the paint (null
not permitted).
See Also: getBackgroundPaint
Parameters: index the index.
See Also: getDatasetIndex
Parameters: font the font (null
not permitted).
Parameters: anchor the anchor (null
not permitted).
See Also: getFrameAnchor
Parameters: insets the insets (null
not permitted).
See Also: getInsets
Parameters: formatter the formatter (null
not permitted).
See Also: getNumberFormat
Parameters: paint the paint (null
not permitted).
See Also: getOutlinePaint
Parameters: stroke the stroke (null
not permitted).
See Also: getOutlineStroke
Parameters: paint the paint (null
not permitted).
See Also: getPaint
Parameters: radius the radius.
See Also: getRadius
Parameters: value the value (null
not permitted).
See Also: setTemplateValue
Parameters: anchor the anchor (null
not permitted).
See Also: getTextAnchor
Parameters: anchor the anchor (null
not permitted).
See Also: getValueAnchor