Class EmptyShape
java.lang.Object
org.apache.sis.internal.referencing.j2d.AbstractShape
org.apache.sis.internal.feature.j2d.EmptyShape
- All Implemented Interfaces:
PathIterator,Shape,Serializable
An empty shape.
- Since:
- 1.1
- Version:
- 1.2
- Author:
- Martin Desruisseaux (Geomatys)
- See Also:
-
Field Summary
FieldsFields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(double x, double y) booleancontains(double x, double y, double w, double h) booleanbooleanintcurrentSegment(double[] coords) intcurrentSegment(float[] coords) Returns an empty bounds.getPathIterator(AffineTransform at, double flatness) intbooleanintersects(double x, double y, double w, double h) booleanbooleanisDone()voidnext()Methods inherited from class org.apache.sis.internal.referencing.j2d.AbstractShape
isFloat, isFloat
-
Field Details
-
INSTANCE
The unique empty shape instance.
-
-
Method Details
-
getBounds
Returns an empty bounds. -
getBounds2D
- Specified by:
getBounds2Din interfaceShape
-
getWindingRule
public int getWindingRule()- Specified by:
getWindingRulein interfacePathIterator
-
contains
-
contains
-
intersects
- Specified by:
intersectsin interfaceShape
-
contains
public boolean contains(double x, double y) -
contains
public boolean contains(double x, double y, double w, double h) -
intersects
public boolean intersects(double x, double y, double w, double h) - Specified by:
intersectsin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
getPathIterator
- Specified by:
getPathIteratorin interfaceShape
-
isDone
public boolean isDone()- Specified by:
isDonein interfacePathIterator
-
next
public void next()- Specified by:
nextin interfacePathIterator
-
currentSegment
public int currentSegment(float[] coords) - Specified by:
currentSegmentin interfacePathIterator
-
currentSegment
public int currentSegment(double[] coords) - Specified by:
currentSegmentin interfacePathIterator
-