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 (nullnot permitted).label- the label (nullnot permitted).color- the color (nullnot 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 (nullnot permitted).label- the label (nullnot permitted).description- the description (nullpermitted).color- the color (nullnot permitted).shape- the shape (nullpermitted).
-
-
Method Details
-
getSeriesKey
Returns the series key.- Specified by:
getSeriesKeyin interfaceLegendItemInfo- Returns:
- The series key (never
null).
-
getLabel
Returns the label for the legend item.- Specified by:
getLabelin interfaceLegendItemInfo- Returns:
- The label (never
null).
-
getDescription
Returns the description for the legend item.- Specified by:
getDescriptionin interfaceLegendItemInfo- Returns:
- The description (possibly
null).
-
getShape
Returns the shape for the legend item.- Specified by:
getShapein interfaceLegendItemInfo- Returns:
- The shape (possibly
null).
-
getColor
Returns the color for the legend item.- Specified by:
getColorin interfaceLegendItemInfo- Returns:
- The color (never
null).
-
getProperties
Returns the properties for the legend item.- Specified by:
getPropertiesin interfaceLegendItemInfo- Returns:
- The properties for the legend item.
-