I

IShapeGeometry

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

See Also

Developer's Guide

Demos

Adjust the node boundaries to parts of the node visualization that lie outside of the node bounds

Members

No filters for this type

Methods

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

Parameters

inner: Point
The first point of the line that is inside the shape.
outer: Point
The second point of the line that is outside the shape.

Return Value

Point
The coordinates of the intersection point, if an intersection was found.
Returns the outline of the shape or null.
If null is returned, callers may assume the canonical outline as result. For nodes, this is the node's layout.
abstract

Return Value

GeneralPath
The outline or null if no outline can be provided.
Checks whether the given coordinate is deemed to lie within the shape's geometric bounds.
abstract

Parameters

location: Point
The point to test.

Return Value

boolean
true if the point lies within the shape.

Constants

A void implementation of the IShapeGeometry interface that does nothing and behaves like an empty geometry.

Static Methods

Creates an implementation of the interface IShapeGeometry from the given definition.
The given object must contain exactly the abstract members of the IShapeGeometry interface. No member may be omitted and no additional members can be added. While additional custom members can later be added directly on the instance, this is discouraged.
static

Parameters

Return Value

IShapeGeometry
An instance of the IShapeGeometry interface based on the given definition.