Packagecom.yworks.graph.model
Classpublic class DefaultRow
InheritanceDefaultRow Inheritance com.yworks.graph.model.Stripe
Implements IRow, com.yworks.graph.model.IInnerLookup, IMarkupExtensionFactory

Default implementation of the IRow interface.

This is the implementation used by Table.

See also

IRow
Table


Public Properties
 PropertyDefined By
  layout : IRectangle
[override] [read-only] A live view of the relative layout of the stripe.
DefaultRow
  owner : IRow
[read-only] Returns the parent of this row.
DefaultRow
  rows : Iterable
[read-only] Returns the child rows.
DefaultRow
  size : Number
[override] [read-only] The current changeable dimension of the stripe.
DefaultRow
Public Methods
 MethodDefined By
  
clone():Object
[override]
DefaultRow
  
Creates a markup extension that can be used instead of the original class.
DefaultRow
  
lookup(type:Class):Object
[override] Returns an instance that implements the given type or null.
DefaultRow
Protected Methods
 MethodDefined By
  
[override]
DefaultRow
Property Detail
layoutproperty
layout:IRectangle  [read-only] [override]

A live view of the relative layout of the stripe.

The layout of a stripe is a rectangle in the coordinate system that is relative to the upper left corner of the parent. Since this method will yield a live view, it is up to the client to copy the values of the instance if a snapshot of the state is needed.


Implementation
    public function get layout():IRectangle
ownerproperty 
owner:IRow  [read-only]

Returns the parent of this row.

In a table, each row has a parent, except for the hierarchy root (ITable.rootRow).


Implementation
    public function get owner():IRow
rowsproperty 
rows:Iterable  [read-only]

Returns the child rows.

This collection may be empty. Each entry in this collection has this instance as owner.


Implementation
    public function get rows():Iterable
sizeproperty 
size:Number  [read-only] [override]

The current changeable dimension of the stripe.

This is always the stripe size which is not implicitly determined by other stripes, i.e. the height for IRow instances and the width for IColumn instances.


Implementation
    public function get size():Number
Method Detail
clone()method
override public function clone():Object

Returns
Object
createClone()method 
override protected function createClone():IStripe

Returns
IStripe
createMarkupExtension()method 
public function createMarkupExtension(context:ILookup):MarkupExtension

Creates a markup extension that can be used instead of the original class.

Parameters

context:ILookup — The context that shall be considered when creating the markup extension.

Returns
MarkupExtension
lookup()method 
override public function lookup(type:Class):Object

Returns an instance that implements the given type or null.

Typically, this method will be called in order to obtain a different view or aspect of the current instance. This is quite similar to casting or using a super type or interface of this instance, but is not limited to inheritance or compile time constraints. An instance implementing this method is not required to return non-null implementations for the types, nor does it have to return the same instance any time. Also it depends on the type and context whether the instance returned stays up to date or needs to be reobtained for subsequent use.

Parameters

type:Class — the type for which an instance shall be returned

Returns
Object — an instance that is assignable to type or null