Package | com.yworks.yfiles.layout.multipage |
Class | public class DefaultElementFactory |
Inheritance | DefaultElementFactory YObject Object |
Implements | ElementFactory |
See also
Method | Defined By | ||
---|---|---|---|
DefaultElementFactory(init:Boolean = true) | DefaultElementFactory | ||
createConnectorEdge(context:LayoutContext, connector:Node, opposite:Node, origEdgeId:Object, atTarget:Boolean):Edge | DefaultElementFactory | ||
DefaultElementFactory | |||
createProxyEdge(context:LayoutContext, proxyNode:Node, opposite:Node, replacingEdgeId:Object, origNodeId:Object):Edge | DefaultElementFactory | ||
DefaultElementFactory | |||
createProxyReferenceEdge(context:LayoutContext, proxyReference:Node, opposite:Node, referencingCopyId:Object):Edge | DefaultElementFactory | ||
DefaultElementFactory | |||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | DefaultElementFactory | ||
hashCode():int | YObject | ||
[static] | DefaultElementFactory |
Method | Defined By | ||
---|---|---|---|
Returns the default size for nodes created by this factory. | DefaultElementFactory | ||
initDefaultElementFactory():void | DefaultElementFactory |
DefaultElementFactory | () | Constructor |
public function DefaultElementFactory(init:Boolean = true)
init:Boolean (default = true )
|
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 |
Edge |
createConnectorNode | () | method |
public function createConnectorNode(context:LayoutContext, edgeIds:YList, representedNodeId:Object):Node
Parameters
context:LayoutContext | |
edgeIds:YList | |
representedNodeId:Object |
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 |
Edge |
createProxyNode | () | method |
public function createProxyNode(context:LayoutContext, origNodeId:Object):Node
Parameters
context:LayoutContext | |
origNodeId:Object |
Node |
createProxyReferenceEdge | () | method |
public function createProxyReferenceEdge(context:LayoutContext, proxyReference:Node, opposite:Node, referencingCopyId:Object):Edge
Parameters
context:LayoutContext | |
proxyReference:Node | |
opposite:Node | |
referencingCopyId:Object |
Edge |
createProxyReferenceNode | () | method |
public function createProxyReferenceNode(context:LayoutContext, referringProxyId:Object):Node
Parameters
context:LayoutContext | |
referringProxyId:Object |
Node |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
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.
|
YDimension — the default size of the new node.
|
See also
initDefaultElementFactory | () | method |
protected final function initDefaultElementFactory():void
newDefaultElementFactory | () | method |