Save This Page
Home » jcommon-1.0.13 » org.jfree » chart » title » [javadoc | source]
org.jfree.chart.title
public class: LegendItemBlockContainer [javadoc | source]
java.lang.Object
   org.jfree.chart.block.AbstractBlock
      org.jfree.chart.block.BlockContainer
         org.jfree.chart.title.LegendItemBlockContainer

All Implemented Interfaces:
    PublicCloneable, Cloneable, Serializable, Block

A container that holds all the pieces of a single legend item.
Constructor:
 public LegendItemBlockContainer(Arrangement arrangement,
    int datasetIndex,
    int series) 
    Creates a new legend item block.
    Parameters:
    arrangement - the arrangement.
    datasetIndex - the dataset index.
    series - the series index.
 public LegendItemBlockContainer(Arrangement arrangement,
    Dataset dataset,
    Comparable seriesKey) 
    Creates a new legend item block.
    Parameters:
    arrangement - the arrangement.
    dataset - the dataset.
    seriesKey - the series key.
    since: 1.0.6 -
Method from org.jfree.chart.title.LegendItemBlockContainer Summary:
draw,   getDataset,   getDatasetIndex,   getSeriesIndex,   getSeriesKey,   getToolTipText,   getURLText,   setToolTipText,   setURLText
Methods from org.jfree.chart.block.BlockContainer:
add,   add,   arrange,   clear,   clone,   draw,   draw,   equals,   getArrangement,   getBlocks,   isEmpty,   setArrangement
Methods from org.jfree.chart.block.AbstractBlock:
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
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.chart.title.LegendItemBlockContainer Detail:
 public Object draw(Graphics2D g2,
    Rectangle2D area,
    Object params) 
    Draws the block within the specified area.
 public Dataset getDataset() 
    Returns a reference to the dataset for the associated legend item.
 public int getDatasetIndex() 
Deprecated! As - of 1.0.6, use the #getDataset() method.

    Returns the dataset index.
 public int getSeriesIndex() 
    Returns the series index.
 public Comparable getSeriesKey() 
    Returns the series key.
 public String getToolTipText() 
    Returns the tool tip text.
 public String getURLText() 
    Returns the URL text.
 public  void setToolTipText(String text) 
    Sets the tool tip text.
 public  void setURLText(String text) 
    Sets the URL text.