edu.wisc.ssec.mcidasv.ui
Class McvToolbarEditor.SpaceIcon

java.lang.Object
  extended by 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.
 
Constructor Summary
McvToolbarEditor.SpaceIcon(int dimension)
          Creates a blank, square icon whose dimensions are dimension
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dimension

private final int dimension
dimension * dimension is the size of the icon.

Constructor Detail

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.
Method Detail

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