Class ClassificationOverlay

    • Field Detail

      • m_ShowIndex

        protected boolean m_ShowIndex
        whether to display the index.
      • m_ShowLabel

        protected boolean m_ShowLabel
        whether to display the label.
    • Constructor Detail

      • ClassificationOverlay

        public ClassificationOverlay()
    • Method Detail

      • setShowIndex

        public void setShowIndex​(boolean value)
        Sets whether to show the index.
        Parameters:
        value - if true then the index is displayed
      • getShowIndex

        public boolean getShowIndex()
        Returns whether the index is shown.
        Returns:
        true if the index is displayed
      • showIndexTipText

        public String showIndexTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setShowLabel

        public void setShowLabel​(boolean value)
        Sets whether to show the label.
        Parameters:
        value - if true then the label is displayed
      • getShowLabel

        public boolean getShowLabel()
        Returns whether the label is shown.
        Returns:
        true if the label is displayed
      • showLabelTipText

        public String showLabelTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • imageChanged

        public void imageChanged​(ImagePanel.PaintPanel panel)
        Notifies the overlay that the image has changed.
        Parameters:
        panel - the panel this overlay belongs to
      • getClassificationIndices

        protected Integer[] getClassificationIndices()
        Returns the classification indices.
        Returns:
        the indices
      • getPixelLocation

        protected Point getPixelLocation​(int index)
        Returns the pixel location to paint.
        Parameters:
        index - the pixel location
        Returns:
        the location, null if none found