Package games.stendhal.client.gui.styled
Class StyledCheckBoxUI
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
games.stendhal.client.gui.styled.StyledCheckBoxUI
-
Field Summary
Fields inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
icon
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
createUI(JComponent checkBox)
Create StyledCheckBoxUI for a check box.void
installUI(JComponent component)
protected void
paintText(Graphics graphics, AbstractButton button, Rectangle textRect, String text)
Methods inherited from class javax.swing.plaf.basic.BasicCheckBoxUI
getPropertyPrefix
Methods inherited from class javax.swing.plaf.basic.BasicRadioButtonUI
getDefaultIcon, getPreferredSize, installDefaults, paint, 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, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, setTextShiftOffset, uninstallKeyboardActions, uninstallListeners, uninstallUI
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Constructor Details
-
StyledCheckBoxUI
Create a new StyledCheckBoxUI.- Parameters:
style
- pixmap style
-
-
Method Details
-
createUI
Create StyledCheckBoxUI for a check box.- Parameters:
checkBox
-JCheckBox
to create an UI for- Returns:
- a ComponentUI instance
-
paintText
protected void paintText(Graphics graphics, AbstractButton button, Rectangle textRect, String text)- Overrides:
paintText
in classBasicButtonUI
-
installUI
- Overrides:
installUI
in classBasicButtonUI
-