java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.inductiveautomation.ignition.client.tags.tree.TagRenderer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, TreeCellRenderer

public class TagRenderer extends JPanel implements TreeCellRenderer
See Also:
  • Field Details

    • folderIcon

      public static final Icon folderIcon
    • closedFolderIcon

      public static final Icon closedFolderIcon
    • folderIconSelected

      public static final Icon folderIconSelected
    • closedFolderIconSelected

      public static final Icon closedFolderIconSelected
    • loadingIcon

      public static final Icon loadingIcon
    • atomic

      public static final Icon atomic
    • atomicSelected

      public static final Icon atomicSelected
    • HIGHLIGHT_COLOR

      public static final Color HIGHLIGHT_COLOR
    • SELECTION_COLOR

      public static final Color SELECTION_COLOR
    • highlightedRow

      protected int highlightedRow
    • highlighted

      protected boolean highlighted
    • standardFont

      protected Font standardFont
    • defaultDsFont

      protected Font defaultDsFont
    • typeFont

      protected Font typeFont
    • nameRenderer

      protected TagRenderer.NameIconRenderer nameRenderer
    • typeRenderer

      protected TagRenderer.TypeRenderer typeRenderer
    • selected

      protected boolean selected
      Is the value currently selected.
    • hasFocus

      protected boolean hasFocus
      True if has focus.
    • drawsFocusBorderAroundIcon

      protected boolean drawsFocusBorderAroundIcon
      True if draws focus border around icon as well.
    • textSelectionColor

      protected Color textSelectionColor
      Color to use for the foreground for selected nodes.
    • textNonSelectionColor

      protected Color textNonSelectionColor
      Color to use for the foreground for non-selected nodes.
    • backgroundSelectionColor

      protected Color backgroundSelectionColor
      Color to use for the background when a node is selected.
    • backgroundNonSelectionColor

      protected Color backgroundNonSelectionColor
      Color to use for the background when the node isn't selected.
  • Constructor Details

    • TagRenderer

      public TagRenderer()
  • Method Details

    • initLayout

      protected void initLayout()
    • initColors

      protected void initColors()
    • initComponents

      protected void initComponents()
    • setBaseFont

      public void setBaseFont(Font font)
    • getNodeIcon

      public static Icon getNodeIcon(InfoNode node, boolean expanded, boolean selected)
    • maybeDisplay

      protected void maybeDisplay(TagRenderer.TagCellRenderer renderer)
    • getToolTipText

      public String getToolTipText(MouseEvent event)
      Overridden to provide the tooltip text for the sub component in this JPanel under the given mouse event
      Overrides:
      getToolTipText in class JComponent
    • getTreeCellRendererComponent

      public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus)
      Specified by:
      getTreeCellRendererComponent in interface TreeCellRenderer
    • getHighlightedRow

      public int getHighlightedRow()
    • setHighlightedRow

      public void setHighlightedRow(int row)