java.lang.Object
com.inductiveautomation.ignition.designer.gui.cellrenderer.CellRendererIcon
All Implemented Interfaces:
Icon

public class CellRendererIcon extends Object implements Icon

Used in conjunction with CellRendererStateSupport to manage different icon states: Selected, Unselected, Disabled.

The main purpose of this class is to provide an Icon that can be used to check against another icon to see if the icons are the same instance.

When using InteractiveIcons, each state of the icon will be a different instance. That is, the selected variant and the disabled variant of an icon will be different instances. So if you need to check if a "star" icon is the same as an "arrow" icon, this is not possible with InteractiveIcons.

  • Constructor Details

  • Method Details

    • selected

      public void selected()
      Put this icon in a selected state.
    • disabled

      public void disabled()
      Put this icon in a disabled state.
    • standard

      public void standard()
      Put this icon in a standard state.
    • paintIcon

      public void paintIcon(Component c, Graphics g, int x, int y)
      Specified by:
      paintIcon in interface Icon
    • getIconWidth

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

      public int getIconHeight()
      Specified by:
      getIconHeight in interface Icon