edu.wisc.ssec.mcidasv.ui
Class DraggableTabbedPane.TabButton

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.ui.DraggableTabbedPane.TabButton
All Implemented Interfaces:
Icon
Enclosing class:
DraggableTabbedPane

public static class DraggableTabbedPane.TabButton
extends Object
implements Icon


Nested Class Summary
static class DraggableTabbedPane.TabButton.ButtonState
           
 
Field Summary
private  DraggableTabbedPane.TabButton.ButtonState currentState
           
private  int iconHeight
           
private static Map<DraggableTabbedPane.TabButton.ButtonState,String> iconPaths
           
private  int iconWidth
           
private  int posX
           
private  int posY
           
 
Constructor Summary
DraggableTabbedPane.TabButton()
           
 
Method Summary
 Rectangle getBounds()
           
 Icon getIcon()
           
 int getIconHeight()
           
 int getIconWidth()
           
 DraggableTabbedPane.TabButton.ButtonState getState()
           
static Icon getStateIcon(DraggableTabbedPane.TabButton.ButtonState state)
           
static String getStateIconPath(DraggableTabbedPane.TabButton.ButtonState state)
           
 void paintIcon(Component c, Graphics g, int x, int y)
           
 void setState(DraggableTabbedPane.TabButton.ButtonState state)
           
static void setStateIcon(DraggableTabbedPane.TabButton.ButtonState state, String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iconPaths

private static final Map<DraggableTabbedPane.TabButton.ButtonState,String> iconPaths

currentState

private DraggableTabbedPane.TabButton.ButtonState currentState

iconWidth

private int iconWidth

iconHeight

private int iconHeight

posX

private int posX

posY

private int posY
Constructor Detail

DraggableTabbedPane.TabButton

public DraggableTabbedPane.TabButton()
Method Detail

getStateIcon

public static Icon getStateIcon(DraggableTabbedPane.TabButton.ButtonState state)

setStateIcon

public static void setStateIcon(DraggableTabbedPane.TabButton.ButtonState state,
                                String path)

getStateIconPath

public static String getStateIconPath(DraggableTabbedPane.TabButton.ButtonState state)

setState

public void setState(DraggableTabbedPane.TabButton.ButtonState state)

getState

public DraggableTabbedPane.TabButton.ButtonState getState()

getIcon

public Icon getIcon()

paintIcon

public void paintIcon(Component c,
                      Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface Icon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface Icon

getBounds

public Rectangle getBounds()