org.jfree.chart.plot.dial
public class StandardDialRange extends AbstractDialLayer implements DialLayer, Cloneable, PublicCloneable, Serializable
Since: 1.0.7
Constructor Summary | |
---|---|
StandardDialRange()
Creates a new instance of StandardDialRange . | |
StandardDialRange(double lower, double upper, Paint paint)
Creates a new instance of StandardDialRange .
|
Method Summary | |
---|---|
Object | clone()
Returns a clone of this instance.
|
void | draw(Graphics2D g2, DialPlot plot, Rectangle2D frame, Rectangle2D view)
Draws the range.
|
boolean | equals(Object obj)
Tests this instance for equality with an arbitrary object.
|
double | getInnerRadius()
Returns the inner radius.
|
double | getLowerBound()
Returns the lower bound (a data value) of the dial range.
|
double | getOuterRadius()
Returns the outer radius.
|
Paint | getPaint()
Returns the paint used to highlight the range.
|
int | getScaleIndex()
Returns the scale index.
|
double | getUpperBound()
Returns the upper bound of the dial range.
|
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 | setBounds(double lower, double upper)
Sets the bounds for the range and sends a DialLayerChangeEvent
to all registered listeners.
|
void | setInnerRadius(double radius)
Sets the inner radius and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setLowerBound(double bound)
Sets the lower bound of the dial range and sends a
DialLayerChangeEvent to all registered listeners.
|
void | setOuterRadius(double radius)
Sets the outer radius and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setPaint(Paint paint)
Sets the paint used to highlight the range and sends a
DialLayerChangeEvent to all registered listeners.
|
void | setScaleIndex(int index)
Sets the scale index and sends a DialLayerChangeEvent to all
registered listeners.
|
void | setUpperBound(double bound)
Sets the upper bound of the dial range and sends a
DialLayerChangeEvent to all registered listeners.
|
StandardDialRange
.StandardDialRange
.
Parameters: lower the lower bound. upper the upper bound. paint the paint (null
not permitted).
Returns: A clone.
Throws: CloneNotSupportedException if any of the attributes of this instance cannot be cloned.
Parameters: g2 the graphics target. plot the plot. frame the dial's reference frame (in Java2D space). view the dial's view rectangle (in Java2D space).
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The inner radius.
See Also: StandardDialRange
Returns: The lower bound of the dial range.
See Also: StandardDialRange
Returns: The outer radius.
See Also: StandardDialRange
Returns: The paint (never null
).
See Also: setPaint
Returns: The scale index.
See Also: StandardDialRange
Returns: The upper bound.
See Also: StandardDialRange
Returns: The hash code.
true
to indicate that this layer should be
clipped within the dial window.
Returns: true
.
Parameters: lower the lower bound. upper the upper bound.
Parameters: radius the radius.
See Also: getInnerRadius
Parameters: bound the lower bound.
See Also: getLowerBound
Parameters: radius the radius.
See Also: getOuterRadius
Parameters: paint the paint (null
not permitted).
See Also: getPaint
Parameters: index the scale index.
See Also: getScaleIndex
Parameters: bound the upper bound.
See Also: getUpperBound