org.jvnet.substance.utils.icon
public class ArrowButtonTransitionAwareIcon extends java.lang.Object implements javax.swing.Icon
Modifier and Type | Field and Description |
---|---|
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)
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
public ArrowButtonTransitionAwareIcon(javax.swing.AbstractButton button, int orientation)
button
- 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