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.


Method Summary
 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.selection.ISelectionModel
addSelection, addSelection, clearSelection, clearSelection, clearSelection, getFullySelectedColumnPositions, getFullySelectedRowPositions, getSelectedColumnPositions, getSelectedRowCount, getSelectedRowPositions, getSelections, isCellPositionSelected, isColumnPositionFullySelected, isColumnPositionSelected, isEmpty, isMultipleSelectionAllowed, isRowPositionFullySelected, isRowPositionSelected, setMultipleSelectionAllowed
 
Methods inherited from interface org.eclipse.nebula.widgets.nattable.layer.event.ILayerEventHandler
getLayerEventClass, handleLayerEvent
 

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 region
y - origin of the last selection position region
width - of the last selection position region
height - of the last selection position region


Copyright © 2015. All rights reserved.