Package net.sf.freecol.client.gui.plaf
Class FreeColButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.metal.MetalButtonUI
-
- net.sf.freecol.client.gui.plaf.FreeColButtonUI
-
public class FreeColButtonUI extends javax.swing.plaf.metal.MetalButtonUISets the default opaque attribute to false and uses a 10% black shading on thepaintButtonPressed(java.awt.Graphics, javax.swing.AbstractButton).
-
-
Field Summary
Fields Modifier and Type Field Description private booleanpaintBackgroundprivate java.beans.PropertyChangeListenerpcl
-
Constructor Summary
Constructors Constructor Description FreeColButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voidpaintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton c)voiduninstallUI(javax.swing.JComponent c)protected voidupdateStyle(javax.swing.JComponent c, FreeColButton.ButtonStyle buttonStyle)-
Methods inherited from class javax.swing.plaf.metal.MetalButtonUI
createButtonListener, getDisabledTextColor, getFocusColor, getSelectColor, installDefaults, paintFocus, paintText, uninstallDefaults, update
-
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners
-
-
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicButtonUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicButtonUI
-
updateStyle
protected void updateStyle(javax.swing.JComponent c, FreeColButton.ButtonStyle buttonStyle)
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.swing.plaf.basic.BasicButtonUI
-
paintButtonPressed
protected void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton c)- Overrides:
paintButtonPressedin classjavax.swing.plaf.metal.MetalButtonUI
-
-