java.lang.Object
org.jfree.chart3d.legend.StandardLegendItemInfo
- All Implemented Interfaces:
LegendItemInfo
A standard implementation of the
LegendItemInfo
interface.-
Constructor Summary
ConstructorsConstructorDescriptionStandardLegendItemInfo
(Comparable<?> seriesKey, String label, Color color) Creates a new instance.StandardLegendItemInfo
(Comparable<?> seriesKey, String label, String description, Color color, Shape shape) Creates a new instance with the specified attributes. -
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Returns the color for the legend item.Returns the description for the legend item.getLabel()
Returns the label for the legend item.Map
<Comparable<?>, Object> Returns the properties for the legend item.Comparable
<?> Returns the series key.getShape()
Returns the shape for the legend item.
-
Constructor Details
-
StandardLegendItemInfo
Creates a new instance.- Parameters:
seriesKey
- the series key (null
not permitted).label
- the label (null
not permitted).color
- the color (null
not permitted).
-
StandardLegendItemInfo
public StandardLegendItemInfo(Comparable<?> seriesKey, String label, String description, Color color, Shape shape) Creates a new instance with the specified attributes.- Parameters:
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).
-
-
Method Details
-
getSeriesKey
Returns the series key.- Specified by:
getSeriesKey
in interfaceLegendItemInfo
- Returns:
- The series key (never
null
).
-
getLabel
Returns the label for the legend item.- Specified by:
getLabel
in interfaceLegendItemInfo
- Returns:
- The label (never
null
).
-
getDescription
Returns the description for the legend item.- Specified by:
getDescription
in interfaceLegendItemInfo
- Returns:
- The description (possibly
null
).
-
getShape
Returns the shape for the legend item.- Specified by:
getShape
in interfaceLegendItemInfo
- Returns:
- The shape (possibly
null
).
-
getColor
Returns the color for the legend item.- Specified by:
getColor
in interfaceLegendItemInfo
- Returns:
- The color (never
null
).
-
getProperties
Returns the properties for the legend item.- Specified by:
getProperties
in interfaceLegendItemInfo
- Returns:
- The properties for the legend item.
-