Class AbstractSelectionRectangleBasedSelectionProcessor

    • Constructor Detail

      • AbstractSelectionRectangleBasedSelectionProcessor

        public AbstractSelectionRectangleBasedSelectionProcessor()
    • Method Detail

      • getDefaultPrefix

        protected String getDefaultPrefix()
        Returns the default prefix to use for the objects.
        Returns:
        the default
      • setPrefix

        public void setPrefix​(String value)
        Sets the prefix to use for the objects.
        Specified by:
        setPrefix in interface ObjectPrefixHandler
        Parameters:
        value - the prefix
      • prefixTipText

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

        protected int getDefaultNumDigits()
        Returns the default number of digits to use.
        Returns:
        the default
      • setNumDigits

        public void setNumDigits​(int value)
        Sets the number of digits to use for the left-padded index.
        Parameters:
        value - the number of digits
      • getNumDigits

        public int getNumDigits()
        Returns the number of digits to use for the left-padded index.
        Returns:
        the number of digits
      • numDigitsTipText

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

        protected Map<String,​Object> valuesForIndex​(Report report,
                                                          int index)
        Returns all the values stored in the report under this index.
        Parameters:
        report - the report to look up the index in
        index - the index to retrieve the values for
        Returns:
        the values
      • removeIndex

        protected boolean removeIndex​(Report report,
                                      int index)
        Removes the specified index from the report.
        Returns:
        true if successfully removed
      • findLastIndex

        protected int findLastIndex​(Report report)
        Determines the last index used with the given prefix.
      • getLocations

        protected List<SelectionRectangle> getLocations​(Report report)
        Returns all currently stored locations.
        Parameters:
        report - the report to get the locations from
        Returns:
        the locations