Constructor and Description |
---|
SolidColorIcon()
Creates a 16x16 black icon
|
SolidColorIcon(int width,
int height)
Creates a black icon
|
SolidColorIcon(int imageWidth,
int imageHeight,
Color fillColor)
Creates an icon with black borders
|
SolidColorIcon(int width,
int height,
Color fillColor,
Color borderColor) |
Modifier and Type | Method and Description |
---|---|
Color |
getBorderColor() |
Color |
getFillColor() |
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setBorderColor(Color c) |
void |
setFillColor(Color c) |
public SolidColorIcon()
public SolidColorIcon(int width, int height)
width
- icon widthheight
- icon heightpublic SolidColorIcon(int imageWidth, int imageHeight, Color fillColor)
imageWidth
- icon widthimageHeight
- icon heightfillColor
- fill colorpublic Color getFillColor()
getFillColor
in interface ColorIcon
public void setFillColor(Color c)
setFillColor
in interface ColorIcon
public Color getBorderColor()
getBorderColor
in interface ColorIcon
public void setBorderColor(Color c)
setBorderColor
in interface ColorIcon
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.