Class TransitionAwareIcon
java.lang.Object
org.pushingpixels.substance.internal.utils.icon.TransitionAwareIcon
- All Implemented Interfaces:
Icon
Icon with transition-aware capabilities. Has a delegate that does the actual
painting based on the transition color schemes. This class is used heavily on
Substance-provided icons, such as title pane button icons, arrow icons on
scroll bars and combos etc.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceThe delegate needs to implement the method in this interface based on the provided color scheme.static interface -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TransitionAwareIcon.DelegateDelegate to compute the actual icons.protected String -
Constructor Summary
ConstructorsConstructorDescriptionTransitionAwareIcon(AbstractButton button, TransitionAwareIcon.Delegate delegate, String uniqueIconTypeId) TransitionAwareIcon(JComponent comp, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, TransitionAwareIcon.Delegate delegate, TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate, String uniqueIconTypeId) Creates a new transition-aware icon. -
Method Summary
Modifier and TypeMethodDescriptionintintvoid
-
Field Details
-
delegate
Delegate to compute the actual icons. -
colorSchemeAssociationKindDelegate
-
uniqueIconTypeId
-
-
Constructor Details
-
TransitionAwareIcon
public TransitionAwareIcon(AbstractButton button, TransitionAwareIcon.Delegate delegate, String uniqueIconTypeId) -
TransitionAwareIcon
public TransitionAwareIcon(JComponent comp, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, TransitionAwareIcon.Delegate delegate, TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate, String uniqueIconTypeId) Creates a new transition-aware icon.- Parameters:
comp- Associated component.delegate- Delegate to compute the actual icons.
-
-
Method Details
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-
paintIcon
-