org.pushingpixels.substance.flamingo.ribbon.gallery.oob
Class WatermarkResizableIcon

java.lang.Object
  extended by org.pushingpixels.substance.flamingo.ribbon.gallery.oob.WatermarkResizableIcon
All Implemented Interfaces:
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

Resizable icon for Substance watermarks.


Constructor Summary
WatermarkResizableIcon(org.pushingpixels.substance.api.watermark.SubstanceWatermark watermark, int startWidth, int startHeight)
          Creates a new icon.
 
Method Summary
 int getIconHeight()
           
 int getIconWidth()
           
 void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
           
 void setDimension(java.awt.Dimension newDimension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WatermarkResizableIcon

public WatermarkResizableIcon(org.pushingpixels.substance.api.watermark.SubstanceWatermark watermark,
                              int startWidth,
                              int startHeight)
Creates a new icon.

Parameters:
watermark - Associated watermark (can be null).
startWidth - Original width in pixels.
startHeight - Original heigth in pixels.
Method Detail

setDimension

public void setDimension(java.awt.Dimension newDimension)
Specified by:
setDimension in interface org.pushingpixels.flamingo.api.common.icon.ResizableIcon

getIconHeight

public int getIconHeight()
Specified by:
getIconHeight in interface javax.swing.Icon

getIconWidth

public int getIconWidth()
Specified by:
getIconWidth in interface javax.swing.Icon

paintIcon

public void paintIcon(java.awt.Component c,
                      java.awt.Graphics g,
                      int x,
                      int y)
Specified by:
paintIcon in interface javax.swing.Icon