public static class DraggableTabbedPane.TabButton extends Object implements Icon
Modifier and Type | Class and Description |
---|---|
static class |
DraggableTabbedPane.TabButton.ButtonState |
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
DraggableTabbedPane.TabButton() |
Modifier and Type | Method and Description |
---|---|
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) |
private static final Map<DraggableTabbedPane.TabButton.ButtonState,String> iconPaths
private DraggableTabbedPane.TabButton.ButtonState currentState
private int iconWidth
private int iconHeight
private int posX
private int posY
public DraggableTabbedPane.TabButton()
public static Icon getStateIcon(DraggableTabbedPane.TabButton.ButtonState state)
public static void setStateIcon(DraggableTabbedPane.TabButton.ButtonState state, String path)
public static String getStateIconPath(DraggableTabbedPane.TabButton.ButtonState state)
public void setState(DraggableTabbedPane.TabButton.ButtonState state)
public DraggableTabbedPane.TabButton.ButtonState getState()
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon