|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.LabelStyle
@Equality public class LabelStyle
Style for LabelPlotter.
Constructor Summary | |
---|---|
LabelStyle(Captioner captioner,
Anchor anchor,
Color color,
int spacing,
byte crowdLimit)
Constructor. |
Method Summary | |
---|---|
void |
drawLabel(Graphics g,
String label)
Draws the label at the origin without colouring it. |
boolean |
equals(Object o)
|
Anchor |
getAnchor()
Returns the positioning anchor used by this style. |
Captioner |
getCaptioner()
Returns the captioner used by this style. |
Color |
getColor()
Returns the colour used by this style. |
byte |
getCrowdLimit()
Returns the number of labels allowed within spacing pixels. |
Icon |
getLegendIcon()
Returns an icon suitable for displaying in a legend for this style. |
int |
getSpacing()
Returns the minimum pixel spacing permitted between labels. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LabelStyle(Captioner captioner, Anchor anchor, Color color, int spacing, byte crowdLimit)
captioner
- renders text to graphicsanchor
- positions text relative to plot pointcolor
- text colourspacing
- minimum pixel distance between labelscrowdLimit
- number of labels allowed within spacingMethod Detail |
---|
public Icon getLegendIcon()
Style
getLegendIcon
in interface Style
public Captioner getCaptioner()
public Anchor getAnchor()
public Color getColor()
public int getSpacing()
public byte getCrowdLimit()
public void drawLabel(Graphics g, String label)
g
- graphics contextlabel
- text stringpublic 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 |