org.jfree.chart.title
Class LegendItemBlockContainer
- Block, Cloneable, Drawable, PublicCloneable, Serializable
A container that holds all the pieces of a single legend item.
add, add, arrange, clear, clone, draw, draw, equals, getArrangement, getBlocks, isEmpty, setArrangement |
arrange, arrange, calculateTotalHeight, calculateTotalWidth, clone, drawBorder, equals, 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 |
LegendItemBlockContainer
public LegendItemBlockContainer(Arrangement arrangement,
int datasetIndex,
int series)As of 1.0.6, use the other constructor.
Creates a new legend item block.
arrangement - the arrangement.datasetIndex - the dataset index.series - the series index.
LegendItemBlockContainer
public LegendItemBlockContainer(Arrangement arrangement,
Dataset dataset,
Comparable seriesKey) Creates a new legend item block.
arrangement - the arrangement.dataset - the dataset.seriesKey - the series key.
draw
public Object draw(Graphics2D g2,
Rectangle2D area,
Object params) Draws the block within the specified area.
- draw in interface Block
- draw in interface BlockContainer
g2 - the graphics device.area - the area.params - passed on to blocks within the container
(null permitted).
getDataset
public Dataset getDataset()
Returns a reference to the dataset for the associated legend item.
getSeriesKey
public Comparable getSeriesKey()
Returns the series key.
getToolTipText
public String getToolTipText()
Returns the tool tip text.
- The tool tip text (possibly
null).
getURLText
public String getURLText()
Returns the URL text.
- The URL text (possibly
null).
setToolTipText
public void setToolTipText(String text)
Sets the tool tip text.
text - the text (null permitted).
setURLText
public void setURLText(String text)
Sets the URL text.
text - the text (null permitted).