A chart title that displays a legend for the data in the chart.
The title can be populated with legend items manually, or you can assign a
reference to the plot, in which case the legend items will be automatically
created to match the dataset(s).
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).
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).
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.
Creates a new legend title with the specified arrangement.
Parameters: source - the source. Parameters: hLayout - the horizontal item arrangement (null notpermitted). Parameters: vLayout - the vertical item arrangement (null notpermitted).
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). The block size (in Java2D units, never null).
Draws the title on a Java 2D graphics device (such as the screen or a
printer).
Parameters: g2 - the graphics device. Parameters: area - the available area for the title.
Draws the block within the specified area.
Parameters: g2 - the graphics device. Parameters: area - the area. Parameters: params - ignored (null permitted). An org.jfree.chart.block.EntityBlockResult or null.
Sets the item paint.
Parameters: paint - the paint (null not permitted).
setLegendItemGraphicAnchor
public void setLegendItemGraphicAnchor(RectangleAnchor anchor)(Code)
Sets the anchor point used for the graphic in each legend item.
Parameters: anchor - the anchor point (null not permitted).
setLegendItemGraphicEdge
public void setLegendItemGraphicEdge(RectangleEdge edge)(Code)
Sets the location of the shape within each legend item.
Parameters: edge - the edge (null not permitted).
setLegendItemGraphicLocation
public void setLegendItemGraphicLocation(RectangleAnchor anchor)(Code)
Sets the legend item graphic location.
Parameters: anchor - the anchor (null not permitted).
setLegendItemGraphicPadding
public void setLegendItemGraphicPadding(RectangleInsets padding)(Code)
Sets the padding that will be applied to each item graphic in the
legend and sends a
TitleChangeEvent to all registered listeners.
Parameters: padding - the padding (null not permitted).
Sets the wrapper container for the legend.
Parameters: wrapper - the wrapper container.
Fields inherited from org.jfree.chart.title.Title
final public static HorizontalAlignment DEFAULT_HORIZONTAL_ALIGNMENT(Code)(Java Doc) final public static RectangleInsets DEFAULT_PADDING(Code)(Java Doc) final public static RectangleEdge DEFAULT_POSITION(Code)(Java Doc) final public static VerticalAlignment DEFAULT_VERTICAL_ALIGNMENT(Code)(Java Doc)
Methods inherited from org.jfree.chart.title.Title