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
.
Modifier and Type | Field and Description |
---|---|
private int |
dimension
dimension * dimension is the size of the icon. |
Constructor and Description |
---|
SpaceIcon(int dimension)
Creates a blank, square icon whose dimensions are
dimension |
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
private final int dimension
dimension * dimension
is the size of the icon.public SpaceIcon(int dimension)
dimension
dimension
- Icon dimensions.IllegalArgumentException
- if dimension is less than or equal
zero.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon