Class SelectObjects

    • Field Detail

      • m_Label

        protected String m_Label
        the label to use.
      • m_LabelSuffix

        protected String m_LabelSuffix
        the label suffix to use.
      • m_AddMetaData

        protected boolean m_AddMetaData
        whether to add meta-data.
      • m_AddMetaDataInstance

        protected transient AddMetaData m_AddMetaDataInstance
        the AddMetaData instance.
    • Constructor Detail

      • SelectObjects

        public SelectObjects()
    • Method Detail

      • getDefaultLabel

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

        public String labelTipText()
        Returns the tip text for this property.
        Specified by:
        labelTipText in interface SelectionProcessorWithLabelSupport
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getDefaultLabelSuffix

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

        public void setAddMetaData​(boolean value)
        Sets whether to allow adding meta-data to the object.
        Parameters:
        value - true if to add
      • getAddMetaData

        public boolean getAddMetaData()
        Returns whether to allow adding meta-data to the object.
        Returns:
        true if to add
      • addMetaDataTipText

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

        protected void logAdd​(ImagePanel panel,
                              int x,
                              int y,
                              int w,
                              int h,
                              int[] poly_x,
                              int[] poly_y)
        Logs the adding of an object.
        Parameters:
        panel - the panel to use for logging
        x - the x coordinate
        y - the y coordinate
        w - the width
        h - the height
        poly_x - the x coordinates of the polygon, can be null
        poly_y - the y coordinates of the polygon, can be null
      • logRemove

        protected void logRemove​(ImagePanel panel,
                                 int x,
                                 int y,
                                 int w,
                                 int h,
                                 List<Map<String,​Object>> removed)
        Logs the removal of the of objects.
        Parameters:
        panel - the panel to use for logging
        x - the x of the removal rectangle
        y - the y of the removal rectangle
        w - the width of the removal rectangle
        h - the height of the removal rectangle
        removed - the removed objects
      • doProcessSelection

        protected void doProcessSelection​(ImagePanel panel,
                                          Point topLeft,
                                          Point bottomRight,
                                          List<Point> trace,
                                          int modifiersEx)
        Process the selection that occurred in the image panel.
        Specified by:
        doProcessSelection in class AbstractSelectionProcessor
        Parameters:
        panel - the origin
        topLeft - the top-left position of the selection
        bottomRight - the bottom-right position of the selection
        trace - the trace from the selection
        modifiersEx - the associated modifiers