Packagecom.yworks.yfiles.layout.multipage
Classpublic class DefaultElementFactory
InheritanceDefaultElementFactory Inheritance YObject Inheritance Object
Implements ElementFactory

Default implementation of an ElementFactory.

See also

com.yworks.yfiles.layout.multipage.ElementFactory


Public Methods
 MethodDefined By
  
DefaultElementFactory(init:Boolean = true)
DefaultElementFactory
  
createConnectorEdge(context:LayoutContext, connector:Node, opposite:Node, origEdgeId:Object, atTarget:Boolean):Edge
DefaultElementFactory
  
createConnectorNode(context:LayoutContext, edgeIds:YList, representedNodeId:Object):Node
DefaultElementFactory
  
createProxyEdge(context:LayoutContext, proxyNode:Node, opposite:Node, replacingEdgeId:Object, origNodeId:Object):Edge
DefaultElementFactory
  
createProxyNode(context:LayoutContext, origNodeId:Object):Node
DefaultElementFactory
  
createProxyReferenceEdge(context:LayoutContext, proxyReference:Node, opposite:Node, referencingCopyId:Object):Edge
DefaultElementFactory
  
createProxyReferenceNode(context:LayoutContext, referringProxyId:Object):Node
DefaultElementFactory
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
DefaultElementFactory
 Inherited
hashCode():int
YObject
  
[static]
DefaultElementFactory
Protected Methods
 MethodDefined By
  
getDefaultNodeSize(context:LayoutContext, id:Object, type:int):YDimension
Returns the default size for nodes created by this factory.
DefaultElementFactory
  
DefaultElementFactory
Constructor Detail
DefaultElementFactory()Constructor
public function DefaultElementFactory(init:Boolean = true)



Parameters
init:Boolean (default = true)
Method Detail
createConnectorEdge()method
public function createConnectorEdge(context:LayoutContext, connector:Node, opposite:Node, origEdgeId:Object, atTarget:Boolean):Edge

Parameters

context:LayoutContext
 
connector:Node
 
opposite:Node
 
origEdgeId:Object
 
atTarget:Boolean

Returns
Edge
createConnectorNode()method 
public function createConnectorNode(context:LayoutContext, edgeIds:YList, representedNodeId:Object):Node

Parameters

context:LayoutContext
 
edgeIds:YList
 
representedNodeId:Object

Returns
Node
createProxyEdge()method 
public function createProxyEdge(context:LayoutContext, proxyNode:Node, opposite:Node, replacingEdgeId:Object, origNodeId:Object):Edge

Parameters

context:LayoutContext
 
proxyNode:Node
 
opposite:Node
 
replacingEdgeId:Object
 
origNodeId:Object

Returns
Edge
createProxyNode()method 
public function createProxyNode(context:LayoutContext, origNodeId:Object):Node

Parameters

context:LayoutContext
 
origNodeId:Object

Returns
Node
createProxyReferenceEdge()method 
public function createProxyReferenceEdge(context:LayoutContext, proxyReference:Node, opposite:Node, referencingCopyId:Object):Edge

Parameters

context:LayoutContext
 
proxyReference:Node
 
opposite:Node
 
referencingCopyId:Object

Returns
Edge
createProxyReferenceNode()method 
public function createProxyReferenceNode(context:LayoutContext, referringProxyId:Object):Node

Parameters

context:LayoutContext
 
referringProxyId:Object

Returns
Node
getClass()method 
override public function getClass():Class

Returns
Class
getDefaultNodeSize()method 
protected function getDefaultNodeSize(context:LayoutContext, id:Object, type:int):YDimension

Returns the default size for nodes created by this factory. Called from createConnectorNode(), createProxyReferenceNode(), and/or createProxyNode(). Must return a non-null size with positive width and height.

Parameters

context:LayoutContext — an object providing relevant layout information, e.g., the current graph as well as various information about the graph elements.
 
id:Object — the element ID that was passed to the calling create method.
 
type:int — the type of node to be created.

Returns
YDimension — the default size of the new node.

See also

initDefaultElementFactory()method 
protected final function initDefaultElementFactory():void

newDefaultElementFactory()method 
public static function newDefaultElementFactory():DefaultElementFactory

Returns
DefaultElementFactory