edu.wisc.ssec.mcidasv.ui
Class McvToolbarEditor.SpaceIcon
java.lang.Object
edu.wisc.ssec.mcidasv.ui.McvToolbarEditor.SpaceIcon
- All Implemented Interfaces:
- Icon
- Enclosing class:
- McvToolbarEditor
private static class McvToolbarEditor.SpaceIcon
- extends Object
- implements Icon
SpaceIcon
is a class that represents a "space" entry
in the TwoListPanel
that holds the current toolbar actions.
Probably only of use in McvToolbarEditor.IconCellRenderer
.
Field Summary |
private int |
dimension
dimension * dimension is the size of the icon. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dimension
private final int dimension
dimension * dimension
is the size of the icon.
McvToolbarEditor.SpaceIcon
public McvToolbarEditor.SpaceIcon(int dimension)
- Creates a blank, square icon whose dimensions are
dimension
- Parameters:
dimension
- Icon dimensions.
- Throws:
IllegalArgumentException
- if dimension is less than or equal
zero.
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon