Class SkinButtonUI

  • Direct Known Subclasses:
    SkinToggleButtonUI

    public class SkinButtonUI
    extends javax.swing.plaf.basic.BasicButtonUI
    Version:
    $Revision: 1.3 $, $Date: 2006/07/22 09:52:08 $
    Author:
    $Author: l2fprod $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int dashedRectGapHeight
      Description of the Field
      protected int dashedRectGapWidth
      Description of the Field
      protected int dashedRectGapX
      Description of the Field
      protected int dashedRectGapY
      Description of the Field
      protected java.awt.Color focusColor
      Description of the Field
      protected Skin skin
      Description of the Field
      • Fields inherited from class javax.swing.plaf.basic.BasicButtonUI

        defaultTextIconGap, defaultTextShiftOffset
    • Constructor Summary

      Constructors 
      Constructor Description
      SkinButtonUI()  
    • 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)
      Description of the Method
      protected java.awt.Color getFocusColor()
      Gets the FocusColor attribute of the SkinButtonUI object
      protected void installDefaults​(javax.swing.AbstractButton b)
      Description of the Method
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)
      Description of the Method
      protected void paintButtonPressed​(java.awt.Graphics g, javax.swing.AbstractButton b)
      Description of the Method
      protected void paintFocus​(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)
      Description of the Method
      protected void uninstallDefaults​(javax.swing.AbstractButton b)
      Description of the Method
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonUI

        clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paintIcon, paintText, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, update
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • dashedRectGapX

        protected int dashedRectGapX
        Description of the Field
      • dashedRectGapY

        protected int dashedRectGapY
        Description of the Field
      • dashedRectGapWidth

        protected int dashedRectGapWidth
        Description of the Field
      • dashedRectGapHeight

        protected int dashedRectGapHeight
        Description of the Field
      • focusColor

        protected java.awt.Color focusColor
        Description of the Field
      • skin

        protected Skin skin
        Description of the Field
    • Constructor Detail

      • SkinButtonUI

        public SkinButtonUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
        Description of the Method
        Parameters:
        c - Description of Parameter
        Returns:
        Description of the Returned Value
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Description of the Method
        Overrides:
        paint in class javax.swing.plaf.basic.BasicButtonUI
        Parameters:
        g - Description of Parameter
        c - Description of Parameter
      • getFocusColor

        protected java.awt.Color getFocusColor()
        Gets the FocusColor attribute of the SkinButtonUI object
        Returns:
        The FocusColor value
      • installDefaults

        protected void installDefaults​(javax.swing.AbstractButton b)
        Description of the Method
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicButtonUI
        Parameters:
        b - Description of Parameter
      • uninstallDefaults

        protected void uninstallDefaults​(javax.swing.AbstractButton b)
        Description of the Method
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicButtonUI
        Parameters:
        b - Description of Parameter
      • paintFocus

        protected void paintFocus​(java.awt.Graphics g,
                                  javax.swing.AbstractButton b,
                                  java.awt.Rectangle viewRect,
                                  java.awt.Rectangle textRect,
                                  java.awt.Rectangle iconRect)
        Description of the Method
        Overrides:
        paintFocus in class javax.swing.plaf.basic.BasicButtonUI
        Parameters:
        g - Description of Parameter
        b - Description of Parameter
        viewRect - Description of Parameter
        textRect - Description of Parameter
        iconRect - Description of Parameter
      • paintButtonPressed

        protected void paintButtonPressed​(java.awt.Graphics g,
                                          javax.swing.AbstractButton b)
        Description of the Method
        Overrides:
        paintButtonPressed in class javax.swing.plaf.basic.BasicButtonUI
        Parameters:
        g - Description of Parameter
        b - Description of Parameter