java.lang.Object | |||
↳ | org.jfree.chart.block.AbstractBlock | ||
↳ | org.jfree.chart.title.Title | ||
↳ | org.jfree.chart.title.PaintScaleLegend |
A legend that shows a range of values and their associated colors, driven
by an underlying PaintScale
implementation.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Arranges the contents of the block, within the given constraints, and
returns the block size.
| |||||||||||
Receives notification of an axis change event and responds by firing
a title change event.
| |||||||||||
Draws the legend within the specified area.
| |||||||||||
Draws the legend within the specified area.
| |||||||||||
Tests this legend for equality with an arbitrary object.
| |||||||||||
Returns the axis for the paint scale.
| |||||||||||
Returns the axis location.
| |||||||||||
Returns the offset between the axis and the paint strip.
| |||||||||||
Returns the background paint.
| |||||||||||
Returns the scale used to convert values to colors.
| |||||||||||
Returns the paint used to draw the outline of the paint strip.
| |||||||||||
Returns the stroke used to draw the outline around the paint strip.
| |||||||||||
Returns the width of the paint strip, in Java2D units.
| |||||||||||
Returns the number of subdivisions used to draw the scale.
| |||||||||||
Returns the flag that controls whether or not an outline is drawn
around the paint strip.
| |||||||||||
Sets the axis for the paint scale and sends a
TitleChangeEvent
to all registered listeners. | |||||||||||
Sets the axis location and sends a
TitleChangeEvent to all
registered listeners. | |||||||||||
Sets the offset between the axis and the paint strip and sends a
TitleChangeEvent to all registered listeners. | |||||||||||
Sets the background paint and sends a
TitleChangeEvent to all
registered listeners. | |||||||||||
Sets the scale and sends a
TitleChangeEvent to all registered
listeners. | |||||||||||
Sets the paint used to draw the outline of the paint strip, and sends
a
TitleChangeEvent to all registered listeners. | |||||||||||
Sets the stroke used to draw the outline around the paint strip and
sends a
TitleChangeEvent to all registered listeners. | |||||||||||
Sets the flag that controls whether or not an outline is drawn around
the paint strip, and sends a
TitleChangeEvent to all registered
listeners. | |||||||||||
Sets the width of the paint strip and sends a
TitleChangeEvent
to all registered listeners. | |||||||||||
Sets the subdivision count and sends a
TitleChangeEvent to
all registered listeners. |
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the content size for the title.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Creates a new instance.
scale | the scale (null not permitted). |
---|---|
axis | the axis (null not permitted).
|
Arranges the contents of the block, within the given constraints, and returns the block size.
g2 | the graphics device. |
---|---|
constraint | the constraint (null not permitted). |
null
).
Receives notification of an axis change event and responds by firing a title change event.
event | the event. |
---|
Draws the legend within the specified area.
g2 | the graphics target (null not permitted). |
---|---|
area | the drawing area (null not permitted).
|
Draws the legend within the specified area.
g2 | the graphics target (null not permitted). |
---|---|
area | the drawing area (null not permitted). |
params | drawing parameters (ignored here). |
null
.
Tests this legend for equality with an arbitrary object.
obj | the object (null permitted). |
---|
Returns the axis location.
null
).Returns the offset between the axis and the paint strip.
Returns the scale used to convert values to colors.
null
).Returns the paint used to draw the outline of the paint strip.
null
).Returns the stroke used to draw the outline around the paint strip.
null
).Returns the width of the paint strip, in Java2D units.
Returns the number of subdivisions used to draw the scale.
Returns the flag that controls whether or not an outline is drawn around the paint strip.
Sets the axis for the paint scale and sends a TitleChangeEvent
to all registered listeners.
axis | the axis (null not permitted). |
---|
Sets the axis location and sends a TitleChangeEvent
to all
registered listeners.
location | the location (null not permitted). |
---|
Sets the offset between the axis and the paint strip and sends a
TitleChangeEvent
to all registered listeners.
offset | the offset. |
---|
Sets the background paint and sends a TitleChangeEvent
to all
registered listeners.
paint | the paint (null permitted).
|
---|
Sets the scale and sends a TitleChangeEvent
to all registered
listeners.
scale | the scale (null not permitted). |
---|
Sets the paint used to draw the outline of the paint strip, and sends
a TitleChangeEvent
to all registered listeners.
paint | the paint (null not permitted). |
---|
Sets the stroke used to draw the outline around the paint strip and
sends a TitleChangeEvent
to all registered listeners.
stroke | the stroke (null not permitted). |
---|
Sets the flag that controls whether or not an outline is drawn around
the paint strip, and sends a TitleChangeEvent
to all registered
listeners.
visible | the flag. |
---|
Sets the width of the paint strip and sends a TitleChangeEvent
to all registered listeners.
width | the width. |
---|
Sets the subdivision count and sends a TitleChangeEvent
to
all registered listeners.
count | the count. |
---|
Returns the content size for the title. This will reflect the fact that a text title positioned on the left or right of a chart will be rotated 90 degrees.
g2 | the graphics device. |
---|---|
widthRange | the width range. |
heightRange | the height range. |