Class SimpleResizableIcon

java.lang.Object
be.gaudry.swing.ribbon.SimpleResizableIcon
All Implemented Interfaces:
Icon, org.pushingpixels.flamingo.api.common.icon.ResizableIcon

public class SimpleResizableIcon extends Object implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon
Since:
1.0 Feb 23, 2009
Author:
Steph GAUDRY
  • Constructor Details

    • SimpleResizableIcon

      public SimpleResizableIcon(Icon _icon)
    • SimpleResizableIcon

      public SimpleResizableIcon(Icon _icon, int startWidth, int startHeight)
  • Method Details

    • setDimension

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

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon
    • getIconWidth

      public int getIconWidth()
      Specified by:
      getIconWidth in interface Icon
    • setHeight

      public void setHeight(int height)
    • setWidth

      public void setWidth(int width)
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • revertToOriginalDimension

      public void revertToOriginalDimension()