Packagecom.yworks.graph.drawing
Interfacepublic interface IShapeGeometry
Implementors AbstractNodeStyleRenderer, VoidShapeGeometry

Interface that describes the geometry of a shape which has an interior and an exterior.



Public Methods
 MethodDefined By
  
getIntersection(innerX:Number, innerY:Number, outerX:Number, outerY:Number, intersectionPoint:IPointSetter):Boolean
Returns the intersection for the given line with this shape's geometry.
IShapeGeometry
  
Returns the outline of the shape or null.
IShapeGeometry
  
isInside(x:Number, y:Number):Boolean
Checks whether the given coordinate is deemed to lie within the shape's geometric bounds.
IShapeGeometry
Method Detail
getIntersection()method
public function getIntersection(innerX:Number, innerY:Number, outerX:Number, outerY:Number, intersectionPoint:IPointSetter):Boolean

Returns the intersection for the given line with this shape's geometry.

Parameters

innerX:Number — The X coordinate of the first point of the line that is inside the shape.
 
innerY:Number — The Y coordinate of the first point of the line that is inside the shape.
 
outerX:Number — The X coordinate of the second point of the line that is outside the shape.
 
outerY:Number — The Y coordinate of the second point of the line that is outside the shape.
 
intersectionPoint:IPointSetter — The intersection point that is set if this method returns true.

Returns
Boolean — Whether an intersection was found.
getOutline()method 
public function getOutline():GeneralPath

Returns the outline of the shape or null.

Returns
GeneralPath — The outline or null if no outline can be provided.
isInside()method 
public function isInside(x:Number, y:Number):Boolean

Checks whether the given coordinate is deemed to lie within the shape's geometric bounds.

Parameters

x:Number — The x coordinate to test.
 
y:Number — The y coordinate to test.

Returns
Boolean — True if the point lies within the shape.