org.eclipse.nebula.widgets.nattable.selection
Interface IMarkerSelectionModel
- All Superinterfaces: 
 - ILayerEventHandler<IStructuralChangeEvent>, ISelectionModel
 
- All Known Implementing Classes: 
 - MarkerSelectionModelTest.StubbedMarkerSelectionModel, PreserveSelectionModel
 
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.
 
| Methods inherited from interface org.eclipse.nebula.widgets.nattable.selection.ISelectionModel | 
addSelection, addSelection, clearSelection, clearSelection, clearSelection, getFullySelectedColumnPositions, getFullySelectedRowPositions, getSelectedColumnPositions, getSelectedRowCount, getSelectedRowPositions, getSelections, isCellPositionSelected, isColumnPositionFullySelected, isColumnPositionSelected, isEmpty, isMultipleSelectionAllowed, isRowPositionFullySelected, isRowPositionSelected, setMultipleSelectionAllowed | 
 
 
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 regiony - origin of the last selection position regionwidth - of the last selection position regionheight - of the last selection position region
 
 
Copyright © 2015. All rights reserved.