Packagecom.yworks.yfiles.layout
Classpublic class EdgeOppositeNodeLabelLayoutModel
InheritanceEdgeOppositeNodeLabelLayoutModel Inheritance YObject Inheritance Object
Implements NodeLabelModel

A node label model that sets the labels at the opposite side of the outgoing edges of a node.



Public Properties
 PropertyDefined By
  defaultParameter : Object
[read-only] Returns the default position, this is offset (0,0)
EdgeOppositeNodeLabelLayoutModel
Public Methods
 MethodDefined By
  
EdgeOppositeNodeLabelLayoutModel
  
createModelParameter(labelBounds:YOrientedRectangle, nodeLayout:NodeLayout):Object
EdgeOppositeNodeLabelLayoutModel
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
EdgeOppositeNodeLabelLayoutModel
  
Returns a list of candidate positions for the label.
EdgeOppositeNodeLabelLayoutModel
  
getLabelPlacement(labelSize:YDimension, nodeLayout:NodeLayout, param:Object):YOrientedRectangle
Returns the oriented position and bounds for a label of the specified size.
EdgeOppositeNodeLabelLayoutModel
 Inherited
hashCode():int
YObject
  
[static]
EdgeOppositeNodeLabelLayoutModel
Protected Methods
 MethodDefined By
  
Initializes this object.
EdgeOppositeNodeLabelLayoutModel
Property Detail
defaultParameterproperty
defaultParameter:Object  [read-only]

Returns the default position, this is offset (0,0)


Implementation
    public function get defaultParameter():Object
Constructor Detail
EdgeOppositeNodeLabelLayoutModel()Constructor
public function EdgeOppositeNodeLabelLayoutModel(g:LayoutGraph, n:Node, init:Boolean = true)

Parameters
g:LayoutGraph
 
n:Node
 
init:Boolean (default = true) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods. This parameter can safely be ignored/omitted when calling the constructor.
Method Detail
createModelParameter()method
public function createModelParameter(labelBounds:YOrientedRectangle, nodeLayout:NodeLayout):Object

Parameters

labelBounds:YOrientedRectangle
 
nodeLayout:NodeLayout

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

Returns
Class
getLabelCandidates()method 
public function getLabelCandidates(nl:NodeLabelLayout, nodeLayout:NodeLayout):YList

Returns a list of candidate positions for the label. The list consists of exactly one position.

Parameters

nl:NodeLabelLayout
 
nodeLayout:NodeLayout

Returns
YList
getLabelPlacement()method 
public function getLabelPlacement(labelSize:YDimension, nodeLayout:NodeLayout, param:Object):YOrientedRectangle

Returns the oriented position and bounds for a label of the specified size.

Parameters

labelSize:YDimension — the size of the label.
 
nodeLayout:NodeLayout — the geometric description of the labeled node.
 
param:Object — not used by this model

Returns
YOrientedRectangle
initEdgeOppositeNodeLabelLayoutModel()method 
protected final function initEdgeOppositeNodeLabelLayoutModel(g:LayoutGraph, n:Node):void

Initializes this object. See the documentation of the corresponding factory method newEdgeOppositeNodeLabelLayoutModel() for details.

Parameters

g:LayoutGraph
 
n:Node

See also

newEdgeOppositeNodeLabelLayoutModel()method 
public static function newEdgeOppositeNodeLabelLayoutModel(g:LayoutGraph, n:Node):EdgeOppositeNodeLabelLayoutModel

Parameters

g:LayoutGraph
 
n:Node

Returns
EdgeOppositeNodeLabelLayoutModel