Packagecom.yworks.graph.model
Classpublic class DefaultColumn
InheritanceDefaultColumn Inheritance com.yworks.graph.model.Stripe
Implements IColumn, com.yworks.graph.model.IInnerLookup, IMarkupExtensionFactory

Default implementation of the IColumn interface.

This is the implementation used by Table.

See also

IColumn
Table


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

Returns the child columns.

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


Implementation
    public function get columns():Iterable
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:IColumn  [read-only]

Returns the parent of this column.

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


Implementation
    public function get owner():IColumn
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