Class SelectArea

    • Constructor Detail

      • SelectArea

        public SelectArea()
    • Method Detail

      • setResizable

        public void setResizable​(boolean resize)
        Set whether the area chosen by this SelectArea is resizable or not.
        Parameters:
        resize - whether the area can be resized (default is true)
        Since:
        2.24.1
      • setDraggable

        public void setDraggable​(boolean drag)
        Set whether the area chosen by this SelectArea can be dragged to move it around the page.
        Parameters:
        drag - whether the area can be moved (default is true)
        Since:
        2.24.1
      • setContain

        public void setContain​(boolean contain)
        Set whether the area chosen by this SelectArea can be dragged or resized so it extends of the page.
        Parameters:
        contain - whether the area is restricted to the bounds of the page (default is true)
        Since:
        2.24.1
      • action

        public void action​(PagePanel panel,
                           Point2D start,
                           Point2D end)
        Description copied from class: AbstractRegionSelector
        Called when an area of the PDF has been selected.
        Overrides:
        action in class AbstractRegionSelector
        Parameters:
        panel - the PagePanel the selection was made on.
        start - the start point of the selection, in PDF-units
        end - the end point of the selection, in PDF-units