Class RMIconUtils.ShapeIcon

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

public static class RMIconUtils.ShapeIcon extends Object implements Icon
A simple icon implementation to draw a given shape in a given color in a given size.
  • Constructor Details

    • ShapeIcon

      public ShapeIcon(Shape aShape, Color aColor, int aWidth, int aHeight)
      Creates a new ShapeIcon.
  • Method Details

    • 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