|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface TableGroupNodeRealizer.Table
Stores the top-level columns and rows of a
TableGroupNodeRealizer
and provides methods for finding
columns and rows according to contained nodes or coordinates as well
as methods to move a node into a column or row.
Method Summary | |
---|---|
TableGroupNodeRealizer.Column |
columnAt(double x,
double y)
Returns the innermost column that contains the specified point or null if no column in the table's model contains the specified
point. |
TableGroupNodeRealizer.Column |
getColumn(Node node)
Returns the (innermost) column that contains the specified node's center or null if no column in the table's model contains the
specified node's center. |
YInsets |
getInsets()
Returns the insets of the table. |
TableGroupNodeRealizer |
getRealizer()
Returns the node realizer to which the table belongs. |
TableGroupNodeRealizer.Row |
getRow(Node node)
Returns the (innermost) row that contains the specified node's center or null if no row in the table's model contains the specified
node's center. |
void |
moveToColumn(Node node,
TableGroupNodeRealizer.Column column)
Moves the specified node to the specified column. |
void |
moveToRow(Node node,
TableGroupNodeRealizer.Row row)
Moves the specified node to the specified row. |
TableGroupNodeRealizer.Row |
rowAt(double x,
double y)
Returns the innermost row that contains the specified point or null if no row in the table's model contains the specified
point. |
java.util.Collection |
selectedColumns()
Returns all of the currently selected columns. |
java.util.Collection |
selectedRows()
Returns all of the currently selected rows. |
void |
setInsets(YInsets insets)
Sets the insets for the table. |
Methods inherited from interface y.view.tabular.TableGroupNodeRealizer.RowContainer |
---|
addRow, addRow, getRow, getRows, rowCount |
Methods inherited from interface y.view.tabular.TableGroupNodeRealizer.ColumnContainer |
---|
addColumn, addColumn, columnCount, getColumn, getColumns |
Method Detail |
---|
TableGroupNodeRealizer getRealizer()
TableGroupNodeRealizer.Row rowAt(double x, double y)
null
if no row in the table's model contains the specified
point.
x
- the x-coordinate of the point to encompass.y
- the y-coordinate of the point to encompass.
null
if no row in the table's model contains the specified
point.TableGroupNodeRealizer.Row getRow(Node node)
null
if no row in the table's model contains the specified
node's center.
node
- the Node
for which the containing row
is to be determined
null
if there is no such row.
java.lang.IllegalArgumentException
- if
null
, or
java.lang.IllegalStateException
- if the realizer to which the table belongs
is not bound to any node.void moveToRow(Node node, TableGroupNodeRealizer.Row row)
The specified row may not contain any child columns.
node
- the Node
to be moved.row
- the Row
to which to move the node.
java.lang.IllegalArgumentException
- if
java.lang.IllegalStateException
- if the realizer to which the specified
row belongs is not bound to any node.java.util.Collection selectedRows()
TableGroupNodeRealizer.Column columnAt(double x, double y)
null
if no column in the table's model contains the specified
point.
x
- the x-coordinate of the point to encompass.y
- the y-coordinate of the point to encompass.
null
if no column in the table's model contains the specified
point.TableGroupNodeRealizer.Column getColumn(Node node)
null
if no column in the table's model contains the
specified node's center.
node
- the Node
for which the containing column
is to be determined
null
if there is no such column.
java.lang.IllegalArgumentException
- if
null
, or
java.lang.IllegalStateException
- if the realizer to which the table belongs
is not bound to any node.void moveToColumn(Node node, TableGroupNodeRealizer.Column column)
The specified column may not contain any child columns.
node
- the Node
to be moved.column
- the Column
to which to move the node.
java.lang.IllegalArgumentException
- if
java.lang.IllegalStateException
- if the realizer to which the specified
column belongs is not bound to any node.java.util.Collection selectedColumns()
void setInsets(YInsets insets)
null
, a zero insets
object, i.e. an instance with top
, left
,
bottom
, and right
all being 0
will be used instead.
Specified insets should never contain negative values; if they do
the table behavior is undefined.
insets
- the new table insets.getInsets()
YInsets getInsets()
setInsets(y.geom.YInsets)
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |