javax.swing.Icon
, org.pushingpixels.flamingo.api.common.icon.ResizableIcon
public 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.ResizableIcon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon