Interface IMarkerSelectionModel
- All Superinterfaces:
ILayerEventHandler<IStructuralChangeEvent>,ISelectionModel
- All Known Implementing Classes:
MarkerSelectionModelTest.StubbedMarkerSelectionModel,PreserveSelectionModel,SummaryRowPreserveSelectionModel
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 Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.graphics.Pointorg.eclipse.swt.graphics.Rectangleorg.eclipse.swt.graphics.PointvoidsetLastSelectedCell(org.eclipse.swt.graphics.Point position) voidsetLastSelectedRegion(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.voidsetLastSelectedRegion(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.voidsetSelectionAnchor(org.eclipse.swt.graphics.Point position) Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.ILayerEventHandler
getLayerEventClass, handleLayerEventMethods 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
-
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 regiony- origin of the last selection position regionwidth- of the last selection position regionheight- of the last selection position region
-