|
||||||||||
| 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 ISelectionModelpublic void setMultipleSelectionAllowed(boolean multipleSelectionAllowed)
ISelectionModel
setMultipleSelectionAllowed in interface ISelectionModelmultipleSelectionAllowed - whether multiple cells can be selected simultaneously
public void addSelection(int columnPosition,
int rowPosition)
ISelectionModel
addSelection in interface ISelectionModelcolumnPosition - 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 ISelectionModelrange - the position based area to selectpublic void clearSelection()
ISelectionModel
clearSelection in interface ISelectionModel
public void clearSelection(int columnPosition,
int rowPosition)
ISelectionModel
clearSelection in interface ISelectionModelcolumnPosition - 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 ISelectionModelremovedSelection - the position based area to deselectpublic boolean isEmpty()
ISelectionModel
isEmpty in interface ISelectionModelpublic List<org.eclipse.swt.graphics.Rectangle> getSelections()
ISelectionModel
getSelections in interface ISelectionModel
public boolean isCellPositionSelected(int columnPosition,
int rowPosition)
ISelectionModel
isCellPositionSelected in interface ISelectionModelcolumnPosition - column position of the cell to inspectrowPosition - row position of the cell to inspect
public int[] getSelectedColumnPositions()
ISelectionModel
getSelectedColumnPositions in interface ISelectionModelpublic boolean isColumnPositionSelected(int columnPosition)
ISelectionModel
isColumnPositionSelected in interface ISelectionModelcolumnPosition - column position to inspect
public int[] getFullySelectedColumnPositions(int columnHeight)
getFullySelectedColumnPositions in interface ISelectionModelcolumnHeight - the number of rows in a fully selected column
public boolean isColumnPositionFullySelected(int columnPosition,
int columnHeight)
isColumnPositionFullySelected in interface ISelectionModelcolumnHeight - the number of rows in a fully selected columnpublic int getSelectedRowCount()
ISelectionModel
getSelectedRowCount in interface ISelectionModelpublic Set<Range> getSelectedRowPositions()
ISelectionModel
getSelectedRowPositions in interface ISelectionModelpublic boolean isRowPositionSelected(int rowPosition)
ISelectionModel
isRowPositionSelected in interface ISelectionModelrowPosition - row position to inspect
public int[] getFullySelectedRowPositions(int rowWidth)
getFullySelectedRowPositions in interface ISelectionModelrowWidth - the number of columns in a fully selected row
public boolean isRowPositionFullySelected(int rowPosition,
int rowWidth)
isRowPositionFullySelected in interface ISelectionModelpublic org.eclipse.swt.graphics.Point getSelectionAnchor()
getSelectionAnchor in interface IMarkerSelectionModelpublic org.eclipse.swt.graphics.Point getLastSelectedCell()
getLastSelectedCell in interface IMarkerSelectionModelpublic org.eclipse.swt.graphics.Rectangle getLastSelectedRegion()
getLastSelectedRegion in interface IMarkerSelectionModelpublic void setSelectionAnchor(org.eclipse.swt.graphics.Point anchor)
setSelectionAnchor in interface IMarkerSelectionModelanchor - coordinate of the anchorpublic void setLastSelectedCell(org.eclipse.swt.graphics.Point lastSelectedCell)
setLastSelectedCell in interface IMarkerSelectionModellastSelectedCell - coordinate of the last selectedpublic void setLastSelectedRegion(org.eclipse.swt.graphics.Rectangle region)
IMarkerSelectionModel
setLastSelectedRegion in interface IMarkerSelectionModelregion - the last selection position region
public void setLastSelectedRegion(int x,
int y,
int width,
int height)
IMarkerSelectionModel
setLastSelectedRegion in interface IMarkerSelectionModelx - 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 | |||||||||