|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jvnet.substance.utils.icon.ArrowButtonTransitionAwareIcon
public class ArrowButtonTransitionAwareIcon
Transition aware implementation of arrow button icons. Used for implementing icons of scroll bar buttons, combobox buttons, menus and more.
Field Summary | |
---|---|
protected TransitionAwareIcon.Delegate |
delegate
Delegate to compute the actual icons. |
protected int |
iconHeight
Icon height. |
protected int |
iconWidth
Icon width. |
Constructor Summary | |
---|---|
ArrowButtonTransitionAwareIcon(javax.swing.AbstractButton button,
int orientation)
Creates an arrow icon. |
Method Summary | |
---|---|
int |
getIconHeight()
|
int |
getIconWidth()
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int iconWidth
protected int iconHeight
protected TransitionAwareIcon.Delegate delegate
Constructor Detail |
---|
public ArrowButtonTransitionAwareIcon(javax.swing.AbstractButton button, int orientation)
button
- Arrow button.orientation
- Arrow icon orientation.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |