public final class VoidShapeGeometry extends Object implements IShapeGeometry
IShapeGeometry
interface that does nothing and behaves like an empty geometry.
This class implements the singleton pattern. Use the shared static INSTANCE
of this class instead of null
were null
is not allowed. The VoidNodeStyleRenderer
does so for example.
Modifier and Type | Field and Description |
---|---|
static VoidShapeGeometry |
INSTANCE
The
VoidShapeGeometry singleton. |
Modifier and Type | Method and Description |
---|---|
static VoidShapeGeometry |
getInstance()
Returns the
com.yworks.yfiles.common.drawing.VoidShapeGeometry singleton. |
PointD |
getIntersection(PointD inner,
PointD outer)
This implementation always returns
null . |
GeneralPath |
getOutline()
This implementation returns an empty path.
|
boolean |
isInside(PointD location)
This implementation always returns
false . |
public static final VoidShapeGeometry INSTANCE
VoidShapeGeometry
singleton.public static VoidShapeGeometry getInstance()
com.yworks.yfiles.common.drawing.VoidShapeGeometry
singleton.com.yworks.yfiles.common.drawing.VoidShapeGeometry
singleton.public final PointD getIntersection(PointD inner, PointD outer)
null
.getIntersection
in interface IShapeGeometry
inner
- The first point of the line that is inside the shape.outer
- The second point of the line that is outside the shape.null
.IShapeGeometry.getIntersection(PointD, PointD)
public final GeneralPath getOutline()
This means that the outline never intersects any line or contains any point.
getOutline
in interface IShapeGeometry
IShapeGeometry.getOutline()
public final boolean isInside(PointD location)
false
.isInside
in interface IShapeGeometry
location
- The point to test.false
IShapeGeometry.isInside(PointD)