com.birosoft.liquid
Class LiquidWindowButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
com.birosoft.liquid.LiquidButtonUI
com.birosoft.liquid.LiquidWindowButtonUI
public class LiquidWindowButtonUI
- extends LiquidButtonUI
A button placed in the title frame of a internal frame to enable
closing, iconifying and maximizing of the internal frame.
Field Summary |
static int |
CLOSE
An icon to indicate that this button closes the windows |
static int |
MAXIMIZE
An icon to indicate that this button maximizes the windows |
static int |
MINIMIZE
An icon to indicate that this button minmizes / iconfies the windows |
static int |
RESTORE
An icon to indicate that this button minmizes / iconfies the windows |
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI |
defaultTextIconGap, defaultTextShiftOffset |
Method Summary |
static LiquidWindowButtonUI |
createButtonUIForType(int type)
Creates a new Window Button UI for the specified type |
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c)
|
java.awt.Dimension |
getPreferredSize(javax.swing.JComponent c)
|
protected static Skin |
getSkin(int type)
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
|
protected void |
paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect)
|
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, getAccessibleChild, getAccessibleChildrenCount |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CLOSE
public static final int CLOSE
- An icon to indicate that this button closes the windows
- See Also:
- Constant Field Values
MAXIMIZE
public static final int MAXIMIZE
- An icon to indicate that this button maximizes the windows
- See Also:
- Constant Field Values
MINIMIZE
public static final int MINIMIZE
- An icon to indicate that this button minmizes / iconfies the windows
- See Also:
- Constant Field Values
RESTORE
public static final int RESTORE
- An icon to indicate that this button minmizes / iconfies the windows
- See Also:
- Constant Field Values
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
paintFocus
protected void paintFocus(java.awt.Graphics g,
javax.swing.AbstractButton b,
java.awt.Rectangle viewRect,
java.awt.Rectangle textRect,
java.awt.Rectangle iconRect)
- Overrides:
paintFocus
in class LiquidButtonUI
paint
public void paint(java.awt.Graphics g,
javax.swing.JComponent c)
- Overrides:
paint
in class LiquidButtonUI
getSkin
protected static Skin getSkin(int type)
createButtonUIForType
public static LiquidWindowButtonUI createButtonUIForType(int type)
- Creates a new Window Button UI for the specified type
- Parameters:
type
-
- Returns:
- LiquidWindowButtonUI
getPreferredSize
public java.awt.Dimension getPreferredSize(javax.swing.JComponent c)
- Overrides:
getPreferredSize
in class javax.swing.plaf.basic.BasicButtonUI
- See Also:
BasicButtonUI.getPreferredSize(javax.swing.JComponent)