Class EmptyResizableIcon

java.lang.Object
org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon
All Implemented Interfaces:
Icon, ResizableIcon

public class EmptyResizableIcon extends Object implements ResizableIcon
Implementation of ResizableIcon that paints nothing.
  • Field Details

    • width

      protected int width
      The current icon width.
    • height

      protected int height
      The current icon height.
  • Constructor Details

    • EmptyResizableIcon

      public EmptyResizableIcon(Dimension initialDim)
      Creates a new empty resizable icon of the specified size.
      Parameters:
      initialDim - Initial dimension of the icon.
    • EmptyResizableIcon

      public EmptyResizableIcon(int initialDim)
      Creates a new empty resizable icon of the specified size.
      Parameters:
      initialDim - Initial dimension of the icon.
  • Method Details

    • setDimension

      public void setDimension(Dimension newDimension)
      Description copied from interface: ResizableIcon
      Changes the dimension of this icon.
      Specified by:
      setDimension in interface ResizableIcon
      Parameters:
      newDimension - New dimension for this icon.
    • getIconHeight

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

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

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