Class CellRendererIcon
java.lang.Object
com.inductiveautomation.ignition.designer.gui.cellrenderer.CellRendererIcon
- All Implemented Interfaces:
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 InteractiveIcon
s, 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 InteractiveIcon
s.
-
Constructor Details
-
CellRendererIcon
-
-
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
-
getIconWidth
public int getIconWidth()- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()- Specified by:
getIconHeight
in interfaceIcon
-