Package org.flexdock.plaf.theme
Class ButtonUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
javax.swing.plaf.basic.BasicButtonUI
org.flexdock.plaf.theme.ButtonUI
- All Implemented Interfaces:
IFlexViewComponentUI
,XMLConstants
- Author:
- Christopher Butler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
protected Border
protected Border
protected Border
protected Border
protected Border
protected PropertySet
Fields inherited from class javax.swing.plaf.basic.BasicButtonUI
defaultTextIconGap, defaultTextShiftOffset
Fields inherited from interface org.flexdock.plaf.IFlexViewComponentUI
ICON_RESOURCE
Fields inherited from interface org.flexdock.plaf.XMLConstants
ATTRIBUTE_KEY, CLASSNAME_KEY, CONSTRUCTOR_KEY, DESC_KEY, EXTENDS_KEY, HANDLER_KEY, INHERITS_KEY, NAME_KEY, OVERRIDDEN_KEY, PROP_HANDLER_KEY, PROPERTY_KEY, REFERENCE_KEY, VALUE_KEY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicButtonListener
protected Icon
getActionIcon
(AbstractButton button, boolean pressed, boolean active, boolean hover) protected Border
getBorder
(AbstractButton button) protected Border
getDefaultBorder
(AbstractButton button, boolean active) protected Icon
getDefaultIcon
(AbstractButton button, boolean active) protected Icon
getDisabledIcon
(AbstractButton button, boolean active) protected Border
getHoverBorder
(AbstractButton button, boolean active) protected Icon
getHoverIcon
(AbstractButton button, boolean active) protected Icon
getIcon
(AbstractButton button) protected Border
getPressedBorder
(AbstractButton button) protected Icon
getPressedIcon
(AbstractButton button) void
protected void
void
protected boolean
isParentActive
(AbstractButton button) protected boolean
isPressed
(AbstractButton button) void
paint
(Graphics g, JComponent c) protected void
paintBackground
(Graphics g, AbstractButton b, boolean active, boolean hover, boolean pressed) protected void
protected void
paintIcon
(Graphics g, AbstractButton b) void
setBorderActive
(Border borderActive) void
setBorderActiveHover
(Border borderActiveHover) void
setBorderDefault
(Border borderDefault) void
setBorderDefaultHover
(Border borderDefaultHover) void
setBorderPressed
(Border borderPressed) void
setCreationParameters
(PropertySet creationParameters) void
Methods inherited from class javax.swing.plaf.basic.BasicButtonUI
clearTextShiftOffset, createUI, getBaseline, getBaselineResizeBehavior, getDefaultTextIconGap, getMaximumSize, getMinimumSize, getPreferredSize, getPropertyPrefix, getTextShiftOffset, installDefaults, installListeners, paintButtonPressed, paintFocus, paintIcon, paintText, paintText, setTextShiftOffset, uninstallDefaults, uninstallKeyboardActions, uninstallListeners
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
-
Field Details
-
BORDER
- See Also:
-
BORDER_HOVER
- See Also:
-
BORDER_ACTIVE
- See Also:
-
BORDER_ACTIVE_HOVER
- See Also:
-
BORDER_PRESSED
- See Also:
-
creationParameters
-
borderDefault
-
borderDefaultHover
-
borderActive
-
borderActiveHover
-
borderPressed
-
-
Constructor Details
-
ButtonUI
public ButtonUI()
-
-
Method Details
-
paint
- Overrides:
paint
in classBasicButtonUI
-
paintBackground
protected void paintBackground(Graphics g, AbstractButton b, boolean active, boolean hover, boolean pressed) -
paintBorder
-
getBorder
-
getPressedBorder
-
getHoverBorder
-
getDefaultBorder
-
paintIcon
-
getIcon
-
getDisabledIcon
-
getPressedIcon
-
getHoverIcon
-
getDefaultIcon
-
getActionIcon
-
isPressed
-
isParentActive
-
installUI
- Overrides:
installUI
in classBasicButtonUI
-
uninstallUI
- Overrides:
uninstallUI
in classBasicButtonUI
-
installKeyboardActions
- Overrides:
installKeyboardActions
in classBasicButtonUI
-
createButtonListener
- Overrides:
createButtonListener
in classBasicButtonUI
-
setBorderActive
-
setBorderActiveHover
-
setBorderDefault
-
setBorderDefaultHover
-
setBorderPressed
-
getCreationParameters
- Specified by:
getCreationParameters
in interfaceIFlexViewComponentUI
-
setCreationParameters
- Specified by:
setCreationParameters
in interfaceIFlexViewComponentUI
-
initializeCreationParameters
public void initializeCreationParameters()- Specified by:
initializeCreationParameters
in interfaceIFlexViewComponentUI
-