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

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

public class Row
extends Stripe
implements IMarkupExtensionFactory

Represents a row of a Table.


Constructor Summary
Row()
          Creates a new instance.
 
Method Summary
 void addRow(Row row)
          Adds the given row as child of this row.
 void addRow(Row row, int index)
          Adds the given row as child of this row.
 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.awt.geom.Rectangle2D.Double getLayout()
          Gets the bounding box of this row.
 Row getOwner()
          The parent row of this row.
 java.util.ArrayList getRows()
          A list of the nested child rows of this row.
 void setOwner(Row owner)
          Sets the parent row of this row.
 
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

Row

public Row()
Creates a new instance.

Method Detail

getOwner

public Row getOwner()
The parent row of this row.

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

Returns:
The parent row.

setOwner

public void setOwner(Row owner)
Sets the parent row of this row.

Adding the row with addRow always sets the parent stripe correctly.

Parameters:
owner - The parent row.

getRows

public java.util.ArrayList getRows()
A list of the nested child rows of this row.

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.

addRow

public void addRow(Row row)
Adds the given row as child of this row. Sets the new row's owner and table.

Parameters:
row - The row to add.

addRow

public void addRow(Row row,
                   int index)
Adds the given row as child of this row. Sets the new row's owner and table.

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

getLayout

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

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 row.


Copyright © 2000-2013 yWorks GmbH. All rights reserved