Class RMIconUtils.LabelIcon

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

public static class RMIconUtils.LabelIcon extends Object implements Icon
An icon implementation that uses a JLabel.
  • Constructor Details

    • LabelIcon

      public LabelIcon(String aString, Font aFont, Icon anIcon)
      Creates a new label icon.
    • LabelIcon

      public LabelIcon(AbstractButton aButton)
      Creates a label icon for a button.
  • Method Details

    • getLabel

      public JLabel getLabel()
      Returns the JLabel.
    • getIconWidth

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

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

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