Packagecom.kapit.diagram.view
Classpublic class AnchorPoint
ImplementsIDiagramElement



Public Properties
 PropertyDefined by
  dataobjectid : String
AnchorPoint
  did : String
The diagram unique identifier of this AnchorPoint.
AnchorPoint
  globalx : Number
[read-only] The global x coordinate of this AnchorPoint.
AnchorPoint
  globaly : Number
[read-only] The global y coordinate of this AnchorPoint.
AnchorPoint
  master : DiagramObject
[read-only] The master object to which this AnchorPoint is used to anchor a target object.
AnchorPoint
  target : DiagramObject
The target object that this AnchorPoint is used to anchor to a master object.
AnchorPoint
  view : DiagramView
[read-only]
AnchorPoint
  x : Number
The horizontal coordinate of this AnchorPoint.
AnchorPoint
  y : Number
The vertical coordinate of this AnchorPoint.
AnchorPoint
Protected Properties
 PropertyDefined by
  _dx : Number = 0
Horizontal coordinate of this AnchorPoint.
AnchorPoint
  _dy : Number = 0
Vertical coordinate of this AnchorPoint.
AnchorPoint
  _master : DiagramObject
Master DiagramObject of this AnchorPoint.
AnchorPoint
  _target : DiagramObject
Target DiagramObject of this AnchorPoint.
AnchorPoint
  __targetid : String
ID of Target DiagramObject of this AnchorPoint.
AnchorPoint
Public Methods
 MethodDefined by
  
Creates a new AnchorPoint instance having master as master component.
AnchorPoint
  
activateUI(a:Boolean):void
Activates or deactivates this AnchorPoint.
AnchorPoint
  
checkTagName(xml:XML):Boolean
Checks if an XML object tag name is equal to this AnchorPoint tag name.
AnchorPoint
  
fromXML(xml:XML):void
Parses this AnchorPoint from an XML object.
AnchorPoint
  
getTagName():String
Returns This AnchorPoint tagname equal to "anchor".
AnchorPoint
  
Redraws this AnchorPoint when library styles and assets change given a SVGAssetLibraryEvent.
AnchorPoint
  
Removes this AnchorPoint from its target object by calling its masterRemoved() method.
AnchorPoint
  
masterSizing(newrect:Rectangle, oldrect:Rectangle):void
Inflicts the change of master DiagramObject size (Height and Width) on the position of this AnchorPoint.
AnchorPoint
  
AnchorPoint
  
Removes this AnchorPoint from its master object by calling its anchorRemoved() method.
AnchorPoint
  
toXML():XML
Writes this AnchorPoint into an XML object.
AnchorPoint
  
unlink():void
Removes this AnchorPoint from its master and target objects by calling the master anchorRemoved() and the target masterRemoved() methods.
AnchorPoint
  
updateTarget(scaleX:Number = 1, scaleY:Number = 1):void
Updates the target object of this AnchorPoint by calling its masterAnchorPointUpdated() method.
AnchorPoint
Property detail
dataobjectidproperty
dataobjectid:String  [read-write]Implementation
    public function get dataobjectid():String
    public function set dataobjectid(value:String):void
didproperty 
did:String  [read-write]

The diagram unique identifier of this AnchorPoint.

Implementation
    public function get did():String
    public function set did(value:String):void
_dxproperty 
protected var _dx:Number = 0

Horizontal coordinate of this AnchorPoint.

_dyproperty 
protected var _dy:Number = 0

Vertical coordinate of this AnchorPoint.

globalxproperty 
globalx:Number  [read-only]

The global x coordinate of this AnchorPoint.

Implementation
    public function get globalx():Number
globalyproperty 
globaly:Number  [read-only]

The global y coordinate of this AnchorPoint.

Implementation
    public function get globaly():Number
_masterproperty 
protected var _master:DiagramObject

Master DiagramObject of this AnchorPoint.

masterproperty 
master:DiagramObject  [read-only]

The master object to which this AnchorPoint is used to anchor a target object.

Implementation
    public function get master():DiagramObject
_targetproperty 
protected var _target:DiagramObject

Target DiagramObject of this AnchorPoint.

targetproperty 
target:DiagramObject  [read-write]

The target object that this AnchorPoint is used to anchor to a master object.

Implementation
    public function get target():DiagramObject
    public function set target(value:DiagramObject):void
__targetidproperty 
protected var __targetid:String

ID of Target DiagramObject of this AnchorPoint.

viewproperty 
view:DiagramView  [read-only]Implementation
    public function get view():DiagramView
xproperty 
x:Number  [read-write]

The horizontal coordinate of this AnchorPoint.

Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number  [read-write]

The vertical coordinate of this AnchorPoint.

Implementation
    public function get y():Number
    public function set y(value:Number):void
Constructor detail
AnchorPoint()constructor
public function AnchorPoint(master:DiagramObject)

Creates a new AnchorPoint instance having master as master component.

Parameters
master:DiagramObject — The master component of this AnchorPoint instance.
Method detail
activateUI()method
public function activateUI(a:Boolean):void

Activates or deactivates this AnchorPoint. An activated AnchorPoint interacts with mouse events and a deactivated one doesn't.

Parameters
a:Boolean — The desired value of the AnchorPoint active status.
checkTagName()method 
public function checkTagName(xml:XML):Boolean

Checks if an XML object tag name is equal to this AnchorPoint tag name.

Parameters
xml:XML — The XML object to verify.

Returns
Booleantrue if the XML object tag name matches this AnchorPoint tag name and false otherwise.
fromXML()method 
public function fromXML(xml:XML):void

Parses this AnchorPoint from an XML object.

Parameters
xml:XML — An XML object represeting this AnchorPoint.
getTagName()method 
public function getTagName():String

Returns This AnchorPoint tagname equal to "anchor".

Returns
String — Anchor tagname.
libraryStylesChanged()method 
public function libraryStylesChanged(event:SVGAssetLibraryEvent):void

Redraws this AnchorPoint when library styles and assets change given a SVGAssetLibraryEvent.

Parameters
event:SVGAssetLibraryEvent — SVGAssetLibraryEvent telling a change in asset library properties.
masterRemoved()method 
public function masterRemoved():void

Removes this AnchorPoint from its target object by calling its masterRemoved() method.

masterSizing()method 
public function masterSizing(newrect:Rectangle, oldrect:Rectangle):void

Inflicts the change of master DiagramObject size (Height and Width) on the position of this AnchorPoint. The change is inflicted given the old and new master DiagramObject size.

Parameters
newrect:Rectangle — New size of the master DiagramObject.
 
oldrect:Rectangle — Old size of the master DiagramObject.
syncReferences()method 
public function syncReferences():void
targetRemoved()method 
public function targetRemoved():void

Removes this AnchorPoint from its master object by calling its anchorRemoved() method.

toXML()method 
public function toXML():XML

Writes this AnchorPoint into an XML object.

Returns
XML — An XML object representing this AnchorPoint.
unlink()method 
public function unlink():void

Removes this AnchorPoint from its master and target objects by calling the master anchorRemoved() and the target masterRemoved() methods.

updateTarget()method 
public function updateTarget(scaleX:Number = 1, scaleY:Number = 1):void

Updates the target object of this AnchorPoint by calling its masterAnchorPointUpdated() method.

Parameters
scaleX:Number (default = 1)
 
scaleY:Number (default = 1)