|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.substance.utils.icon.TransitionAwareIcon
public class TransitionAwareIcon
Icon with transition-aware capabilities. Has a delegate that does the actual painting based on the transition color schemes. This class is used heavily on Substance-provided icons, such as title pane button icons, arrow icons on scroll bars and combos etc.
| Nested Class Summary | |
|---|---|
static interface |
TransitionAwareIcon.ColorSchemeAssociationKindDelegate
|
static interface |
TransitionAwareIcon.Delegate
The delegate needs to implement the method in this interface based on the provided color scheme. |
| Field Summary | |
|---|---|
protected TransitionAwareIcon.ColorSchemeAssociationKindDelegate |
colorSchemeAssociationKindDelegate
|
protected TransitionAwareIcon.Delegate |
delegate
Delegate to compute the actual icons. |
protected java.lang.String |
uniqueIconTypeId
|
| Constructor Summary | |
|---|---|
TransitionAwareIcon(javax.swing.AbstractButton button,
TransitionAwareIcon.Delegate delegate,
java.lang.String uniqueIconTypeId)
Creates a new transition-aware icon. |
|
TransitionAwareIcon(javax.swing.JComponent comp,
javax.swing.ButtonModel model,
TransitionAwareIcon.Delegate delegate,
java.lang.String uniqueIconTypeId)
Creates a new transition-aware icon. |
|
TransitionAwareIcon(javax.swing.JComponent comp,
javax.swing.ButtonModel model,
TransitionAwareIcon.Delegate delegate,
TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate,
java.lang.String uniqueIconTypeId)
Creates a new transition-aware 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 TransitionAwareIcon.Delegate delegate
protected TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate
protected java.lang.String uniqueIconTypeId
| Constructor Detail |
|---|
public TransitionAwareIcon(javax.swing.AbstractButton button,
TransitionAwareIcon.Delegate delegate,
java.lang.String uniqueIconTypeId)
button - Associated button.delegate - Delegate to compute the actual icons.
public TransitionAwareIcon(javax.swing.JComponent comp,
javax.swing.ButtonModel model,
TransitionAwareIcon.Delegate delegate,
java.lang.String uniqueIconTypeId)
comp - Associated component.model - Associated model.delegate - Delegate to compute the actual icons.
public TransitionAwareIcon(javax.swing.JComponent comp,
javax.swing.ButtonModel model,
TransitionAwareIcon.Delegate delegate,
TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate,
java.lang.String uniqueIconTypeId)
comp - Associated component.model - Associated model.delegate - Delegate to compute the actual icons.| Method Detail |
|---|
public int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Icon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Icon
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||