Class ColorStyleSettingGui.ColorIcon
- java.lang.Object
-
- org.openstreetmap.josm.gui.mappaint.ColorStyleSettingGui.ColorIcon
-
- All Implemented Interfaces:
Icon
- Enclosing class:
- ColorStyleSettingGui
static class ColorStyleSettingGui.ColorIcon extends Object implements Icon
-
-
Field Summary
Fields Modifier and Type Field Description private Color
color
private ImageProvider.ImageSizes
size
-
Constructor Summary
Constructors Constructor Description ColorIcon(Color color, ImageProvider.ImageSizes size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
void
paintIcon(Component c, Graphics g, int x, int y)
-
-
-
Field Detail
-
size
private final ImageProvider.ImageSizes size
-
-
Constructor Detail
-
ColorIcon
ColorIcon(Color color, ImageProvider.ImageSizes size)
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfaceIcon
-
-