Icon
public class TransitionAwareIcon extends Object implements Icon
Modifier and Type | Class | Description |
---|---|---|
static interface |
TransitionAwareIcon.ColorSchemeAssociationKindDelegate |
|
static interface |
TransitionAwareIcon.Delegate |
The delegate needs to implement the method in this interface based on the
provided color scheme.
|
static interface |
TransitionAwareIcon.TransitionAwareUIDelegate |
Modifier and Type | Field | Description |
---|---|---|
protected TransitionAwareIcon.ColorSchemeAssociationKindDelegate |
colorSchemeAssociationKindDelegate |
|
protected TransitionAwareIcon.Delegate |
delegate |
Delegate to compute the actual icons.
|
protected String |
uniqueIconTypeId |
Constructor | Description |
---|---|
TransitionAwareIcon(AbstractButton button,
TransitionAwareIcon.Delegate delegate,
String uniqueIconTypeId) |
|
TransitionAwareIcon(JComponent comp,
TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate,
TransitionAwareIcon.Delegate delegate,
TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate,
String uniqueIconTypeId) |
Creates a new transition-aware icon.
|
Modifier and Type | Method | Description |
---|---|---|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
protected TransitionAwareIcon.Delegate delegate
protected TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate
protected String uniqueIconTypeId
public TransitionAwareIcon(AbstractButton button, TransitionAwareIcon.Delegate delegate, String uniqueIconTypeId)
public TransitionAwareIcon(JComponent comp, TransitionAwareIcon.TransitionAwareUIDelegate transitionAwareUIDelegate, TransitionAwareIcon.Delegate delegate, TransitionAwareIcon.ColorSchemeAssociationKindDelegate colorSchemeAssociationKindDelegate, String uniqueIconTypeId)
comp
- Associated component.delegate
- Delegate to compute the actual icons.public int getIconHeight()
getIconHeight
in interface Icon
public int getIconWidth()
getIconWidth
in interface Icon