Package uk.ac.starlink.ttools.plot2
Class LegendEntry
java.lang.Object
uk.ac.starlink.ttools.plot2.LegendEntry
Aggregates a plot style or group of styles and a label to be
paired together as one entry in a plot legend.
- Since:
- 13 Feb 2013
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionLegendEntry
(String label, Style style) Constructs a legend entry for a single style.LegendEntry
(String label, Style[] styles) Constructs a legend entry for a group of styles. -
Method Summary
-
Constructor Details
-
LegendEntry
Constructs a legend entry for a group of styles. This would typically be used where the same data set is represented by several different layers in a plot.- Parameters:
label
- dataset labelstyles
- dataset styles
-
LegendEntry
Constructs a legend entry for a single style.- Parameters:
style
- dataset stylelabel
- dataset label
-
-
Method Details