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 Block | createLegendItemBlock(LegendItem item) Creates a legend item block.
Parameters: item - the legend item. |
public void | draw(Graphics2D g2, Rectangle2D area) Draws the title on a Java 2D graphics device (such as the screen or a
printer). |
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 title for equality with an arbitrary object.
Parameters: obj - the object (null permitted). |
protected void | fetchLegendItems() Fetches the latest legend items. |
public Paint | getBackgroundPaint() Returns the background paint. |
public BlockContainer | getItemContainer() Returns the container that holds the legend items. |
public Font | getItemFont() Returns the item font. |
public RectangleInsets | getItemLabelPadding() Returns the padding used for the items labels. |
public Paint | getItemPaint() Returns the item paint. |
public RectangleAnchor | getLegendItemGraphicAnchor() Returns the legend item graphic anchor. |
public RectangleEdge | getLegendItemGraphicEdge() Returns the location of the shape within each legend item. |
public RectangleAnchor | getLegendItemGraphicLocation() Returns the legend item graphic location. |
public RectangleInsets | getLegendItemGraphicPadding() Returns the padding that will be applied to each item graphic. |
public LegendItemSource[] | getSources() Returns the legend item sources. |
public void | setBackgroundPaint(Paint paint) Sets the background paint for the legend and sends a
TitleChangeEvent to all registered listeners. |
public void | setItemFont(Font font) Sets the item font and sends a
TitleChangeEvent to
all registered listeners. |
public void | setItemLabelPadding(RectangleInsets padding) Sets the padding used for the item labels in the legend. |
public void | setItemPaint(Paint paint) Sets the item paint. |
public void | setLegendItemGraphicAnchor(RectangleAnchor anchor) Sets the anchor point used for the graphic in each legend item. |
public void | setLegendItemGraphicEdge(RectangleEdge edge) Sets the location of the shape within each legend item. |
public void | setLegendItemGraphicLocation(RectangleAnchor anchor) Sets the legend item graphic location. |
public void | setLegendItemGraphicPadding(RectangleInsets padding) Sets the padding that will be applied to each item graphic in the
legend and sends a
TitleChangeEvent to all registered listeners. |
public void | setSources(LegendItemSource[] sources) Sets the legend item sources and sends a
TitleChangeEvent to
all registered listeners. |
public void | setWrapper(BlockContainer wrapper) Sets the wrapper container for the legend. |