Class NavTreeIcon
- java.lang.Object
-
- javax.swing.ImageIcon
-
- com.inductiveautomation.ignition.designer.navtree.icon.NavTreeIcon
-
- All Implemented Interfaces:
InteractiveIcon
,java.io.Serializable
,javax.accessibility.Accessible
,javax.swing.Icon
public class NavTreeIcon extends javax.swing.ImageIcon implements InteractiveIcon
An icon used in the DesignerNavTreePanel
that can show a normal and selected state.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NavTreeIcon(javax.swing.ImageIcon icon)
NavTreeIcon(javax.swing.ImageIcon normal, javax.swing.ImageIcon selected)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NavTreeIcon
createIcon(java.lang.Class relativeClass, java.lang.String path)
static NavTreeIcon
createIcon(java.lang.String path)
UsesIconUtil
to load the image at the path with a size of 16x16.javax.swing.Icon
getDisabled()
javax.swing.Icon
getFocused()
javax.swing.Icon
getSelected()
-
-
-
Method Detail
-
getSelected
@Nullable public javax.swing.Icon getSelected()
- Specified by:
getSelected
in interfaceInteractiveIcon
-
getFocused
@Nullable public javax.swing.Icon getFocused()
- Specified by:
getFocused
in interfaceInteractiveIcon
-
getDisabled
@Nullable public javax.swing.Icon getDisabled()
- Specified by:
getDisabled
in interfaceInteractiveIcon
-
createIcon
public static NavTreeIcon createIcon(java.lang.String path)
UsesIconUtil
to load the image at the path with a size of 16x16. Tries to load the same image with "-selected" appended before the extension for the selected state.
-
createIcon
public static NavTreeIcon createIcon(java.lang.Class relativeClass, java.lang.String path)
-
-