Constructor | Description |
---|---|
LabelStyle(Captioner captioner,
Anchor anchor,
java.awt.Color color,
int spacing,
byte crowdLimit) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
drawLabel(java.awt.Graphics g,
java.lang.String label) |
Draws the label at the origin without colouring it.
|
boolean |
equals(java.lang.Object o) |
|
Anchor |
getAnchor() |
Returns the positioning anchor used by this style.
|
Captioner |
getCaptioner() |
Returns the captioner used by this style.
|
java.awt.Color |
getColor() |
Returns the colour used by this style.
|
byte |
getCrowdLimit() |
Returns the number of labels allowed within spacing pixels.
|
javax.swing.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() |
public LabelStyle(Captioner captioner, Anchor anchor, java.awt.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 spacingpublic javax.swing.Icon getLegendIcon()
Style
getLegendIcon
in interface Style
public Captioner getCaptioner()
public Anchor getAnchor()
public java.awt.Color getColor()
public int getSpacing()
public byte getCrowdLimit()
public void drawLabel(java.awt.Graphics g, java.lang.String label)
g
- graphics contextlabel
- text stringpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.