Class EmptyResizableIcon
- java.lang.Object
-
- org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon
-
- All Implemented Interfaces:
javax.swing.Icon,org.pushingpixels.neon.api.icon.ResizableIcon
public class EmptyResizableIcon extends java.lang.Object implements org.pushingpixels.neon.api.icon.ResizableIconImplementation ofResizableIconthat paints nothing.
-
-
Constructor Summary
Constructors Constructor Description EmptyResizableIcon(int initialDim)Creates a new empty resizable icon of the specified size.EmptyResizableIcon(java.awt.Dimension initialDim)Creates a new empty resizable icon of the specified size.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.pushingpixels.neon.api.icon.ResizableIcon.Factoryfactory()intgetIconHeight()intgetIconWidth()voidpaintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)voidsetDimension(java.awt.Dimension newDimension)
-
-
-
Constructor Detail
-
EmptyResizableIcon
public EmptyResizableIcon(java.awt.Dimension initialDim)
Creates a new empty resizable icon of the specified size.- Parameters:
initialDim- Initial dimension of the icon.
-
EmptyResizableIcon
public EmptyResizableIcon(int initialDim)
Creates a new empty resizable icon of the specified size.- Parameters:
initialDim- Initial dimension of the icon.
-
-
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
-
factory
public static org.pushingpixels.neon.api.icon.ResizableIcon.Factory factory()
-
-