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 JComponent
protected TransitionAwareIcon.Delegate
Delegate to compute the actual icons.protected int
Icon height.protected int
Icon width. -
Constructor Summary
ConstructorsConstructorDescriptionArrowButtonTransitionAwareIcon
(AbstractButton button, int orientation) ArrowButtonTransitionAwareIcon
(JComponent component, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, int orientation) Creates an arrow icon. -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
-
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:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-