|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.LegendEntry
@Equality public class LegendEntry
Aggregates a plot style or group of styles and a label to be paired together as one entry in a plot legend.
Constructor Summary | |
---|---|
LegendEntry(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 | |
---|---|
boolean |
equals(Object o)
|
Icon |
getIcon()
Returns the icon associated with this entry. |
String |
getLabel()
Returns the text label associated with this entry. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LegendEntry(String label, Style[] styles)
label
- dataset labelstyles
- dataset stylespublic LegendEntry(String label, Style style)
style
- dataset stylelabel
- dataset labelMethod Detail |
---|
public Icon getIcon()
public String getLabel()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |