com.yworks.yfiles.server.graphml.flexio.data
Class Column

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.Stripe
      extended bycom.yworks.yfiles.server.graphml.flexio.data.Column
All Implemented Interfaces:
IMarkupExtensionFactory

public class Column
extends Stripe
implements IMarkupExtensionFactory

Represents a column of a Table.


Constructor Summary
Column()
          Creates a new instance.
 
Method Summary
 void addColumn(Column column)
          Adds the given column as child of this column.
 void addColumn(Column column, int index)
          Adds the given column as child of this column.
 MarkupExtension createMarkupExtension(Lookup lookup)
          Creates a markup extension that can be used instead of the original class.
 java.util.ArrayList getChildren()
          Gets a list of this stripe's direct children.
 java.util.ArrayList getColumns()
          A list of the nested child columns of this column.
 java.awt.geom.Rectangle2D.Double getLayout()
          Gets the bounding box of this column.
 Column getOwner()
          The parent column of this column.
 void setOwner(Column owner)
          Sets the parent column of this column.
 
Methods inherited from class com.yworks.yfiles.server.graphml.flexio.data.Stripe
addLabel, addLabel, addLabel, getActualSize, getEffectiveMinSize, getInsets, getLabels, getLeaves, getMinimumSize, getSize, getStyle, getTable, setInsets, setMinimumSize, setSize, setStyle, setTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Column

public Column()
Creates a new instance.

Method Detail

getOwner

public Column getOwner()
The parent column of this column.

If this column is at the root level null is returned.

Returns:
The parent column.

setOwner

public void setOwner(Column owner)
Sets the parent column of this column.

Adding the column with addColumn always sets the parent stripe correctly.

Parameters:
owner - The parent column.

getColumns

public java.util.ArrayList getColumns()
A list of the nested child columns of this column.

Returns:
A list of the children.

getChildren

public java.util.ArrayList getChildren()
Description copied from class: Stripe
Gets a list of this stripe's direct children.

Subclasses have to override this method to return a list of their direct children.

Specified by:
getChildren in class Stripe
Returns:
A list of this stripe's children.

createMarkupExtension

public MarkupExtension createMarkupExtension(Lookup lookup)
Description copied from interface: IMarkupExtensionFactory
Creates a markup extension that can be used instead of the original class.

Specified by:
createMarkupExtension in interface IMarkupExtensionFactory
Parameters:
lookup - The lookup that shall be considered when creating the markup extension.

addColumn

public void addColumn(Column column)
Adds the given column as child of this column. Sets the new column's owner and table.

Parameters:
column - The column to add.

addColumn

public void addColumn(Column column,
                      int index)
Adds the given column as child of this column. Sets the new column's owner and table.

Parameters:
column - The column to add.
index - The position of the new column.

getLayout

public java.awt.geom.Rectangle2D.Double getLayout()
Gets the bounding box of this column.

The upper left corner of the bounding box is relative to the upper left corner of the node which is bound to this table.

Returns:
The bounding box of this column.


Copyright © 2000-2013 yWorks GmbH. All rights reserved