Class TransitionAwareResizableIcon

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

public class TransitionAwareResizableIcon extends Object implements org.pushingpixels.flamingo.api.common.icon.ResizableIcon
Icon with transition-aware capabilities. Has a delegate that does the actual painting based on the transition themes. This class is used heavily on Substance-provided icons, such as title pane button icons, arrow icons on scroll bars and combos etc.
  • Field Details

    • width

      protected int width
      The width of the rendered image.
    • height

      protected int height
      The height of the rendered image.
  • Constructor Details

  • Method Details

    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • 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