Class LayeredIcon
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.icon.LayeredIcon
-
- All Implemented Interfaces:
javax.swing.Icon,org.pushingpixels.neon.api.icon.ResizableIcon
public class LayeredIcon extends java.lang.Object implements org.pushingpixels.neon.api.icon.ResizableIconDecorator 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 org.pushingpixels.neon.api.icon.ResizableIcon[]layersThe layer icons.
-
Constructor Summary
Constructors Constructor Description LayeredIcon(org.pushingpixels.neon.api.icon.ResizableIcon... layers)Creates a new layered icon.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIconHeight()intgetIconWidth()voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)voidsetDimension(java.awt.Dimension newDimension)
-
-
-
Method Detail
-
setDimension
public void setDimension(java.awt.Dimension newDimension)
- Specified by:
setDimensionin interfaceorg.pushingpixels.neon.api.icon.ResizableIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeightin interfacejavax.swing.Icon
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidthin interfacejavax.swing.Icon
-
paintIcon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)- Specified by:
paintIconin interfacejavax.swing.Icon
-
-