Packagecom.yworks.graph.drawing.common
Classpublic class VoidPathGeometry
InheritanceVoidPathGeometry Inheritance Object
Implements IPathGeometry

A void implementation of the IPathGeometry interface that does nothing and behaves like an empty path.

This class implements the singleton pattern. Use the shared static instance of this class instead of null were null is not allowed. The VoidEdgeStyleRenderer does so for example.



Public Properties
 PropertyDefined By
  instance : VoidPathGeometry
[static] [read-only]
VoidPathGeometry
Public Methods
 MethodDefined By
  
VoidPathGeometry
  
VoidPathGeometry
  
getSegmentTangent(segment:int, ratio:Number, p:YPoint, v:YPoint):Boolean
VoidPathGeometry
  
getTangent(ratio:Number, p:YPoint, v:YPoint):Boolean
VoidPathGeometry
Property Detail
instanceproperty
instance:VoidPathGeometry  [read-only]


Implementation
    public static function get instance():VoidPathGeometry
Method Detail
getPath()method
public function getPath():GeneralPath

Returns
GeneralPath
getSegmentCount()method 
public function getSegmentCount():int

Returns
int
getSegmentTangent()method 
public function getSegmentTangent(segment:int, ratio:Number, p:YPoint, v:YPoint):Boolean

Parameters

segment:int
 
ratio:Number
 
p:YPoint
 
v:YPoint

Returns
Boolean
getTangent()method 
public function getTangent(ratio:Number, p:YPoint, v:YPoint):Boolean

Parameters

ratio:Number
 
p:YPoint
 
v:YPoint

Returns
Boolean