Class RMIconUtils.BorderIcon

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

public static class RMIconUtils.BorderIcon extends Object implements Icon
An icon implementation that renders a border on another icon.
  • Constructor Details

    • BorderIcon

      public BorderIcon(Icon anIcon, int aWidth, int aHeight)
      Creates a new BorderIcon with black line border.
    • BorderIcon

      public BorderIcon(Color aColor, Icon anIcon, int aWidth, int aHeight)
      Creates a new BorderIcon with line border in given color.
    • BorderIcon

      public BorderIcon(Border aBorder, Icon anIcon, int aWidth, int aHeight)
      Creates a new BorderIcon.
  • 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