|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.nebula.widgets.nattable.selection.SelectionLayerTest.StubbedMarkerSelectionModel
public class SelectionLayerTest.StubbedMarkerSelectionModel
Constructor Summary | |
---|---|
SelectionLayerTest.StubbedMarkerSelectionModel()
|
Method Summary | |
---|---|
void |
addSelection(int columnPosition,
int rowPosition)
Selects a specified cell |
void |
addSelection(org.eclipse.swt.graphics.Rectangle range)
Selects the cells of a specified area |
void |
clearSelection()
Removes all cell selections |
void |
clearSelection(int columnPosition,
int rowPosition)
Deselects a specified cell |
void |
clearSelection(org.eclipse.swt.graphics.Rectangle removedSelection)
Removes the selection of specified cells |
int[] |
getFullySelectedColumnPositions(int columnHeight)
|
int[] |
getFullySelectedRowPositions(int rowWidth)
|
org.eclipse.swt.graphics.Point |
getLastSelectedCell()
|
org.eclipse.swt.graphics.Rectangle |
getLastSelectedRegion()
|
int[] |
getSelectedColumnPositions()
Retrieves the columns that have any selected cells |
int |
getSelectedRowCount()
Retrieves the number of rows that have any selected cell |
Set<Range> |
getSelectedRowPositions()
Retrieves the rows with a valid row position that have any selected cells |
org.eclipse.swt.graphics.Point |
getSelectionAnchor()
|
List<org.eclipse.swt.graphics.Rectangle> |
getSelections()
Retrieves the cells that are selected |
boolean |
isCellPositionSelected(int columnPosition,
int rowPosition)
Determines whether a specified cell is selected |
boolean |
isColumnPositionFullySelected(int columnPosition,
int columnHeight)
|
boolean |
isColumnPositionSelected(int columnPosition)
Determines whether a specified column contains any selected cell |
boolean |
isEmpty()
Determines whether there are any selected cells |
boolean |
isMultipleSelectionAllowed()
Determines whether multiple cells can be selected simultaneously |
boolean |
isRowPositionFullySelected(int rowPosition,
int rowWidth)
|
boolean |
isRowPositionSelected(int rowPosition)
Determines whether a specified row contains any selected cell |
void |
setLastSelectedCell(org.eclipse.swt.graphics.Point lastSelectedCell)
|
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 |
setMultipleSelectionAllowed(boolean multipleSelectionAllowed)
Sets whether multiple cells can be selected simultaneously |
void |
setSelectionAnchor(org.eclipse.swt.graphics.Point anchor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionLayerTest.StubbedMarkerSelectionModel()
Method Detail |
---|
public boolean isMultipleSelectionAllowed()
ISelectionModel
isMultipleSelectionAllowed
in interface ISelectionModel
public void setMultipleSelectionAllowed(boolean multipleSelectionAllowed)
ISelectionModel
setMultipleSelectionAllowed
in interface ISelectionModel
multipleSelectionAllowed
- whether multiple cells can be selected simultaneouslypublic void addSelection(int columnPosition, int rowPosition)
ISelectionModel
addSelection
in interface ISelectionModel
columnPosition
- column position of the cell to selectrowPosition
- row position of the cell to selectpublic void addSelection(org.eclipse.swt.graphics.Rectangle range)
ISelectionModel
addSelection
in interface ISelectionModel
range
- the position based area to selectpublic void clearSelection()
ISelectionModel
clearSelection
in interface ISelectionModel
public void clearSelection(int columnPosition, int rowPosition)
ISelectionModel
clearSelection
in interface ISelectionModel
columnPosition
- column position of the cell to deselectrowPosition
- row position of the cell to deselectpublic void clearSelection(org.eclipse.swt.graphics.Rectangle removedSelection)
ISelectionModel
clearSelection
in interface ISelectionModel
removedSelection
- the position based area to deselectpublic boolean isEmpty()
ISelectionModel
isEmpty
in interface ISelectionModel
public List<org.eclipse.swt.graphics.Rectangle> getSelections()
ISelectionModel
getSelections
in interface ISelectionModel
public boolean isCellPositionSelected(int columnPosition, int rowPosition)
ISelectionModel
isCellPositionSelected
in interface ISelectionModel
columnPosition
- column position of the cell to inspectrowPosition
- row position of the cell to inspect
public int[] getSelectedColumnPositions()
ISelectionModel
getSelectedColumnPositions
in interface ISelectionModel
public boolean isColumnPositionSelected(int columnPosition)
ISelectionModel
isColumnPositionSelected
in interface ISelectionModel
columnPosition
- column position to inspect
public int[] getFullySelectedColumnPositions(int columnHeight)
getFullySelectedColumnPositions
in interface ISelectionModel
columnHeight
- the number of rows in a fully selected columnpublic boolean isColumnPositionFullySelected(int columnPosition, int columnHeight)
isColumnPositionFullySelected
in interface ISelectionModel
columnHeight
- the number of rows in a fully selected columnpublic int getSelectedRowCount()
ISelectionModel
getSelectedRowCount
in interface ISelectionModel
public Set<Range> getSelectedRowPositions()
ISelectionModel
getSelectedRowPositions
in interface ISelectionModel
public boolean isRowPositionSelected(int rowPosition)
ISelectionModel
isRowPositionSelected
in interface ISelectionModel
rowPosition
- row position to inspect
public int[] getFullySelectedRowPositions(int rowWidth)
getFullySelectedRowPositions
in interface ISelectionModel
rowWidth
- the number of columns in a fully selected rowpublic boolean isRowPositionFullySelected(int rowPosition, int rowWidth)
isRowPositionFullySelected
in interface ISelectionModel
public org.eclipse.swt.graphics.Point getSelectionAnchor()
getSelectionAnchor
in interface IMarkerSelectionModel
public org.eclipse.swt.graphics.Point getLastSelectedCell()
getLastSelectedCell
in interface IMarkerSelectionModel
public org.eclipse.swt.graphics.Rectangle getLastSelectedRegion()
getLastSelectedRegion
in interface IMarkerSelectionModel
public void setSelectionAnchor(org.eclipse.swt.graphics.Point anchor)
setSelectionAnchor
in interface IMarkerSelectionModel
anchor
- coordinate of the anchorpublic void setLastSelectedCell(org.eclipse.swt.graphics.Point lastSelectedCell)
setLastSelectedCell
in interface IMarkerSelectionModel
lastSelectedCell
- coordinate of the last selectedpublic void setLastSelectedRegion(org.eclipse.swt.graphics.Rectangle region)
IMarkerSelectionModel
setLastSelectedRegion
in interface IMarkerSelectionModel
region
- the last selection position regionpublic void setLastSelectedRegion(int x, int y, int width, int height)
IMarkerSelectionModel
setLastSelectedRegion
in interface IMarkerSelectionModel
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |