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, wait
Methods 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()Returnstrue
if this shape backed by primitivefloat
values.- Returns:
true
if this shape is backed byfloat
coordinate values.
-
isFloat
Returnstrue
if the given shape is presumed backed by primitivefloat
values. The given object should be an instance ofShape
orinvalid reference
Point2D
- Parameters:
shape
- the shape for which to determine the backing primitive type.- Returns:
true
if the given shape is presumed backed byfloat
coordinate values.
-