Class LayeredIcon
java.lang.Object
org.pushingpixels.flamingo.api.common.icon.LayeredIcon
- All Implemented Interfaces:
Icon
,ResizableIcon
Decorator icon that layers icons one on top of the other. The original icons
are drawn and resized together as one layered stack.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
void
void
setDimension
(Dimension newDimension) Changes the dimension ofthis
icon.
-
Field Details
-
layers
The layer icons.
-
-
Constructor Details
-
LayeredIcon
Creates a new layered icon.- Parameters:
layers
- Layer icons.
-
-
Method Details
-
setDimension
Description copied from interface:ResizableIcon
Changes the dimension ofthis
icon.- Specified by:
setDimension
in interfaceResizableIcon
- Parameters:
newDimension
- New dimension forthis
icon.
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
paintIcon
-