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
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EmptyShapeThe unique empty shape instance.private static final longFor cross-version compatibility.Fields inherited from interface java.awt.geom.PathIterator
SEG_CLOSE, SEG_CUBICTO, SEG_LINETO, SEG_MOVETO, SEG_QUADTO, WIND_EVEN_ODD, WIND_NON_ZERO -
Constructor Summary
Constructors -
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()private ObjectInvoked at deserialization time for obtaining the unique instance of this shape.Methods inherited from class org.apache.sis.internal.referencing.j2d.AbstractShape
isFloat, isFloat
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
INSTANCE
The unique empty shape instance.
-
-
Constructor Details
-
EmptyShape
private EmptyShape()ForINSTANCEconstruction only.
-
-
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
-
readResolve
Invoked at deserialization time for obtaining the unique instance of this shape.- Returns:
- the unique
Shapeinstance for this class. - Throws:
ObjectStreamException- if the object state is invalid.
-