Class LayeredIcon
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.icon.LayeredIcon
-
- All Implemented Interfaces:
Icon
,ResizableIcon
public class LayeredIcon extends Object implements 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 Modifier and Type Field Description protected ResizableIcon[]
layers
The layer icons.
-
Constructor Summary
Constructors Constructor Description LayeredIcon(ResizableIcon... layers)
Creates a new layered icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIconHeight()
int
getIconWidth()
void
paintIcon(Component c, Graphics g, int x, int y)
void
setDimension(Dimension newDimension)
Changes the dimension ofthis
icon.
-
-
-
Field Detail
-
layers
protected ResizableIcon[] layers
The layer icons.
-
-
Constructor Detail
-
LayeredIcon
public LayeredIcon(ResizableIcon... layers)
Creates a new layered icon.- Parameters:
layers
- Layer icons.
-
-
Method Detail
-
setDimension
public void setDimension(Dimension newDimension)
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
-
-