public class MatrixSelection extends Selection
| Modifier and Type | Field and Description |
|---|---|
static int |
SELECTION_MODE_COLUMN |
static int |
SELECTION_MODE_NORMAL |
static int |
SELECTION_MODE_ROW |
| Constructor and Description |
|---|
MatrixSelection()
Constructs a MatrixSelection instance with no selection state.
|
MatrixSelection(int aiMatrixID,
int aiSelectionMode,
int aiColumnIndexAnchor,
int aiRowIndexAnchor,
int aiColumnIndexLead,
int aiRowIndexLead)
Constructs a MatrixSelection instance using integer and point arguments.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a clone of this MatrixSelection object.
|
boolean |
containsCell(int aiColumnIndex,
int aiRowIndex)
Determine whether the selection contains the specified cell.
|
boolean |
containsColumn(int aiColumnIndex)
Determine whether the selection contains the specified column.
|
boolean |
containsRow(int aiRowIndex)
Determine whether the selection contains the specified row.
|
boolean |
equals(java.lang.Object aObjectSelection)
Determines whether the given MatrixSelection instance is logically equivalent to this one.
|
int |
getAnchorColumn()
Returns the anchor column index.
|
int |
getAnchorRow()
Returns the anchor row index.
|
int |
getColumnCount()
Returns a count of the number of columns selected.
|
int |
getFirstColumn()
Returns the index of the first column of the selected range.
|
int |
getFirstRow()
Returns the index of the first row of the selected range.
|
int |
getLastColumn()
Returns the index of the last column of the selected range.
|
int |
getLastRow()
Returns the index of the last row of the selected range.
|
int |
getLeadColumn()
Returns the lead column index.
|
int |
getLeadRow()
Returns the lead row index.
|
int |
getMatrixID()
Returns the matrix identifier.
|
int |
getRowCount()
Returns a count of the number of rows selected.
|
int |
getSelectionMode()
Returns the selection mode
|
boolean |
isValid()
Is selection valid?
|
java.lang.String |
toString()
Renders the selection state as a string.
|
public static final int SELECTION_MODE_NORMAL
public static final int SELECTION_MODE_ROW
public static final int SELECTION_MODE_COLUMN
public MatrixSelection()
public MatrixSelection(int aiMatrixID,
int aiSelectionMode,
int aiColumnIndexAnchor,
int aiRowIndexAnchor,
int aiColumnIndexLead,
int aiRowIndexLead)
aiMatrixID - Matrix ID.aiSelectionMode - Selection mode.aiColumnIndexAnchor - Anchor column index.aiRowIndexAnchor - Anchor row index.aiColumnIndexLead - Lead column index.aiRowIndexLead - Lead row index.public java.lang.Object clone()
public boolean containsCell(int aiColumnIndex,
int aiRowIndex)
aiColumnIndex - Column index.aiRowIndex - Row index.true if this MatrixSelection contains the specified cell.public boolean containsColumn(int aiColumnIndex)
aiColumnIndex - Column index.true if this MatrixSelection contains the specified column.public boolean containsRow(int aiRowIndex)
aiRowIndex - Row index index.true if this MatrixSelection contains the specified row.public boolean equals(java.lang.Object aObjectSelection)
equals in class java.lang.ObjectaObjectSelection - Selection instance.true if the specified MatrixSelection matches the receiver.public int getAnchorColumn()
public int getAnchorRow()
public int getColumnCount()
public int getFirstColumn()
public int getFirstRow()
public int getLastColumn()
public int getLastRow()
public int getLeadColumn()
public int getLeadRow()
public int getMatrixID()
public int getRowCount()
public int getSelectionMode()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005-2016 Progress Software Corporation and/or its subsidiaries and affiliates. All rights reserved.