Class MaterialCheckBoxUI


  • public class MaterialCheckBoxUI
    extends javax.swing.plaf.basic.BasicCheckBoxUI
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.JCheckBox checkBox  
      protected java.awt.Color disabledForeground  
      protected java.awt.Color hoverColor  
      protected boolean isHover  
      protected MaterialMouseHover mouseHover  
      protected boolean mouseHoverEnable  
      • Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI

        icon
      • Fields inherited from class javax.swing.plaf.basic.BasicButtonUI

        defaultTextIconGap, defaultTextShiftOffset
    • 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 void installDefaults​(javax.swing.AbstractButton b)  
      protected void installListeners​(javax.swing.AbstractButton button)  
      void installUI​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      protected void paintText​(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)  
      protected void uninstallListeners​(javax.swing.AbstractButton button)  
      void uninstallUI​(javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicCheckBoxUI

        getPropertyPrefix
      • Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI

        getDefaultIcon, getPreferredSize, paintFocus, uninstallDefaults
      • Methods inherited from class javax.swing.plaf.basic.BasicToggleButtonUI

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

        clearTextShiftOffset, createButtonListener, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, installKeyboardActions, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions
      • 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

      • checkBox

        protected javax.swing.JCheckBox checkBox
      • disabledForeground

        protected java.awt.Color disabledForeground
      • isHover

        protected boolean isHover
      • mouseHoverEnable

        protected boolean mouseHoverEnable
      • hoverColor

        protected java.awt.Color hoverColor
    • Constructor Detail

      • MaterialCheckBoxUI

        public MaterialCheckBoxUI()
    • 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
      • installDefaults

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

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

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

        protected void installListeners​(javax.swing.AbstractButton button)
        Overrides:
        installListeners in class javax.swing.plaf.basic.BasicButtonUI
      • uninstallListeners

        protected void uninstallListeners​(javax.swing.AbstractButton button)
        Overrides:
        uninstallListeners in class javax.swing.plaf.basic.BasicButtonUI