Package noaa.coastwatch.gui
Class CloseIcon
java.lang.Object
noaa.coastwatch.gui.CloseIcon
- All Implemented Interfaces:
Icon
The
CloseIcon
renders an icon for a close button in one of
three modes: NORMAL, HOVER, and PRESSED.- Since:
- 3.4.0
- Author:
- Peter Hollemans
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The mode constants for the icon rendering. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
void
-
Constructor Details
-
CloseIcon
Creates a new icon.- Parameters:
mode
- the mode for icon rendering.size
- the icon size in pixels.
-
-
Method Details
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
paintIcon
-