Class ClassificationLabelTextOverlay

    • Field Detail

      • m_Field

        protected Field m_Field
        the field to store the classification label in.
      • m_Color

        protected Color m_Color
        the color for the objects.
      • m_LabelFont

        protected Font m_LabelFont
        the label font.
      • m_LabelOffsetX

        protected int m_LabelOffsetX
        the x offset for the label.
      • m_LabelOffsetY

        protected int m_LabelOffsetY
        the y offset for the label.
      • m_CustomAlphaEnabled

        protected boolean m_CustomAlphaEnabled
        whether a custom alpha is in use.
      • m_CustomAlpha

        protected int m_CustomAlpha
        the custom alpha value to use.
    • Constructor Detail

      • ClassificationLabelTextOverlay

        public ClassificationLabelTextOverlay()
    • Method Detail

      • setField

        public void setField​(Field value)
        Sets the field to use.
        Parameters:
        value - the field
      • getField

        public Field getField()
        Returns the field to use.
        Returns:
        the field
      • fieldTipText

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

        public void setColor​(Color value)
        Sets the color to use for the label.
        Parameters:
        value - the color
      • getColor

        public Color getColor()
        Returns the color to use for the label.
        Returns:
        the color
      • colorTipText

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

        public void setLabelFont​(Font value)
        Sets the label font.
        Parameters:
        value - the label font
      • getLabelFont

        public Font getLabelFont()
        Returns the label font.
        Returns:
        the label font
      • labelFontTipText

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

        public void setLabelOffsetX​(int value)
        Sets the X offset for the label.
        Parameters:
        value - the X offset
      • getLabelOffsetX

        public int getLabelOffsetX()
        Returns the X offset for the label.
        Returns:
        the X offset
      • labelOffsetXTipText

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

        public void setLabelOffsetY​(int value)
        Sets the Y offset for the label.
        Parameters:
        value - the Y offset
      • getLabelOffsetY

        public int getLabelOffsetY()
        Returns the Y offset for the label.
        Returns:
        the Y offset
      • labelOffsetYTipText

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

        public void setCustomAlphaEnabled​(boolean value)
        Sets whether to use a custom alpha value for the overlay colors.
        Specified by:
        setCustomAlphaEnabled in interface OverlayWithCustomAlphaSupport
        Parameters:
        value - true if to use custom alpha
      • isCustomAlphaEnabled

        public boolean isCustomAlphaEnabled()
        Returns whether a custom alpha value is in use for the overlay colors.
        Specified by:
        isCustomAlphaEnabled in interface OverlayWithCustomAlphaSupport
        Returns:
        true if custom alpha in use
      • setCustomAlpha

        public void setCustomAlpha​(int value)
        Sets the custom alpha value (0: transparent, 255: opaque).
        Specified by:
        setCustomAlpha in interface OverlayWithCustomAlphaSupport
        Parameters:
        value - the alpha value
      • applyAlpha

        protected Color applyAlpha​(Color c)
        Applies the custom alpha value to the color if necessary.
        Parameters:
        c - the color to update
        Returns:
        the (potentially) updated color