JIDE 3.5.15

com.jidesoft.chart
Interface LegendItem<Item,Source>

All Known Implementing Classes:
BulletIndicatorLegendItem, BulletIntervalMarkerLegendItem, DialIntervalMarkerLegendItem, NeedleLegendItem

public interface LegendItem<Item,Source>

LegendItems can be created to represent a ChartModel or a Chartable within a ChartModel. The ability to create a LegendItem for a Chartable is important for pie charts, as each segment is a Chartable and may have a different ChartStyle applied to it.


Field Summary
static int itemHeight
           
static int itemWidth
           
 
Method Summary
 Component getComponent()
          Returns the GUI component to be displayed in the legend
 Item getItem()
          For a ModelLegendItem this returns the ChartModel; for a PointLegendItem it returns the Chartable
 String getLabel()
           
 Source getSource()
          Returns the model item, or the model to which the Chartable item belongs
 

Field Detail

itemHeight

static final int itemHeight
See Also:
Constant Field Values

itemWidth

static final int itemWidth
See Also:
Constant Field Values
Method Detail

getComponent

Component getComponent()
Returns the GUI component to be displayed in the legend

Returns:
the GUI component

getLabel

String getLabel()

getItem

Item getItem()
For a ModelLegendItem this returns the ChartModel; for a PointLegendItem it returns the Chartable

Returns:
either the ChartModel or the Chartable

getSource

Source getSource()
Returns the model item, or the model to which the Chartable item belongs

Returns:
a ChartModel

JIDE 3.5.15