Package mdlaf.components.checkbox
Class MaterialCheckBoxUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.basic.BasicToggleButtonUI
-
- javax.swing.plaf.basic.BasicRadioButtonUI
-
- javax.swing.plaf.basic.BasicCheckBoxUI
-
- mdlaf.components.checkbox.MaterialCheckBoxUI
-
public class MaterialCheckBoxUI extends javax.swing.plaf.basic.BasicCheckBoxUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMaterialCheckBoxUI.MaterialCheckBoxIconprotected classMaterialCheckBoxUI.MouseHoverEvent
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JCheckBoxcheckBoxprotected java.awt.ColordisabledForegroundprotected java.awt.ColorhoverColorprotected booleanisHoverprotected MaterialMouseHovermouseHoverprotected booleanmouseHoverEnable
-
Constructor Summary
Constructors Constructor Description MaterialCheckBoxUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)protected voidinstallDefaults(javax.swing.AbstractButton b)protected voidinstallListeners(javax.swing.AbstractButton button)voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voidpaintText(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)protected voiduninstallListeners(javax.swing.AbstractButton button)voiduninstallUI(javax.swing.JComponent c)-
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
-
-
-
-
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
-
mouseHover
protected MaterialMouseHover mouseHover
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicButtonUI
-
installDefaults
protected void installDefaults(javax.swing.AbstractButton b)
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicRadioButtonUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.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:
paintTextin classjavax.swing.plaf.basic.BasicButtonUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicButtonUI
-
installListeners
protected void installListeners(javax.swing.AbstractButton button)
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicButtonUI
-
uninstallListeners
protected void uninstallListeners(javax.swing.AbstractButton button)
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicButtonUI
-
-