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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.swt.graphics.Point
getLastSelectedCell()
org.eclipse.swt.graphics.Rectangle
getLastSelectedRegion()
org.eclipse.swt.graphics.Point
getSelectionAnchor()
void
setLastSelectedCell(org.eclipse.swt.graphics.Point position)
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.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.void
setSelectionAnchor(org.eclipse.swt.graphics.Point position)
-
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.ILayerEventHandler
getLayerEventClass, handleLayerEvent
-
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
-
-
-
-
Method Detail
-
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
-
-