public class StandardLegendItemInfo extends java.lang.Object implements LegendItemInfo
LegendItemInfo interface.| Constructor and Description |
|---|
StandardLegendItemInfo(java.lang.Comparable<?> seriesKey,
java.lang.String label,
java.awt.Color color)
Creates a new instance.
|
StandardLegendItemInfo(java.lang.Comparable<?> seriesKey,
java.lang.String label,
java.lang.String description,
java.awt.Color color,
java.awt.Shape shape)
Creates a new instance with the specified attributes.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Color |
getColor()
Returns the color for the legend item.
|
java.lang.String |
getDescription()
Returns the description for the legend item.
|
java.lang.String |
getLabel()
Returns the label for the legend item.
|
java.util.Map<java.lang.Comparable<?>,java.lang.Object> |
getProperties()
Returns the properties for the legend item.
|
java.lang.Comparable<?> |
getSeriesKey()
Returns the series key.
|
java.awt.Shape |
getShape()
Returns the shape for the legend item.
|
public StandardLegendItemInfo(java.lang.Comparable<?> seriesKey, java.lang.String label, java.awt.Color color)
seriesKey - the series key (null not permitted).label - the label (null not permitted).color - the color (null not permitted).public StandardLegendItemInfo(java.lang.Comparable<?> seriesKey, java.lang.String label, java.lang.String description, java.awt.Color color, java.awt.Shape shape)
seriesKey - the series key (null not permitted).label - the label (null not permitted).description - the description (null permitted).color - the color (null not permitted).shape - the shape (null permitted).public java.lang.Comparable<?> getSeriesKey()
getSeriesKey in interface LegendItemInfonull).public java.lang.String getLabel()
getLabel in interface LegendItemInfonull).public java.lang.String getDescription()
getDescription in interface LegendItemInfonull).public java.awt.Shape getShape()
getShape in interface LegendItemInfonull).public java.awt.Color getColor()
getColor in interface LegendItemInfonull).public java.util.Map<java.lang.Comparable<?>,java.lang.Object> getProperties()
getProperties in interface LegendItemInfo