private static class McvToolbarEditor.SpaceIcon extends java.lang.Object implements javax.swing.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(java.awt.Component c,
java.awt.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.java.lang.IllegalArgumentException
- if dimension is less than or equal
zero.public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon