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 | arrangeNN(Graphics2D g2) Performs the layout with no constraint, so the content size is
determined by the bounds of the shape and/or line drawn to represent
the series.
Parameters: g2 - the graphics device. |
public Object | clone() Returns a clone of this LegendGraphic instance. |
public void | draw(Graphics2D g2, Rectangle2D area) Draws the graphic item within the specified area. |
public Object | draw(Graphics2D g2, Rectangle2D area, Object params) Draws the block within the specified area.
Parameters: g2 - the graphics device. Parameters: area - the area. Parameters: params - ignored (null permitted). |
public boolean | equals(Object obj) Tests this LegendGraphic instance for equality with an
arbitrary object.
Parameters: obj - the object (null permitted). |
public Paint | getFillPaint() Returns the paint used to fill the shape. |
public GradientPaintTransformer | getFillPaintTransformer() Returns the transformer used when the fill paint is an instance of
GradientPaint . |
public Shape | getLine() Returns the line centered about (0, 0). |
public Paint | getLinePaint() Returns the line paint. |
public Stroke | getLineStroke() Returns the line stroke. |
public Paint | getOutlinePaint() Returns the outline paint. |
public Stroke | getOutlineStroke() Returns the outline stroke. |
public Shape | getShape() Returns the shape. |
public RectangleAnchor | getShapeAnchor() Returns the shape anchor. |
public RectangleAnchor | getShapeLocation() Returns the shape location. |
public int | hashCode() Returns a hash code for this instance. |
public boolean | isLineVisible() Returns the flag that controls whether or not the line is visible. |
public boolean | isShapeFilled() Returns a flag that controls whether or not the shapes
are filled. |
public boolean | isShapeOutlineVisible() Returns a flag that controls whether the shape outline is visible. |
public boolean | isShapeVisible() Returns a flag that controls whether or not the shape
is visible. |
public void | setFillPaint(Paint paint) Sets the paint used to fill the shape. |
public void | setFillPaintTransformer(GradientPaintTransformer transformer) Sets the transformer used when the fill paint is an instance of
GradientPaint . |
public void | setLine(Shape line) Sets the line. |
public void | setLinePaint(Paint paint) Sets the line paint. |
public void | setLineStroke(Stroke stroke) Sets the line stroke. |
public void | setLineVisible(boolean visible) Sets the flag that controls whether or not the line is visible. |
public void | setOutlinePaint(Paint paint) Sets the outline paint. |
public void | setOutlineStroke(Stroke stroke) Sets the outline stroke. |
public void | setShape(Shape shape) Sets the shape. |
public void | setShapeAnchor(RectangleAnchor anchor) Sets the shape anchor. |
public void | setShapeFilled(boolean filled) Sets a flag that controls whether or not the shape is
filled. |
public void | setShapeLocation(RectangleAnchor location) Sets the shape location. |
public void | setShapeOutlineVisible(boolean visible) Sets a flag that controls whether or not the shape outline
is visible. |
public void | setShapeVisible(boolean visible) Sets a flag that controls whether or not the shape is
visible. |