Class DoubleArrowResizableIcon

java.lang.Object
org.pushingpixels.flamingo.internal.utils.DoubleArrowResizableIcon
All Implemented Interfaces:
Icon, ResizableIcon

public class DoubleArrowResizableIcon extends Object implements ResizableIcon
Helper implementation of ResizableIcon that draws a double arrow.
  • Field Details

  • Constructor Details

    • DoubleArrowResizableIcon

      public DoubleArrowResizableIcon(Dimension initialDim, int direction)
      Creates a new double arrow resizable icon.
      Parameters:
      initialDim - Initial icon dimension.
      direction - Arrow direction. Currently only SwingConstants.SOUTH is supported.
    • DoubleArrowResizableIcon

      public DoubleArrowResizableIcon(int initialDim, int direction)
      Creates a new double arrow resizable icon.
      Parameters:
      initialDim - Initial icon dimension.
      direction - Arrow direction. Currently only SwingConstants.SOUTH is supported.
  • Method Details

    • revertToOriginalDimension

      public void revertToOriginalDimension()
    • 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
    • toPaintEnabled

      protected boolean toPaintEnabled(Component c)
    • paintIcon

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