Class RMIconUtils.StretcherIcon

java.lang.Object
com.inductiveautomation.rm.swing.RMIconUtils.StretcherIcon
All Implemented Interfaces:
Icon
Enclosing class:
RMIconUtils

public static class RMIconUtils.StretcherIcon extends Object implements Icon
An icon implementation that stretches another icon to specified with.
  • Constructor Details

    • StretcherIcon

      public StretcherIcon(Icon anIcon, int aWidth, int aHeight)
      Creates a new StretcherIcon with given width and height.
  • Method Details

    • getIcon

      public Icon getIcon()
      Returns the encapsulated icon.
    • getIconWidth

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

      public int getIconHeight()
      Returns height.
      Specified by:
      getIconHeight in interface Icon
    • paintIcon

      public void paintIcon(Component aComponent, Graphics aGraphics, int x, int y)
      Paints the icon.
      Specified by:
      paintIcon in interface Icon