|
Header
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.chart.block.AbstractBlock
org.jfree.chart.block.BlockContainer
org.jfree.chart.title.LegendItemBlockContainer
public class LegendItemBlockContainer
A container that holds all the pieces of a single legend item.
Constructor Summary | |
---|---|
LegendItemBlockContainer(Arrangement arrangement,
Dataset dataset,
java.lang.Comparable seriesKey)
Creates a new legend item block. |
|
LegendItemBlockContainer(Arrangement arrangement,
int datasetIndex,
int series)
Deprecated. As of 1.0.6, use the other constructor. |
Method Summary | |
---|---|
java.lang.Object |
draw(java.awt.Graphics2D g2,
java.awt.geom.Rectangle2D area,
java.lang.Object params)
Draws the block within the specified area. |
Dataset |
getDataset()
Returns a reference to the dataset for the associated legend item. |
int |
getDatasetIndex()
Deprecated. As of 1.0.6, use the getDataset() method. |
int |
getSeriesIndex()
Returns the series index. |
java.lang.Comparable |
getSeriesKey()
Returns the series key. |
java.lang.String |
getToolTipText()
Returns the tool tip text. |
java.lang.String |
getURLText()
Returns the URL text. |
void |
setToolTipText(java.lang.String text)
Sets the tool tip text. |
void |
setURLText(java.lang.String text)
Sets the URL text. |
Methods inherited from class org.jfree.chart.block.BlockContainer |
---|
add, add, arrange, clear, clone, draw, equals, getArrangement, getBlocks, isEmpty, setArrangement |
Methods inherited from class org.jfree.chart.block.AbstractBlock |
---|
arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, getBorder, getBounds, getContentXOffset, getContentYOffset, getFrame, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBorder, setBounds, setFrame, setHeight, setID, setMargin, setMargin, setPadding, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jfree.chart.block.Block |
---|
arrange, getBounds, getID, setBounds, setID |
Constructor Detail |
---|
public LegendItemBlockContainer(Arrangement arrangement, int datasetIndex, int series)
arrangement
- the arrangement.datasetIndex
- the dataset index.series
- the series index.public LegendItemBlockContainer(Arrangement arrangement, Dataset dataset, java.lang.Comparable seriesKey)
arrangement
- the arrangement.dataset
- the dataset.seriesKey
- the series key.Method Detail |
---|
public Dataset getDataset()
public java.lang.Comparable getSeriesKey()
public int getDatasetIndex()
getDataset()
method.
public int getSeriesIndex()
public java.lang.String getToolTipText()
null
).public void setToolTipText(java.lang.String text)
text
- the text (null
permitted).public java.lang.String getURLText()
null
).public void setURLText(java.lang.String text)
text
- the text (null
permitted).public java.lang.Object draw(java.awt.Graphics2D g2, java.awt.geom.Rectangle2D area, java.lang.Object params)
draw
in interface Block
draw
in class BlockContainer
g2
- the graphics device.area
- the area.params
- passed on to blocks within the container
(null
permitted).
EntityBlockResult
, or null
.
|
Footer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |