Class AbstractShape
java.lang.Object
org.apache.sis.internal.referencing.j2d.AbstractShape
- All Implemented Interfaces:
Shape
- Direct Known Subclasses:
EmptyShape,ShapeAdapter,ShapeWrapper
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Class<?>[]Base classes of Java2D implementations known to store coordinates as single-precision floating point numbers. -
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
-
Field Details
-
FLOAT_SHAPES
Base classes of Java2D implementations known to store coordinates as single-precision floating point numbers.
-
-
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 ofShapeorPoint2D.- Parameters:
shape- the shape for which to determine the backing primitive type.- Returns:
trueif the given shape is presumed backed byfloatcoordinate values.
-