Packagecom.yworks.yfiles.layout
Classpublic class EdgeLabelLayoutImpl
InheritanceEdgeLabelLayoutImpl Inheritance LabelLayoutImpl Inheritance YObject Inheritance Object
Implements EdgeLabelLayout

This class is an default implementation of the EdgeLabelLayout interface.



Public Properties
 PropertyDefined By
 Inheritedbox : YRectangle
Specifies the bounding box of the label.
LabelLayoutImpl
  edgeLabelModel : EdgeLabelModel
[write-only] Sets the edge label model associated with this label layout
EdgeLabelLayoutImpl
  labelModel : EdgeLabelModel
[read-only] Returns the edge label model associated with this label layout
EdgeLabelLayoutImpl
 InheritedmodelParameter : Object
Specifies the label model parameter that describes the position of this label.
LabelLayoutImpl
 InheritedorientedBox : YOrientedRectangle
LabelLayoutImpl
  preferredPlacement : int
Specifies the preferred placement of this label
EdgeLabelLayoutImpl
  preferredPlacementDescriptor : PreferredPlacementDescriptor
Specifies the preferred placement of this label.
EdgeLabelLayoutImpl
Public Methods
 MethodDefined By
  
EdgeLabelLayoutImpl(init:Boolean = true)
Initializes a new EdgeLabelLayoutImpl instance.
EdgeLabelLayoutImpl
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
EdgeLabelLayoutImpl
 Inherited
hashCode():int
YObject
  
[static] Initializes a new EdgeLabelLayoutImpl instance.
EdgeLabelLayoutImpl
 Inherited
[static]
LabelLayoutImpl
Protected Methods
 MethodDefined By
  
Initializes this object.
EdgeLabelLayoutImpl
 Inherited
LabelLayoutImpl
Property Detail
edgeLabelModelproperty
edgeLabelModel:EdgeLabelModel  [write-only]

Sets the edge label model associated with this label layout


Implementation
    public function set edgeLabelModel(value:EdgeLabelModel):void
labelModelproperty 
labelModel:EdgeLabelModel  [read-only]

Returns the edge label model associated with this label layout


Implementation
    public function get labelModel():EdgeLabelModel
preferredPlacementproperty 
preferredPlacement:int

Specifies the preferred placement of this label


Implementation
    public function get preferredPlacement():int
    public function set preferredPlacement(value:int):void
preferredPlacementDescriptorproperty 
preferredPlacementDescriptor:PreferredPlacementDescriptor

Specifies the preferred placement of this label.


Implementation
    public function get preferredPlacementDescriptor():PreferredPlacementDescriptor
    public function set preferredPlacementDescriptor(value:PreferredPlacementDescriptor):void

Throws
IllegalArgumentException — if the specified descriptor is null.
Constructor Detail
EdgeLabelLayoutImpl()Constructor
public function EdgeLabelLayoutImpl(init:Boolean = true)

Initializes a new EdgeLabelLayoutImpl instance.

Parameters
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
getClass()method
override public function getClass():Class

Returns
Class
initEdgeLabelLayoutImpl()method 
protected final function initEdgeLabelLayoutImpl():void

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

See also

newEdgeLabelLayoutImpl()method 
public static function newEdgeLabelLayoutImpl():EdgeLabelLayoutImpl

Initializes a new EdgeLabelLayoutImpl instance.

Returns
EdgeLabelLayoutImpl