Class ImageSegmentationAnnotationsHandler

    • Field Detail

      • m_ColorProvider

        protected ColorProvider m_ColorProvider
        the color provider to use.
      • m_Alpha

        protected float m_Alpha
        the alpha value (0=transparent, 1=opaque).
      • m_DisplayedLabels

        protected BaseString[] m_DisplayedLabels
        displayed labels.
      • m_Zoom

        protected double m_Zoom
        the zoom level.
      • m_BestFit

        protected boolean m_BestFit
        whether to use best fit.
      • m_UseSeparateLayers

        protected boolean m_UseSeparateLayers
        whether to use separate layers.
    • Constructor Detail

      • ImageSegmentationAnnotationsHandler

        public ImageSegmentationAnnotationsHandler()
    • Method Detail

      • readerTipText

        public String readerTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • colorProviderTipText

        public String colorProviderTipText()
        Returns the tip text for this property.
        Specified by:
        colorProviderTipText in interface ColorProviderHandler
        Returns:
        tip text for this property suitable for displaying in the gui
      • setAlpha

        public void setAlpha​(float value)
        Sets the alpha value to use for the overlay: 0=transparent, 255=opaque.
        Parameters:
        value - the alpha value
      • getAlpha

        public float getAlpha()
        Returns the alpha value to use for the overlay: 0=transparent, 255=opaque.
        Returns:
        the alpha value
      • alphaTipText

        public String alphaTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • setDisplayedLabels

        public void setDisplayedLabels​(BaseString[] value)
        Sets the displayed labels.
        Parameters:
        value - the labels
      • getDisplayedLabels

        public BaseString[] getDisplayedLabels()
        Returns the displayed labels.
        Returns:
        the labels
      • displayedLabelsTipText

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

        public void setZoom​(double value)
        Sets the zoom level in percent (1-inf).
        Parameters:
        value - the zoom
      • getZoom

        public double getZoom()
        Returns the zoom level in percent.
        Returns:
        the zoom
      • zoomTipText

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

        public void setBestFit​(boolean value)
        Sets whether to use best fit for the image or not.
        Parameters:
        value - true if to use
      • getBestFit

        public boolean getBestFit()
        Returns whether to use best fit for the image or not.
        Returns:
        true if to use
      • bestFitTipText

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

        public void setUseSeparateLayers​(boolean value)
        Sets whether to use separate layers or just one.
        Parameters:
        value - true if to use
      • getUseSeparateLayers

        public boolean getUseSeparateLayers()
        Returns whether to use separate layers or just one.
        Returns:
        true if to use
      • useSeparateLayersTipText

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

        public String[] getExtensions()
        Returns the list of extensions (without dot) that this handler can take care of.
        Specified by:
        getExtensions in interface ContentHandler
        Returns:
        the list of extensions (no dot)
      • locateAnnotation

        protected File locateAnnotation​(File file)
        Locates the annotation PNG file.
        Parameters:
        file - the JPG file
        Returns:
        the annotation file or null if failed to locate