|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive org.gvsig.fmap.geom.primitive.impl.DefaultNullGeometry
public class DefaultNullGeometry
DOCUMENT ME!
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.gvsig.fmap.geom.Geometry |
---|
Geometry.DIMENSIONS, Geometry.OPERATIONS, Geometry.SUBTYPES, Geometry.TYPES |
Field Summary |
---|
Fields inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
---|
geometryType, geomManager, id, projection |
Fields inherited from interface org.gvsig.fmap.geom.Geometry |
---|
BEST, E, EXTENDED_GEOMSUBTYPE_OFFSET, EXTENDED_GEOMTYPE_OFFSET, N, NE, NW, S, SE, SELECTHANDLER, STRETCHINGHANDLER, SW, W |
Constructor Summary | |
---|---|
DefaultNullGeometry(GeometryType geometryType)
The constructor with the GeometryType like and argument is used by the GeometryType #create()
to create the geometry |
Method Summary | |
---|---|
FShape |
cloneFShape()
Creates and returns a shape equal and independent of this one. |
Geometry |
cloneGeometry()
Creates a clone of this geometry. |
boolean |
contains(double arg0,
double arg1)
|
boolean |
contains(double arg0,
double arg1,
double arg2,
double arg3)
|
boolean |
contains(Point2D arg0)
|
boolean |
contains(Rectangle2D arg0)
|
boolean |
fastIntersects(double x,
double y,
double w,
double h)
Used by the drawing strategies to quickly test whether this geometry intersects with the visible rectangle. |
Rectangle |
getBounds()
|
Rectangle2D |
getBounds2D()
Returns this geometry's boundary rectangle. |
int |
getDimension()
Returns the largest number n such that each direct position in a geometric set can be associated with a subset that has the direct position in its interior and is similar (isomorphic) to Rn, Euclidean n-space. |
Envelope |
getEnvelope()
Returns the minimum bounding box for this Geometry. |
GeneralPathX |
getGeneralPath()
Get GeneralPathIterator, to do registered operations to it. |
Handler[] |
getHandlers(int type)
It returns the handlers of the geometry, these they can be of two types is straightening and of selection. |
PathIterator |
getPathIterator(AffineTransform at)
If applies an affine transformation and returns the GeneralPathXIterator with this geometry's information. |
PathIterator |
getPathIterator(AffineTransform at,
double flatness)
If applies an affine transformation and returns the GeneralPathXIterator with this geometry's information. |
Handler[] |
getSelectHandlers()
Returns the handlers used to select the geometries. |
Handler[] |
getStretchingHandlers()
Returns the handlers they utilized to stretch the geometries. |
boolean |
intersects(double arg0,
double arg1,
double arg2,
double arg3)
|
boolean |
intersects(Rectangle2D r)
Returns true if this geometry intersects the rectangle passed as parameter. |
boolean |
isSimple()
Returns true if this Geometry has no interior point of
self-intersection or self-tangency. |
void |
reProject(org.cresques.cts.ICoordTrans ct)
Reprojects this geometry by the coordinate transformer passed as parameter. |
void |
transform(AffineTransform at)
It applies an affine transformation to the geometry. |
Methods inherited from class org.gvsig.fmap.geom.primitive.impl.AbstractPrimitive |
---|
area, buffer, centroid, compareTo, contains, containsPoint, containsRectangle, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, equals, getGeometryType, getId, getInternalShape, getShape, getShape, getShapeType, getSRS, getType, intersection, intersects, intersectsRectangle, invokeOperation, invokeOperation, moveGeom, overlaps, perimeter, rotateGeom, scaleGeom, toString, touches, transform, union, within |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.gvsig.fmap.geom.Geometry |
---|
area, buffer, centroid, contains, convertToWKB, convertToWKT, convexHull, coveredBy, crosses, difference, disjoint, distance, getGeometryType, getInternalShape, getShape, getShape, getType, intersection, intersects, invokeOperation, invokeOperation, overlaps, perimeter, touches, union, within |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public DefaultNullGeometry(GeometryType geometryType)
GeometryType
#create()
to create the geometry
type
- The geometry typeMethod Detail |
---|
public boolean intersects(Rectangle2D r)
Geometry
intersects
in interface Shape
intersects
in interface Geometry
r
- Rectangle.
this
intersects r
.public Rectangle2D getBounds2D()
Geometry
getBounds2D
in interface Shape
getBounds2D
in interface Geometry
public Geometry cloneGeometry()
Geometry
cloneGeometry
in interface Geometry
cloneGeometry
in class AbstractPrimitive
public void reProject(org.cresques.cts.ICoordTrans ct)
Geometry
reProject
in interface Geometry
reProject
in interface FShape
ct
- Coordinate Transformer.public PathIterator getPathIterator(AffineTransform at)
Geometry
getPathIterator
in interface Shape
getPathIterator
in interface Geometry
at
- The transformation to apply.
Geometry.getPathIterator(AffineTransform)
public boolean fastIntersects(double x, double y, double w, double h)
Geometry
fastIntersects
in interface Geometry
fastIntersects
in class AbstractPrimitive
x
- The minimum X coordinate.y
- The minimum Y coordinate.w
- The width of the envelope.h
- The height of the envelope.
this
intersects the rectangle defined by the
parameters.public Handler[] getHandlers(int type)
Geometry
getHandlers
in interface Geometry
getHandlers
in class AbstractPrimitive
type
- Type of handlers.
public void transform(AffineTransform at)
Geometry
transform
in interface Geometry
transform
in interface FShape
at
- The transformation to apply.AffineTransform
public PathIterator getPathIterator(AffineTransform at, double flatness)
Geometry
getPathIterator
in interface Shape
getPathIterator
in interface Geometry
at
- The affine transformation.
public boolean contains(double arg0, double arg1)
contains
in interface Shape
public boolean contains(double arg0, double arg1, double arg2, double arg3)
contains
in interface Shape
public boolean intersects(double arg0, double arg1, double arg2, double arg3)
intersects
in interface Shape
public Rectangle getBounds()
getBounds
in interface Shape
public boolean contains(Point2D arg0)
contains
in interface Shape
public boolean contains(Rectangle2D arg0)
contains
in interface Shape
public boolean isSimple()
Geometry
true
if this Geometry has no interior point of
self-intersection or self-tangency. In mathematical formalisms, this
means that every point in the interior of the object must have a metric
neighborhood whose intersection with the object is isomorphic to an
n-sphere, where n is the dimension of this Geometry.
isSimple
in interface Geometry
isSimple
in class AbstractPrimitive
public int getDimension()
Geometry
getDimension
in interface Geometry
public FShape cloneFShape()
FShape
cloneFShape
in interface FShape
public Handler[] getSelectHandlers()
FShape
getSelectHandlers
in interface FShape
public Handler[] getStretchingHandlers()
FShape
getStretchingHandlers
in interface FShape
public Envelope getEnvelope()
Geometry
Returns the minimum bounding box for this Geometry. This shall be the coordinate region spanning the minimum and maximum value for each ordinate taken on by DirectPositions in this Geometry. The simplest representation for an envelope consists of two DirectPositions, the first one containing all the minimums for each ordinate, and second one containing all the maximums.
getEnvelope
in interface Geometry
public GeneralPathX getGeneralPath()
Geometry
getGeneralPath
in interface Geometry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |