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.MetalButtonUI
Sets 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 boolean
paintBackground
private java.beans.PropertyChangeListener
pcl
-
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.ComponentUI
createUI(javax.swing.JComponent c)
void
installUI(javax.swing.JComponent c)
void
paint(java.awt.Graphics g, javax.swing.JComponent c)
protected void
paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton c)
void
uninstallUI(javax.swing.JComponent c)
protected void
updateStyle(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:
installUI
in classjavax.swing.plaf.basic.BasicButtonUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUI
in 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:
paint
in classjavax.swing.plaf.basic.BasicButtonUI
-
paintButtonPressed
protected void paintButtonPressed(java.awt.Graphics g, javax.swing.AbstractButton c)
- Overrides:
paintButtonPressed
in classjavax.swing.plaf.metal.MetalButtonUI
-
-