| Package | com.yworks.graph.model |
| Class | public class DefaultBend |
| Inheritance | DefaultBend AbstractModelItem |
| Implements | IBend |
IBend
interface that can be used stand-alone.
| Property | Defined 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new bend using the given owner and a default location.
| DefaultBend | ||
![]() |
Returns the currently set
ILookup delegate. | AbstractModelItem | |
|
lookup(type:Class):Object
Simple lookup implementation that tries to find a registered lookup.
| DefaultBend | ||
![]() |
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 | |
![]() |
setLookupImplementation(newLookup:ILookup):void
Sets the
ILookup implementation used for
lookup calls on this instance. | AbstractModelItem | |
|
toString():String
| DefaultBend | ||
| location | property |
location:IPoint [read-write]Implementation
public function get location():IPoint
public function set location(value:IPoint):void
| owner | property |
owner:IEdge [read-only]Returns the edge this bend instance belongs to.
This implies that owner.bends contains this instance.
public function get owner():IEdge
| x | property |
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
| y | property |
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
| 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.
Parametersowner: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.
|
| 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:
registerLookup.this is returned if it can be casted to the given type.null is returned.type:Class — The query type
|
Object — An implementation of type or null.
|
| toString | () | method |
public function toString():StringReturns
String |