| Constructor and Description |
|---|
LegendIcon(LegendEntry[] entries,
Captioner captioner,
boolean border,
Color bgColor)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Color |
getBackground()
Returns the background colour of this legend.
|
Captioner |
getCaptioner()
Returns this legend's captioner.
|
int |
getIconHeight() |
int |
getIconWidth() |
boolean |
hasBorder()
Indicates whether this legend has a border.
|
int |
hashCode() |
void |
paintIcon(Component c,
Graphics g,
int x0,
int y0) |
public LegendIcon(LegendEntry[] entries, Captioner captioner, boolean border, Color bgColor)
entries - items to display in legendcaptioner - text rendererborder - true to draw a line border around the legendbgColor - opaque background colour, null for transparentpublic Captioner getCaptioner()
public boolean hasBorder()
public Color getBackground()
public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface IconCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.