Class ArrowButtonTransitionAwareIcon
java.lang.Object
org.pushingpixels.substance.internal.utils.icon.ArrowButtonTransitionAwareIcon
- All Implemented Interfaces:
Icon
Transition aware implementation of arrow button icons. Used for implementing
icons of scroll bar buttons, combobox buttons, menus and more.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected JComponentprotected TransitionAwareIcon.DelegateDelegate to compute the actual icons.protected intIcon height.protected intIcon width. -
Constructor Summary
ConstructorsConstructorDescriptionArrowButtonTransitionAwareIcon(AbstractButton button, int orientation) ArrowButtonTransitionAwareIcon(JComponent component, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, int orientation) Creates an arrow icon. -
Method Summary
Modifier and TypeMethodDescriptionintintvoid
-
Field Details
-
iconWidth
protected int iconWidthIcon width. -
iconHeight
protected int iconHeightIcon height. -
delegate
Delegate to compute the actual icons. -
component
-
-
Constructor Details
-
ArrowButtonTransitionAwareIcon
-
ArrowButtonTransitionAwareIcon
public ArrowButtonTransitionAwareIcon(JComponent component, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, int orientation) Creates an arrow icon.- Parameters:
component- Arrow button.orientation- Arrow icon orientation.
-
-
Method Details
-
paintIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeightin interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidthin interfaceIcon
-