java.lang.Object | ||
↳ | org.jfree.chart.plot.dial.AbstractDialLayer | |
↳ | org.jfree.chart.plot.dial.DialCap |
A regular dial layer that can be used to draw a cap over the center of the dial (the base of the dial pointer(s)).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of
StandardDialBackground . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a clone of this instance.
| |||||||||||
Draws the background to the specified graphics device.
| |||||||||||
Tests this instance for equality with an arbitrary object.
| |||||||||||
Returns the paint used to fill the cap.
| |||||||||||
Returns the paint used to draw the outline of the cap.
| |||||||||||
Returns the stroke used to draw the outline of the cap.
| |||||||||||
Returns the radius of the cap, as a percentage of the dial's framing
rectangle.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Returns
true to indicate that this layer should be
clipped within the dial window. | |||||||||||
Sets the paint for the cap background and sends a
DialLayerChangeEvent to all registered listeners. | |||||||||||
Sets the paint used to draw the outline of the cap and sends a
DialLayerChangeEvent to all registered listeners. | |||||||||||
Sets the stroke used to draw the outline of the cap and sends a
DialLayerChangeEvent to all registered listeners. | |||||||||||
Sets the radius of the cap, as a percentage of the dial's framing
rectangle, and sends a
DialLayerChangeEvent to all registered
listeners. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new instance of StandardDialBackground
. The
default background paint is Color.white
.
Returns a clone of this instance.
CloneNotSupportedException | if some attribute of the cap cannot be cloned. |
---|
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.
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).
|
Tests this instance for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the paint used to fill the cap.
null
).Returns the paint used to draw the outline of the cap.
null
).Returns the stroke used to draw the outline of the cap.
null
).Returns the radius of the cap, as a percentage of the dial's framing rectangle.
Returns a hash code for this instance.
Returns true
to indicate that this layer should be
clipped within the dial window.
true
.
Sets the paint for the cap background and sends a
DialLayerChangeEvent
to all registered listeners.
paint | the paint (null not permitted). |
---|
Sets the paint used to draw the outline of the cap and sends a
DialLayerChangeEvent
to all registered listeners.
paint | the paint (null not permitted). |
---|
Sets the stroke used to draw the outline of the cap and sends a
DialLayerChangeEvent
to all registered listeners.
stroke | the stroke (null not permitted). |
---|
Sets the radius of the cap, as a percentage of the dial's framing
rectangle, and sends a DialLayerChangeEvent
to all registered
listeners.
radius | the radius (must be greater than zero). |
---|