Class AbstractShape
java.lang.Object
org.apache.sis.internal.referencing.j2d.AbstractShape
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
DecimatedShape,EmptyShape
Base class for some (not all) shape implementations in Apache SIS.
This base class provides a mechanism for determining if a shape stores
coordinate values as simple-precision or double-precision floating point numbers.
- Since:
- 1.2
- Version:
- 1.2
- Author:
- Martin Desruisseaux (MPO, IRD, Geomatys)
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
-
Constructor Details
-
AbstractShape
protected AbstractShape()Creates a new shape.
-
-
Method Details
-
isFloat
protected boolean isFloat()Returnstrueif this shape backed by primitivefloatvalues.- Returns:
trueif this shape is backed byfloatcoordinate values.
-
isFloat
Returnstrueif the given shape is presumed backed by primitivefloatvalues. The given object should be an instance ofShapeor.invalid reference
Point2D- Parameters:
shape- the shape for which to determine the backing primitive type.- Returns:
trueif the given shape is presumed backed byfloatcoordinate values.
-