Packagecom.yworks.graph.model
Classpublic class DefaultBend
InheritanceDefaultBend Inheritance AbstractModelItem
ImplementsIBend

A simple mutable implementation of the IBend interface that can be used stand-alone.



Public Properties
 PropertyDefined by
  location : IPoint
DefaultBend
  owner : IEdge
[read-only] Returns the edge this bend instance belongs to.
DefaultBend
  x : Number
[read-only] Gets the current x coordinate of this point.
DefaultBend
  y : Number
[read-only] Gets the current y coordinate of this point.
DefaultBend
Protected Properties
 PropertyDefined by
 Inherited_lookupMap : IMapper
AbstractModelItem
Public Methods
 MethodDefined by
  
DefaultBend(owner:IEdge, location:IPoint = null, lookup:ILookup = null)
Creates a new bend using the given owner and a default location.
DefaultBend
 Inherited
Returns the currently set ILookup delegate.
AbstractModelItem
  
lookup(type:Class):Object
Simple lookup implementation that tries to find a registered lookup.
DefaultBend
 Inherited
registerLookup(type:Class, instance:Object):void
Register an implementation for the given type that should be returned when lookup is called with this given type.
AbstractModelItem
 Inherited
Sets the ILookup implementation used for lookup calls on this instance.
AbstractModelItem
  
toString():String
DefaultBend
Property detail
locationproperty
location:IPoint  [read-write]

Implementation
    public function get location():IPoint
    public function set location(value:IPoint):void
ownerproperty 
owner:IEdge  [read-only]

Returns the edge this bend instance belongs to.

This implies that owner.bends contains this instance.

Implementation
    public function get owner():IEdge
xproperty 
x:Number  [read-only]

Gets the current x coordinate of this point.

Depending on context the values returned may change over time.

Implementation
    public function get x():Number
yproperty 
y:Number  [read-only]

Gets the current y coordinate of this point.

Depending on context the values returned may change over time.

Implementation
    public function get y():Number
Constructor detail
DefaultBend()constructor
public function DefaultBend(owner:IEdge, location:IPoint = null, lookup:ILookup = null)

Creates a new bend using the given owner and a default location.

Parameters
owner:IEdge — The edge to create the bend on.
 
location:IPoint (default = null) — The location of the new bend.
 
lookup:ILookup (default = null) — The lookup delegate used by lookup(). If null, a DefaultBendLookup instance is used.
Method detail
lookup()method
public override function lookup(type:Class):Object

Simple lookup implementation that tries to find a registered lookup. If no such lookup is registered, returns this if this is assignable to the provided type.

This implementation tries to find an implementation of the given type in the following order:

Parameters
type:Class — The query type

Returns
Object — An implementation of type or null.
toString()method 
public function toString():String

Returns
String