javax.swing.Icon, org.pushingpixels.neon.api.icon.ResizableIconpublic class EmptyResizableIcon
extends java.lang.Object
implements org.pushingpixels.neon.api.icon.ResizableIcon
ResizableIcon that paints nothing.| Modifier and Type | Field | Description |
|---|---|---|
protected int |
height |
The current icon height.
|
protected int |
width |
The current icon width.
|
| 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
static org.pushingpixels.neon.api.icon.ResizableIcon.Factory |
factory() |
|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
|
void |
setDimension(java.awt.Dimension newDimension) |
protected int width
protected int height
public EmptyResizableIcon(java.awt.Dimension initialDim)
initialDim - Initial dimension of the icon.public EmptyResizableIcon(int initialDim)
initialDim - Initial dimension of the icon.public void setDimension(java.awt.Dimension newDimension)
setDimension in interface org.pushingpixels.neon.api.icon.ResizableIconpublic int getIconHeight()
getIconHeight in interface javax.swing.Iconpublic int getIconWidth()
getIconWidth in interface javax.swing.Iconpublic void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
paintIcon in interface javax.swing.Iconpublic static org.pushingpixels.neon.api.icon.ResizableIcon.Factory factory()