org.jfree.chart.title
public class PaintScaleLegend extends Title implements AxisChangeListener, PublicCloneable
Since: 1.0.4
Constructor Summary | |
---|---|
PaintScaleLegend(PaintScale scale, ValueAxis axis)
Creates a new instance.
|
Method Summary | |
---|---|
Size2D | arrange(Graphics2D g2, RectangleConstraint constraint)
Arranges the contents of the block, within the given constraints, and
returns the block size.
|
protected Size2D | arrangeRR(Graphics2D g2, Range widthRange, Range heightRange)
Returns the content size for the title. |
void | axisChanged(AxisChangeEvent event)
Receives notification of an axis change event and responds by firing
a title change event.
|
void | draw(Graphics2D g2, Rectangle2D area)
Draws the legend within the specified area.
|
Object | draw(Graphics2D g2, Rectangle2D area, Object params)
Draws the legend within the specified area.
|
boolean | equals(Object obj)
Tests this legend for equality with an arbitrary object.
|
ValueAxis | getAxis()
Returns the axis for the paint scale.
|
AxisLocation | getAxisLocation()
Returns the axis location.
|
double | getAxisOffset()
Returns the offset between the axis and the paint strip.
|
Paint | getBackgroundPaint()
Returns the background paint.
|
PaintScale | getScale()
Returns the scale used to convert values to colors.
|
Paint | getStripOutlinePaint()
Returns the paint used to draw the outline of the paint strip.
|
Stroke | getStripOutlineStroke()
Returns the stroke used to draw the outline around the paint strip.
|
double | getStripWidth()
Returns the width of the paint strip, in Java2D units.
|
int | getSubdivisionCount()
Returns the number of subdivisions used to draw the scale.
|
boolean | isStripOutlineVisible()
Returns the flag that controls whether or not an outline is drawn
around the paint strip.
|
void | setAxis(ValueAxis axis)
Sets the axis for the paint scale and sends a TitleChangeEvent
to all registered listeners.
|
void | setAxisLocation(AxisLocation location)
Sets the axis location and sends a TitleChangeEvent to all
registered listeners.
|
void | setAxisOffset(double offset)
Sets the offset between the axis and the paint strip and sends a
TitleChangeEvent to all registered listeners.
|
void | setBackgroundPaint(Paint paint)
Sets the background paint and sends a TitleChangeEvent to all
registered listeners.
|
void | setScale(PaintScale scale)
Sets the scale and sends a TitleChangeEvent to all registered
listeners.
|
void | setStripOutlinePaint(Paint paint)
Sets the paint used to draw the outline of the paint strip, and sends
a TitleChangeEvent to all registered listeners.
|
void | setStripOutlineStroke(Stroke stroke)
Sets the stroke used to draw the outline around the paint strip and
sends a TitleChangeEvent to all registered listeners.
|
void | setStripOutlineVisible(boolean visible)
Sets the flag that controls whether or not an outline is drawn around
the paint strip, and sends a TitleChangeEvent to all registered
listeners.
|
void | setStripWidth(double width)
Sets the width of the paint strip and sends a TitleChangeEvent
to all registered listeners.
|
void | setSubdivisionCount(int count)
Sets the subdivision count and sends a TitleChangeEvent to
all registered listeners.
|
Parameters: scale the scale (null
not permitted). axis the axis (null
not permitted).
Parameters: g2 the graphics device. constraint the constraint (null
not permitted).
Returns: The block size (in Java2D units, never null
).
Parameters: g2 the graphics device. widthRange the width range. heightRange the height range.
Returns: The content size.
Parameters: event the event.
Since: 1.0.13
Parameters: g2 the graphics target (null
not permitted). area the drawing area (null
not permitted).
Parameters: g2 the graphics target (null
not permitted). area the drawing area (null
not permitted). params drawing parameters (ignored here).
Returns: null
.
Parameters: obj the object (null
permitted).
Returns: A boolean.
Returns: The axis (never null
).
See Also: setAxis
Returns: The axis location (never null
).
See Also: setAxisLocation
Returns: The offset between the axis and the paint strip.
See Also: PaintScaleLegend
Returns: The background paint.
Returns: The scale (never null
).
See Also: setScale
Returns: The paint (never null
).
See Also: setStripOutlinePaint
Returns: The stroke (never null
).
See Also: setStripOutlineStroke
Returns: The width of the paint strip.
See Also: PaintScaleLegend
Returns: The subdivision count.
Since: 1.0.11
Returns: A boolean.
See Also: PaintScaleLegend
Parameters: axis the axis (null
not permitted).
See Also: getAxis
Parameters: location the location (null
not permitted).
See Also: getAxisLocation
Parameters: offset the offset.
Parameters: paint the paint (null
permitted).
Parameters: scale the scale (null
not permitted).
See Also: getScale
Parameters: paint the paint (null
not permitted).
See Also: getStripOutlinePaint
Parameters: stroke the stroke (null
not permitted).
See Also: getStripOutlineStroke
Parameters: visible the flag.
See Also: isStripOutlineVisible
Parameters: width the width.
See Also: getStripWidth
Parameters: count the count.
Since: 1.0.11