Class 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 Designer NavTreePanel that can show a normal and selected state.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.ImageIcon

        javax.swing.ImageIcon.AccessibleImageIcon
    • Field Summary

      • Fields inherited from class javax.swing.ImageIcon

        component, tracker
    • 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)
      Uses IconUtil to load the image at the path with a size of 16x16.
      javax.swing.Icon getDisabled()  
      javax.swing.Icon getFocused()  
      javax.swing.Icon getSelected()  
      • Methods inherited from class javax.swing.ImageIcon

        getAccessibleContext, getDescription, getIconHeight, getIconWidth, getImage, getImageLoadStatus, getImageObserver, loadImage, paintIcon, setDescription, setImage, setImageObserver, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NavTreeIcon

        public NavTreeIcon​(javax.swing.ImageIcon icon)
      • NavTreeIcon

        public NavTreeIcon​(@Nonnull
                           javax.swing.ImageIcon normal,
                           javax.swing.ImageIcon selected)
    • Method Detail

      • createIcon

        public static NavTreeIcon createIcon​(java.lang.String path)
        Uses IconUtil 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)