|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jfree.chart.title.Title
org.jfree.chart.title.LegendTitle
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 chart, in which case the legend items will be automatically created to match the dataset.
| Field Summary |
| Fields inherited from class org.jfree.chart.title.Title |
BOTTOM, CENTER, DEFAULT_HORIZONTAL_ALIGNMENT, DEFAULT_POSITION, DEFAULT_SPACER, DEFAULT_VERTICAL_ALIGNMENT, EAST, LEFT, MIDDLE, NORTH, RIGHT, SOUTH, TOP, WEST |
| Constructor Summary | |
LegendTitle()
Constructs a new, empty LegendTitle. |
|
LegendTitle(LegendItemLayout layout)
Creates a new legend title. |
|
| Method Summary | |
void |
addLegendItem(LegendItem item)
Adds a legend item to the LegendTitle. |
void |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
Draws the title on a Java 2D graphics device (such as the screen or a printer). |
| Methods inherited from class org.jfree.chart.title.Title |
addChangeListener, clone, equals, getHorizontalAlignment, getNotify, getPosition, getPreferredHeight, getPreferredWidth, getSpacer, getVerticalAlignment, hashCode, notifyListeners, removeChangeListener, setHorizontalAlignment, setNotify, setPosition, setSpacer, setVerticalAlignment |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LegendTitle()
public LegendTitle(LegendItemLayout layout)
layout - the layout.| Method Detail |
public void addLegendItem(LegendItem item)
item - the item to add.
public void draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area)
draw in class Titleg2 - the graphics device.area - the area for the chart and all its titles.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||