| java.lang.Object | ||
| ↳ | org.jfree.chart.plot.dial.AbstractDialLayer | |
| ↳ | org.jfree.chart.plot.dial.DialBackground | |
A regular dial layer that can be used to draw the background for a dial.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance of
DialBackground. | |||||||||||
Creates a new instance of
DialBackground. | |||||||||||
| 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 transformer used to adjust the coordinates of any
GradientPaint instance used for the background paint. | |||||||||||
Returns the paint used to fill the background.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Returns
true to indicate that this layer should be
clipped within the dial window. | |||||||||||
Sets the transformer used to adjust the coordinates of any
GradientPaint instance used for the background paint, and
sends a DialLayerChangeEvent to all registered listeners. | |||||||||||
Sets the paint for the dial background and sends a
DialLayerChangeEvent to all registered listeners. | |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.jfree.chart.plot.dial.AbstractDialLayer
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.jfree.chart.plot.dial.DialLayer
| |||||||||||
Creates a new instance of DialBackground. The
default background paint is Color.white.
Creates a new instance of DialBackground. The
| paint | the paint (null not permitted). |
|---|
| IllegalArgumentException | if paint is
null.
|
|---|
Returns a clone of this instance.
| CloneNotSupportedException | if some attribute of this instance 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 transformer used to adjust the coordinates of any
GradientPaint instance used for the background paint.
null).Returns the paint used to fill the background.
null).Returns a hash code for this instance.
Returns true to indicate that this layer should be
clipped within the dial window.
true.
Sets the transformer used to adjust the coordinates of any
GradientPaint instance used for the background paint, and
sends a DialLayerChangeEvent to all registered listeners.
| t | the transformer (null not permitted). |
|---|
Sets the paint for the dial background and sends a
DialLayerChangeEvent to all registered listeners.
| paint | the paint (null not permitted). |
|---|