Package editor

Class WindowsButtonUI

  • Direct Known Subclasses:
    LabButtonUI

    class WindowsButtonUI
    extends javax.swing.plaf.basic.BasicButtonUI
    • Constructor Summary

      Constructors 
      Constructor Description
      WindowsButtonUI()  
    • 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)  
      protected java.awt.Color getFocusColor()  
      java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)  
      protected void installDefaults​(javax.swing.AbstractButton b)  
      protected void paintButtonPressed​(java.awt.Graphics g, javax.swing.AbstractButton b)  
      protected void paintFocus​(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)  
      protected void uninstallDefaults​(javax.swing.AbstractButton b)  
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonUI

        clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPropertyPrefix, getTextShiftOffset, installKeyboardActions, installListeners, installUI, paint, 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
      • dashedRectGapY

        protected int dashedRectGapY
      • dashedRectGapWidth

        protected int dashedRectGapWidth
      • dashedRectGapHeight

        protected int dashedRectGapHeight
      • focusColor

        protected java.awt.Color focusColor
      • defaults_initialized

        private boolean defaults_initialized
      • WINDOWS_BUTTON_UI_KEY

        private static final java.lang.Object WINDOWS_BUTTON_UI_KEY
    • Constructor Detail

      • WindowsButtonUI

        WindowsButtonUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • installDefaults

        protected void installDefaults​(javax.swing.AbstractButton b)
        Overrides:
        installDefaults in class javax.swing.plaf.basic.BasicButtonUI
      • uninstallDefaults

        protected void uninstallDefaults​(javax.swing.AbstractButton b)
        Overrides:
        uninstallDefaults in class javax.swing.plaf.basic.BasicButtonUI
      • getFocusColor

        protected java.awt.Color getFocusColor()
      • 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 javax.swing.plaf.basic.BasicButtonUI
      • paintButtonPressed

        protected void paintButtonPressed​(java.awt.Graphics g,
                                          javax.swing.AbstractButton b)
        Overrides:
        paintButtonPressed in class javax.swing.plaf.basic.BasicButtonUI
      • getPreferredSize

        public java.awt.Dimension getPreferredSize​(javax.swing.JComponent c)
        Overrides:
        getPreferredSize in class javax.swing.plaf.basic.BasicButtonUI