Class BidibNodeRenderer

    • Field Detail

      • 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.
      • borderSelectionColor

        protected Color borderSelectionColor
        Color to use for the focus indicator when the node has focus.
    • Constructor Detail

      • BidibNodeRenderer

        public BidibNodeRenderer​(org.bidib.wizard.common.labels.WizardLabelWrapper wizardLabelWrapper,
                                 Icon leafIcon,
                                 Icon nodeIcon,
                                 Icon identifyIcon,
                                 Icon errorIcon,
                                 Icon restartPendingIcon,
                                 Icon leafWarnIcon,
                                 Icon nodeWarnIcon,
                                 Icon detachedIcon,
                                 Icon nodeConfigPendingIcon,
                                 String messageUnsupportedProtocol)
    • Method Detail

      • updateUI

        public void updateUI()
        Overrides:
        updateUI in class JPanel
      • prepareLabel

        protected void prepareLabel​(org.bidib.wizard.api.model.NodeInterface node)
      • isNodeHasError

        protected boolean isNodeHasError​(org.bidib.wizard.api.model.NodeInterface node)
      • isNodeHasRestartPendingError

        protected boolean isNodeHasRestartPendingError​(org.bidib.wizard.api.model.NodeInterface node)
      • isUpdateableNode

        protected boolean isUpdateableNode​(org.bidib.wizard.api.model.NodeInterface node)
      • isIdentifyNode

        protected boolean isIdentifyNode​(org.bidib.wizard.api.model.NodeInterface node)
      • isDetachedNode

        protected boolean isDetachedNode​(org.bidib.wizard.api.model.NodeInterface node)
      • isUnsupportedProtocolVersionNode

        protected boolean isUnsupportedProtocolVersionNode​(org.bidib.wizard.api.model.NodeInterface node)
        Check if the node has an unsupported protocol version.
        Parameters:
        node - the node
        Returns:
        true: the prototcol version of the node is unsupported, false protocol version is supported
      • setAlwaysShowProductNameInTree

        public void setAlwaysShowProductNameInTree​(boolean alwaysShowProductNameInTree)
        Parameters:
        alwaysShowProductNameInTree - the alwaysShowProductNameInTree to set
      • setTextSelectionColor

        public void setTextSelectionColor​(Color newColor)
        Sets the color the text is drawn with when the node is selected.
      • getTextSelectionColor

        public Color getTextSelectionColor()
        Returns the color the text is drawn with when the node is selected.
      • setTextNonSelectionColor

        public void setTextNonSelectionColor​(Color newColor)
        Sets the color the text is drawn with when the node isn't selected.
      • getTextNonSelectionColor

        public Color getTextNonSelectionColor()
        Returns the color the text is drawn with when the node isn't selected.
      • setBackgroundSelectionColor

        public void setBackgroundSelectionColor​(Color newColor)
        Sets the color to use for the background if node is selected.
      • getBackgroundSelectionColor

        public Color getBackgroundSelectionColor()
        Returns the color to use for the background if node is selected.
      • setBackgroundNonSelectionColor

        public void setBackgroundNonSelectionColor​(Color newColor)
        Sets the background color to be used for non selected nodes.
      • getBackgroundNonSelectionColor

        public Color getBackgroundNonSelectionColor()
        Returns the background color to be used for non selected nodes.
      • setBorderSelectionColor

        public void setBorderSelectionColor​(Color newColor)
        Sets the color to use for the border.
      • getBorderSelectionColor

        public Color getBorderSelectionColor()
        Returns the color the border is drawn.