Package | com.yworks.graph.model |
Class | public class DefaultRow |
Inheritance | DefaultRow com.yworks.graph.model.Stripe |
Implements | IRow, com.yworks.graph.model.IInnerLookup, IMarkupExtensionFactory |
IRow
interface.
This is the implementation used by Table
.
See also
Property | Defined 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 |
Method | Defined 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 |
Method | Defined By | ||
---|---|---|---|
[override] | DefaultRow |
layout | property |
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.
public function get layout():IRectangle
owner | property |
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
).
public function get owner():IRow
rows | property |
rows:Iterable
[read-only] Returns the child rows.
This collection may be empty. Each entry in this collection has this instance
as owner
.
public function get rows():Iterable
size | property |
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.
public function get size():Number
clone | () | method |
override public function clone():Object
Returns
Object |
createClone | () | method |
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.
|
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
|
Object — an instance that is assignable to type or null
|