Modifier and Type | Class and Description |
---|---|
static class |
RolloverIcon.DefaultCollapsedIcon
The default collapsed tree icon.
|
static class |
RolloverIcon.DefaultExpandedIcon
The default expanded tree icon.
|
static interface |
RolloverIcon.IconRolloverSupport
An interface that should be implemented on a component if you want to use an icon that supports rollover and fade
(fade in or fade out) effect.
|
Modifier and Type | Field and Description |
---|---|
static Color |
COLOR_COLLAPSED |
static Color |
COLOR_COLLAPSED_FILL |
static Color |
COLOR_COLLAPSED_FILL_ROLLOVER
All colors used by the default icons.
|
static Color |
COLOR_COLLAPSED_ROLLOVER |
static Color |
COLOR_EXPANDED |
static Color |
COLOR_EXPANDED_FILL |
static Color |
COLOR_EXPANDED_FILL_ROLLOVER |
static Color |
COLOR_EXPANDED_ROLLOVER |
static int |
ICON_COLLAPSED |
static int |
ICON_EXPANDED |
Constructor and Description |
---|
RolloverIcon(RolloverIcon.IconRolloverSupport rolloverSupport,
Icon normalIcon)
Creates an RolloverIcon.
|
RolloverIcon(RolloverIcon.IconRolloverSupport rolloverSupport,
Icon normalIcon,
Icon rolloverIcon)
Creates an RolloverIcon.
|
RolloverIcon(RolloverIcon.IconRolloverSupport rolloverSupport,
int iconType)
Creates an RolloverIcon.
|
public static Color COLOR_COLLAPSED_FILL_ROLLOVER
public static Color COLOR_COLLAPSED_FILL
public static Color COLOR_COLLAPSED_ROLLOVER
public static Color COLOR_COLLAPSED
public static Color COLOR_EXPANDED_FILL_ROLLOVER
public static Color COLOR_EXPANDED_FILL
public static Color COLOR_EXPANDED_ROLLOVER
public static Color COLOR_EXPANDED
public static final int ICON_EXPANDED
public static final int ICON_COLLAPSED
public RolloverIcon(RolloverIcon.IconRolloverSupport rolloverSupport, int iconType)
rolloverSupport
- the IconRolloverSupport interface that should be implemented on a component.iconType
- the icon type. It could be either ICON_EXPANDED
or ICON_COLLAPSED
.public RolloverIcon(RolloverIcon.IconRolloverSupport rolloverSupport, Icon normalIcon)
rolloverSupport
- the IconRolloverSupport interface that should be implemented on a component.normalIcon
- the normal iconpublic RolloverIcon(RolloverIcon.IconRolloverSupport rolloverSupport, Icon normalIcon, Icon rolloverIcon)
rolloverSupport
- the IconRolloverSupport interface that should be implemented on a component.normalIcon
- the normal icon. This icon will be used to determine the icon size. The size of the
rollover icon is ignored so you should make sure the two icons have the same size.rolloverIcon
- the rollover iconpublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon