|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface TableGroupNodeRealizer.Column
A Column is a vertical stripe of a given
width within a node represented by a
TableGroupNodeRealizer.
A column can be created using the addColumn methods of a
ColumnContainer.
Client code should not hold onto instances of columns that have been removed from their container.
TableGroupNodeRealizer.ColumnContainer.addColumn(),
TableGroupNodeRealizer.ColumnContainer.addColumn(int)
| Method Summary | |
|---|---|
Rectangle2D |
calculateBounds()
Calculates the bounding box of the column. |
int |
getIndex()
Returns the position of the column in its container. |
YInsets |
getInsets()
Returns the insets of the column. |
double |
getMinimumWidth()
Returns the minimum width of the column. |
NodeList |
getNodes()
Returns a cursor over all nodes that lie inside the column. |
TableGroupNodeRealizer.ColumnContainer |
getParent()
Returns the container that holds the column. |
double |
getWidth()
Returns the width of the column. |
boolean |
isSelected()
Returns whether or not the column is selected. |
void |
remove()
Removes the column from its container. |
void |
setIndex(int index)
Move the column to the specified position in its container. |
void |
setInsets(YInsets insets)
Sets the insets for the column. |
void |
setMinimumWidth(double minimumWidth)
Specifies the minimum width for the column. |
void |
setParent(TableGroupNodeRealizer.ColumnContainer container)
Moves the column from its current container to the specified container. |
void |
setSelected(boolean selected)
Sets the selected state of the column. |
void |
setWidth(double width)
Specifies the width of the column. |
| Methods inherited from interface y.view.tabular.TableGroupNodeRealizer.ColumnContainer |
|---|
addColumn, addColumn, columnCount, getColumn, getColumns |
| Method Detail |
|---|
TableGroupNodeRealizer.ColumnContainer getParent()
setParent(y.view.tabular.TableGroupNodeRealizer.ColumnContainer)void setParent(TableGroupNodeRealizer.ColumnContainer container)
IllegalStateException - if the column has already been removed from
its container.
IllegalArgumentException - if the specified container is
null, the column is an ancestor of the specified container,
or if the specified container does belong to different
TableGroupNodeRealizer instance.container - the new container for the column.getParent()int getIndex()
-1 is
returned.
setIndex(int)void setIndex(int index)
IllegalStateException - if the column does not belong to any
container.index - the new position of the column.getIndex()void remove()
IllegalStateException - if the column does not belong to any
container or if it is the sole column of the table.NodeList getNodes()
boolean isSelected()
setSelected(boolean)void setSelected(boolean selected)
selected - the new selected state.isSelected()void setMinimumWidth(double minimumWidth)
minimumWidth - the new minimum width for the column.getMinimumWidth()double getMinimumWidth()
setMinimumWidth(double)void setWidth(double width)
width - the new width for the column.getWidth()double getWidth()
setWidth(double)Rectangle2D calculateBounds()
IllegalStateException - if the column has been removed from its
parent container.
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 column behavior is undefined.
insets - the new column insets.getInsets()YInsets getInsets()
setInsets(y.geom.YInsets)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||