Class Crop

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.ShallowCopySupporter<AbstractSelectionProcessor>, adams.core.SizeOfHandler, HeatmapPanelSelectionListener, Serializable, EventListener

    public class Crop
    extends AbstractSelectionProcessor
    Crops the heatmap to the current selection and stores crop information in the report (prefix: Crop.). Offers undo/redo.

    -logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel)
        The logging level for outputting errors and debugging output.
        default: WARNING
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • Crop

        public Crop()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        a description suitable for displaying in the gui
      • doProcessSelection

        protected void doProcessSelection​(HeatmapPanel panel,
                                          Point topLeft,
                                          Point bottomRight,
                                          int modifiersEx)
        Process the selection that occurred in the heatmap panel.
        Specified by:
        doProcessSelection in class AbstractSelectionProcessor
        panel - the origin
        topLeft - the top-left position of the selection
        bottomRight - the bottom-right position of the selection
        modifiersEx - the associated modifiers