org.compiere.plaf
Class CompiereToggleButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
javax.swing.plaf.basic.BasicToggleButtonUI
javax.swing.plaf.metal.MetalToggleButtonUI
org.compiere.plaf.CompiereToggleButtonUI
public class CompiereToggleButtonUI
- extends MetalToggleButtonUI
Compiere Toggle Button UI
- Version:
- $Id: CompiereToggleButtonUI.java,v 1.2 2006/07/30 00:52:24 jjanke Exp $
- Author:
- Jorg Janke
| Methods inherited from class javax.swing.plaf.basic.BasicButtonUI |
clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, installKeyboardActions, installListeners, installUI, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompiereToggleButtonUI
public CompiereToggleButtonUI()
createUI
public static ComponentUI createUI(JComponent c)
- Static Create UI
- Parameters:
c - Component
- Returns:
- Compiere ToggleButton UI
installDefaults
public void installDefaults(AbstractButton b)
- Install Defaults
- Overrides:
installDefaults in class MetalToggleButtonUI
- Parameters:
b -
update
public void update(Graphics g,
JComponent c)
- Update -
This method is invoked by
JComponent when the specified
component is being painted.
By default this method will fill the specified component with
its background color (if its opaque property is
true) and then immediately call paint.
- Overrides:
update in class MetalToggleButtonUI
- Parameters:
g - the Graphics context in which to paintc - the component being painted- See Also:
paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)
paint
public void paint(Graphics g,
JComponent c)
- Paint 3D Box
- Overrides:
paint in class BasicToggleButtonUI
- Parameters:
g - Graphicsc - Component
paintButtonPressed
protected void paintButtonPressed(Graphics g,
AbstractButton b)
- Don't get selected Color - use default (otherwise the pressed button is gray)
- Overrides:
paintButtonPressed in class MetalToggleButtonUI
- Parameters:
g - b -
Compiere® is a registered trademark of ComPiere, Inc. ©2004-2008 HumanFlash.com All rights reserved.