javax.swing.Icon, org.pushingpixels.flamingo.api.common.icon.ResizableIconpublic class WatermarkResizableIcon
extends java.lang.Object
implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon
| Constructor | Description |
|---|---|
WatermarkResizableIcon(org.pushingpixels.substance.api.watermark.SubstanceWatermark watermark,
int startWidth,
int startHeight) |
Creates a new icon.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getIconHeight() |
|
int |
getIconWidth() |
|
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y) |
|
void |
setDimension(java.awt.Dimension newDimension) |
public WatermarkResizableIcon(org.pushingpixels.substance.api.watermark.SubstanceWatermark watermark,
int startWidth,
int startHeight)
watermark - Associated watermark (can be null).startWidth - Original width in pixels.startHeight - Original heigth in pixels.public void setDimension(java.awt.Dimension newDimension)
setDimension in interface org.pushingpixels.flamingo.api.common.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.Icon