Class FixedSizeBoundingBoxAnnotator

    • Field Detail

      • m_Width

        protected int m_Width
        the width of the bounding box.
      • m_Height

        protected int m_Height
        the height of the bounding box.
      • m_Color

        protected Color m_Color
        the color to use.
      • m_StrokeThickness

        protected float m_StrokeThickness
        the thickness of the stroke.
      • m_LabelSuffix

        protected String m_LabelSuffix
        the label suffix to use.
      • m_Center

        protected Point m_Center
        the center of the box.
      • m_MouseListener

        protected MouseListener m_MouseListener
        the mouse listener to install.
    • Constructor Detail

      • FixedSizeBoundingBoxAnnotator

        public FixedSizeBoundingBoxAnnotator()
    • Method Detail

      • setWidth

        public void setWidth​(int value)
        Sets the width of the box.
        Parameters:
        value - the width
      • getWidth

        public int getWidth()
        Returns the width of the box.
        Returns:
        the width
      • widthTipText

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

        public void setHeight​(int value)
        Sets the height of the box.
        Parameters:
        value - the height
      • getHeight

        public int getHeight()
        Returns the height of the box.
        Returns:
        the height
      • heightTipText

        public String heightTipText()
        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.
        Parameters:
        value - the color
      • getColor

        public Color getColor()
        Returns the color to use.
        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.
      • setStrokeThickness

        public void setStrokeThickness​(float value)
        Sets the stroke thickness to use.
        Parameters:
        value - the thickness
      • getStrokeThickness

        public float getStrokeThickness()
        Returns the current stroke thickness.
        Returns:
        the thickness
      • strokeThicknessTipText

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

        protected String getDefaultLabel()
        Returns the default label to use for the objects.
        Returns:
        the default
      • getDefaultLabelSuffix

        protected String getDefaultLabelSuffix()
        Returns the default suffix to use for the label.
        Returns:
        the default
      • setLabelSuffix

        public void setLabelSuffix​(String value)
        Sets the suffix to use for the label.
        Specified by:
        setLabelSuffix in interface LabelSuffixHandler
        Parameters:
        value - the suffix
      • labelSuffixTipText

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

        protected MouseListener createMouseListener()
        Creates the listener for mouse events.
        Returns:
        the instance
      • processSelection

        protected void processSelection​(int modifiersEx)
        Processes the selection.
        Parameters:
        modifiersEx - the associated modifiers
      • doInstall

        protected void doInstall()
        Installs the annotator with the owner.
        Specified by:
        doInstall in class AbstractAnnotator
      • doUninstall

        protected void doUninstall()
        Uninstalls the annotator with the owner.
        Specified by:
        doUninstall in class AbstractAnnotator