Class WatermarkResizableIcon

  • All Implemented Interfaces:
    Icon, org.pushingpixels.flamingo.api.common.icon.ResizableIcon

    public class WatermarkResizableIcon
    extends Object
    implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon
    Resizable icon for Substance watermarks.
    • 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​(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