Constructor and Description |
---|
MonochromeColorIcon(ImageIcon template)
Creates a white icon
|
MonochromeColorIcon(ImageIcon template,
Color color) |
Modifier and Type | Method and Description |
---|---|
Color |
getColor() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setColor(Color c) |
public MonochromeColorIcon(ImageIcon template)
template
- the template icon. Should be a greyscale image representing the alpha channel.public Color getColor()
public void setColor(Color c)
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
Copyright © 2020–2024 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.