Package mdlaf.components.togglebutton
Class MaterialToggleButtonUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.ButtonUI
-
- javax.swing.plaf.basic.BasicButtonUI
-
- javax.swing.plaf.basic.BasicToggleButtonUI
-
- mdlaf.components.togglebutton.MaterialToggleButtonUI
-
public class MaterialToggleButtonUI extends javax.swing.plaf.basic.BasicToggleButtonUI
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classMaterialToggleButtonUI.MaterialToggleButtonIcon
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.ColordisabledForegroundprotected javax.swing.Iconselectedprotected javax.swing.JToggleButtontoggleButtonprotected javax.swing.Iconunselectedprotected java.lang.BooleanwithoutIconprotected java.awt.ColorwithoutIconBackgroundprotected javax.swing.border.BorderwithoutIconBorderprotected java.awt.ColorwithoutIconForegroundprotected java.awt.ColorwithoutIconSelectedBackgroundprotected javax.swing.border.BorderwithoutIconSelectedBorderprotected java.awt.ColorwithoutIconSelectedForeground
-
Constructor Summary
Constructors Constructor Description MaterialToggleButtonUI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent c)voidinstallUI(javax.swing.JComponent c)voidpaint(java.awt.Graphics g, javax.swing.JComponent c)protected voidpaintFocus(java.awt.Graphics g, javax.swing.AbstractButton b, java.awt.Rectangle viewRect, java.awt.Rectangle textRect, java.awt.Rectangle iconRect)protected voidpaintText(java.awt.Graphics g, javax.swing.JComponent c, java.awt.Rectangle textRect, java.lang.String text)voiduninstallUI(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
-
-
-
-
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
-
-
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
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicButtonUI
-
paint
public void paint(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
paintin classjavax.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:
paintFocusin classjavax.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:
paintTextin classjavax.swing.plaf.basic.BasicButtonUI
-
-