Method Summary |
|
public Size2D | arrange(Graphics2D g2, RectangleConstraint constraint) Arranges the contents of the block, within the given constraints, and
returns the block size.
Parameters: g2 - the graphics device. Parameters: constraint - the constraint (null not permitted). |
protected Size2D | arrangeRR(Graphics2D g2, Range widthRange, Range heightRange) Returns the content size for the title. |
public void | draw(Graphics2D g2, Rectangle2D area) Draws the legend within the specified area. |
public Object | draw(Graphics2D g2, Rectangle2D area, Object params) Draws the legend within the specified area.
Parameters: g2 - the graphics target (null not permitted). Parameters: area - the drawing area (null not permitted). Parameters: params - drawing parameters (ignored here). |
public boolean | equals(Object obj) Tests this legend for equality with an arbitrary object.
Parameters: obj - the object (null permitted). |
public ValueAxis | getAxis() Returns the axis for the paint scale. |
public AxisLocation | getAxisLocation() Returns the axis location. |
public double | getAxisOffset() Returns the offset between the axis and the paint strip. |
public Paint | getBackgroundPaint() Returns the background paint. |
public PaintScale | getScale() Returns the scale used to convert values to colors. |
public Paint | getStripOutlinePaint() Returns the paint used to draw the outline of the paint strip. |
public Stroke | getStripOutlineStroke() Returns the stroke used to draw the outline around the paint strip. |
public double | getStripWidth() Returns the width of the paint strip, in Java2D units. |
public boolean | isStripOutlineVisible() Returns the flag that controls whether or not an outline is drawn
around the paint strip. |
public void | setAxis(ValueAxis axis) Sets the axis for the paint scale and sends a
TitleChangeEvent to all registered listeners. |
public void | setAxisLocation(AxisLocation location) Sets the axis location and sends a
TitleChangeEvent to all
registered listeners. |
public void | setAxisOffset(double offset) Sets the offset between the axis and the paint strip and sends a
TitleChangeEvent to all registered listeners. |
public void | setBackgroundPaint(Paint paint) Sets the background paint and sends a
TitleChangeEvent to all
registered listeners. |
public void | setScale(PaintScale scale) Sets the scale and sends a
TitleChangeEvent to all registered
listeners. |
public void | setStripOutlinePaint(Paint paint) Sets the paint used to draw the outline of the paint strip, and sends
a
TitleChangeEvent to all registered listeners. |
public void | setStripOutlineStroke(Stroke stroke) Sets the stroke used to draw the outline around the paint strip and
sends a
TitleChangeEvent to all registered listeners. |
public 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. |
public void | setStripWidth(double width) Sets the width of the paint strip and sends a
TitleChangeEvent to all registered listeners. |