Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.jfree.chart.plot.dial.AbstractDialLayer
org.jfree.chart.plot.dial.DialValueIndicator
public class DialValueIndicator
extends AbstractDialLayer
implements DialLayer, Cloneable, PublicCloneable, Serializable
DialPlot
.
Constructor Summary | |
| |
|
Method Summary | |
Object |
|
void | |
boolean |
|
double |
|
Paint |
|
int |
|
Font |
|
RectangleAnchor |
|
RectangleInsets |
|
NumberFormat |
|
Paint |
|
Stroke |
|
Paint |
|
double |
|
Number |
|
TextAnchor |
|
RectangleAnchor |
|
int |
|
boolean |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
Methods inherited from class org.jfree.chart.plot.dial.AbstractDialLayer | |
addChangeListener , clone , equals , hasListener , hashCode , isVisible , notifyListeners , removeChangeListener , setVisible |
public DialValueIndicator(int datasetIndex)
Creates a new instance ofDialValueIndicator
.
- Parameters:
datasetIndex
- the dataset index.
public Object clone() throws CloneNotSupportedException
Returns a clone of this instance.
- Overrides:
- clone in interface AbstractDialLayer
- Returns:
- The clone.
public void draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the background to the specified graphics device. If the dial frame specifies a window, the clipping region will already have been set to this window before this method is called.
- 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).
public boolean equals(Object obj)
Tests this instance for equality with an arbitrary object.
- Overrides:
- equals in interface AbstractDialLayer
- Parameters:
obj
- the object (null
permitted).
- Returns:
- A boolean.
public double getAngle()
Returns the angle for the anchor point. The angle is specified in degrees using the same orientation as Java'sArc2D
class.
- Returns:
- The angle (in degrees).
- See Also:
setAngle(double)
public Paint getBackgroundPaint()
Returns the background paint.
- Returns:
- The background paint.
- See Also:
setBackgroundPaint(Paint)
public int getDatasetIndex()
Returns the index of the dataset from which this indicator fetches its current value.
- Returns:
- The dataset index.
- See Also:
setDatasetIndex(int)
public RectangleAnchor getFrameAnchor()
Returns the frame anchor.
- Returns:
- The frame anchor.
- See Also:
setFrameAnchor(RectangleAnchor)
public RectangleInsets getInsets()
Returns the insets.
- Returns:
- The insets (never
null
).
- See Also:
setInsets(RectangleInsets)
public NumberFormat getNumberFormat()
Returns the formatter used to format the value.
- Returns:
- The formatter (never
null
).
- See Also:
setNumberFormat(NumberFormat)
public Paint getOutlinePaint()
Returns the outline paint.
- Returns:
- The outline paint (never
null
).
- See Also:
setOutlinePaint(Paint)
public Stroke getOutlineStroke()
Returns the outline stroke.
- Returns:
- The outline stroke (never
null
).
- See Also:
setOutlineStroke(Stroke)
public Paint getPaint()
Returns the paint.
- Returns:
- The paint (never
null
).
- See Also:
setPaint(Paint)
public double getRadius()
Returns the radius.
- Returns:
- The radius.
- See Also:
setRadius(double)
public Number getTemplateValue()
Returns the template value.
- Returns:
- The template value (never
null
).
- See Also:
setTemplateValue(Number)
public TextAnchor getTextAnchor()
Returns the text anchor.
- Returns:
- The text anchor (never
null
).
- See Also:
setTextAnchor(TextAnchor)
public RectangleAnchor getValueAnchor()
Returns the value anchor.
- Returns:
- The value anchor (never
null
).
- See Also:
setValueAnchor(RectangleAnchor)
public int hashCode()
Returns a hash code for this instance.
- Overrides:
- hashCode in interface AbstractDialLayer
- Returns:
- The hash code.
public boolean isClippedToWindow()
Returnstrue
to indicate that this layer should be clipped within the dial window.
- Specified by:
- isClippedToWindow in interface DialLayer
- Returns:
true
.
public void setAngle(double angle)
Sets the angle for the anchor point and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
angle
- the angle (in degrees).
- See Also:
getAngle()
public void setBackgroundPaint(Paint paint)
Sets the background paint and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
paint
- the paint (null
not permitted).
- See Also:
getBackgroundPaint()
public void setDatasetIndex(int index)
Sets the dataset index and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
index
- the index.
- See Also:
getDatasetIndex()
public void setFont(Font font)
Sets the font and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
font
- the font (null
not permitted).
public void setFrameAnchor(RectangleAnchor anchor)
Sets the frame anchor and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
anchor
- the anchor (null
not permitted).
- See Also:
getFrameAnchor()
public void setInsets(RectangleInsets insets)
Sets the insets and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
insets
- the insets (null
not permitted).
- See Also:
getInsets()
public void setNumberFormat(NumberFormat formatter)
Sets the formatter used to format the value and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
formatter
- the formatter (null
not permitted).
- See Also:
getNumberFormat()
public void setOutlinePaint(Paint paint)
Sets the outline paint and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
paint
- the paint (null
not permitted).
- See Also:
getOutlinePaint()
public void setOutlineStroke(Stroke stroke)
Sets the outline stroke and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
stroke
- the stroke (null
not permitted).
- See Also:
getOutlineStroke()
public void setPaint(Paint paint)
Sets the paint and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
paint
- the paint (null
not permitted).
- See Also:
getPaint()
public void setRadius(double radius)
Sets the radius and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
radius
- the radius.
- See Also:
getRadius()
public void setTemplateValue(Number value)
Sets the template value and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
value
- the value (null
not permitted).
- See Also:
setTemplateValue(Number)
public void setTextAnchor(TextAnchor anchor)
Sets the text anchor and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
anchor
- the anchor (null
not permitted).
- See Also:
getTextAnchor()
public void setValueAnchor(RectangleAnchor anchor)
Sets the value anchor and sends aDialLayerChangeEvent
to all registered listeners.
- Parameters:
anchor
- the anchor (null
not permitted).
- See Also:
getValueAnchor()