public class ArrowButtonTransitionAwareIcon
extends java.lang.Object
implements javax.swing.Icon
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JComponent |
component |
protected TransitionAwareIcon.Delegate |
delegate
Delegate to compute the actual icons.
|
protected int |
iconHeight
Icon height.
|
protected int |
iconWidth
Icon width.
|
Constructor and Description |
---|
ArrowButtonTransitionAwareIcon(javax.swing.AbstractButton button,
int orientation) |
ArrowButtonTransitionAwareIcon(javax.swing.JComponent component,
TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate,
int orientation)
Creates an arrow icon.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
protected int iconWidth
protected int iconHeight
protected TransitionAwareIcon.Delegate delegate
protected javax.swing.JComponent component
public ArrowButtonTransitionAwareIcon(javax.swing.AbstractButton button, int orientation)
public ArrowButtonTransitionAwareIcon(javax.swing.JComponent component, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, int orientation)
component
- Arrow button.orientation
- Arrow icon orientation.public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon