Class MaterialToggleButtonUI


  • public class MaterialToggleButtonUI
    extends javax.swing.plaf.basic.BasicToggleButtonUI
    • 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 paintFocus​(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)  
      protected void paintText​(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)  
      void uninstallUI​(javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI

        getPropertyPrefix, getTextShiftOffset, paintIcon
      • Methods inherited from class javax.swing.plaf.basic.BasicButtonUI

        clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, installDefaults, installKeyboardActions, installListeners, paintButtonPressed, paintIcon, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
      • 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

      • withoutIcon

        protected java.lang.Boolean withoutIcon
      • toggleButton

        protected javax.swing.JToggleButton toggleButton
      • withoutIconSelectedBackground

        protected java.awt.Color withoutIconSelectedBackground
      • withoutIconSelectedForeground

        protected java.awt.Color withoutIconSelectedForeground
      • withoutIconBackground

        protected java.awt.Color withoutIconBackground
      • withoutIconForeground

        protected java.awt.Color withoutIconForeground
      • disabledForeground

        protected java.awt.Color disabledForeground
      • selected

        protected javax.swing.Icon selected
      • unselected

        protected javax.swing.Icon unselected
      • withoutIconSelectedBorder

        protected javax.swing.border.Border withoutIconSelectedBorder
      • withoutIconBorder

        protected javax.swing.border.Border withoutIconBorder
    • Constructor Detail

      • MaterialToggleButtonUI

        public MaterialToggleButtonUI()
    • 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 class javax.swing.plaf.basic.BasicButtonUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.basic.BasicButtonUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.basic.BasicToggleButtonUI
      • 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
      • paintText

        protected void paintText​(java.awt.Graphics g,
                                 javax.swing.JComponent c,
                                 java.awt.Rectangle textRect,
                                 java.lang.String text)
        Overrides:
        paintText in class javax.swing.plaf.basic.BasicButtonUI