Package | com.yworks.graph.drawing |
Interface | public interface IShapeGeometry |
Implementors | AbstractNodeStyleRenderer, VoidShapeGeometry |
Method | Defined 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 |
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 .
|
Boolean — Whether an intersection was found.
|
getOutline | () | method |
public function getOutline():GeneralPath
Returns the outline of the shape or null
.
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.
|
Boolean — True if the point lies within the shape.
|