public class LegendItemBlockContainer extends BlockContainer
Constructor and Description |
---|
LegendItemBlockContainer(Arrangement arrangement,
Dataset dataset,
Comparable seriesKey)
Creates a new legend item block.
|
Modifier and Type | Method and Description |
---|---|
Object |
draw(Graphics2D g2,
Rectangle2D area,
Object params)
Draws the block within the specified area.
|
Dataset |
getDataset()
Returns a reference to the dataset for the associated legend item.
|
int |
getSeriesIndex()
Returns the series index.
|
Comparable |
getSeriesKey()
Returns the series key.
|
String |
getToolTipText()
Returns the tool tip text.
|
String |
getURLText()
Returns the URL text.
|
void |
setToolTipText(String text)
Sets the tool tip text.
|
void |
setURLText(String text)
Sets the URL text.
|
add, add, arrange, clear, clone, draw, equals, getArrangement, getBlocks, isEmpty, setArrangement
arrange, calculateTotalHeight, calculateTotalWidth, drawBorder, getBounds, getContentXOffset, getContentYOffset, getFrame, getHeight, getID, getMargin, getPadding, getWidth, setBorder, setBounds, setFrame, setHeight, setID, setMargin, setMargin, setPadding, setPadding, setWidth, toContentConstraint, trimBorder, trimMargin, trimPadding, trimToContentHeight, trimToContentWidth
public LegendItemBlockContainer(Arrangement arrangement, Dataset dataset, Comparable seriesKey)
arrangement
- the arrangement.dataset
- the dataset.seriesKey
- the series key.public Dataset getDataset()
public Comparable getSeriesKey()
public int getSeriesIndex()
public String getToolTipText()
null
).public void setToolTipText(String text)
text
- the text (null
permitted).public String getURLText()
null
).public void setURLText(String text)
text
- the text (null
permitted).public Object draw(Graphics2D g2, Rectangle2D area, 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
.Copyright © 2001–2017 JFree.org. All rights reserved.