Interface IMarkerSelectionModel

All Superinterfaces:
ILayerEventHandler<IStructuralChangeEvent>, ISelectionModel
All Known Implementing Classes:
MarkerSelectionModelTest.StubbedMarkerSelectionModel, PreserveSelectionModel, SummaryRowPreserveSelectionModel

public interface IMarkerSelectionModel extends ISelectionModel
Selection model that holds markers such as anchors and last selection properties in order to keep them up-to-date after underlying data has changed.
  • Method Details

    • getSelectionAnchor

      org.eclipse.swt.graphics.Point getSelectionAnchor()
      Returns:
      point of the anchor expressed in position coordinates
    • getLastSelectedCell

      org.eclipse.swt.graphics.Point getLastSelectedCell()
      Returns:
      point of the last selected cell expressed in position coordinates
    • getLastSelectedRegion

      org.eclipse.swt.graphics.Rectangle getLastSelectedRegion()
      Returns:
      rectangle of the last selected region expressed in position coordinates
    • setSelectionAnchor

      void setSelectionAnchor(org.eclipse.swt.graphics.Point position)
      Parameters:
      position - coordinate of the anchor
    • setLastSelectedCell

      void setLastSelectedCell(org.eclipse.swt.graphics.Point position)
      Parameters:
      position - coordinate of the last selected
    • setLastSelectedRegion

      void setLastSelectedRegion(org.eclipse.swt.graphics.Rectangle region)
      Will set the Rectangle object of the last selected region to be the same as the parameter object region.
      Parameters:
      region - the last selection position region
    • setLastSelectedRegion

      void setLastSelectedRegion(int x, int y, int width, int height)
      Will copy the information of the parameters to the already existing Rectangle object of last selected region.
      Parameters:
      x - origin of the last selection position region
      y - origin of the last selection position region
      width - of the last selection position region
      height - of the last selection position region