public class GeoMultiShape extends java.util.ArrayList<GeoShape> implements GeoShape
| Constructor and Description |
|---|
GeoMultiShape() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(double x,
double y)
Tests if the specified coordinates are inside the boundary of the Shape.
|
boolean |
contains(double x,
double y,
double w,
double h)
Tests if the interior of the Shape entirely contains the specified
rectangular area.
|
boolean |
contains(java.awt.geom.Point2D point)
Tests if the specified point is inside the boundary of the Shape
|
boolean |
contains(java.awt.geom.Rectangle2D rect)
Tests if the interior of the Shape entirely contains the specified
rectangular area.
|
java.awt.Rectangle |
getBounds()
Returns an integer Rectangle that completely encloses the Shape.
|
java.awt.geom.Rectangle2D |
getBounds2D()
Returns a high-precision Rectangle that completely encloses the Shape.
|
GeoCoord |
getCenter()
Get the center of the shape
|
DataRecord |
getData()
Gets the data record of this GeoMultiShape
|
GeoBounds |
getGeoBounds()
Get the geographic bounds for this shape.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at)
Returns an iterator object that iterates along the Shape boundary and
provides access to the geometry of the Shape outline.
|
java.awt.geom.PathIterator |
getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
Returns an iterator object that iterates along the Shape boundary and
provides access to a flattened view of the Shape outline geometry.
|
double |
getRadius()
Get the radius for this GeoMultiShape.
|
RenderStyle |
getRenderStyle()
Get the rendering style for this GeoMultiShape.
|
boolean |
intersects(double x,
double y,
double w,
double h)
Tests if the interior of the Shape intersects the interior of a
specified rectangular area.
|
boolean |
intersects(java.awt.geom.Rectangle2D rect)
Tests if the interior of the Shape intersects the interior of a
specified Rectangle.
|
void |
project(Projection proj)
Projects the geographic coordinates into the given projection
|
void |
setData(DataRecord dataRecord)
Sets the data record of this GeoMultiShape.
|
void |
setRenderStyle(RenderStyle style)
Set the rendering style for this GeoShape.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizepublic boolean contains(double x,
double y)
contains in interface java.awt.Shapex - the specified x coordinatey - the specified x coordinatepublic boolean contains(double x,
double y,
double w,
double h)
contains in interface java.awt.Shapex - the x coordinate of the specified rectangular areay - the y coordinate of the specified rectangular areaw - the width of the specified rectangular areah - the height of the specified rectangular areapublic boolean contains(java.awt.geom.Point2D point)
contains in interface java.awt.Shapepoint - the specified pointpublic boolean contains(java.awt.geom.Rectangle2D rect)
contains in interface java.awt.Shaperect - the specified rectanglepublic java.awt.Rectangle getBounds()
getBounds in interface java.awt.Shapepublic java.awt.geom.Rectangle2D getBounds2D()
getBounds2D in interface java.awt.Shapepublic GeoCoord getCenter()
public DataRecord getData()
public GeoBounds getGeoBounds()
getGeoBounds in interface GeoShapepublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at)
getPathIterator in interface java.awt.Shapeat - an optional AffineTransform to be applied to the coordinates
as they are returned in the iteration, or null if
untransformed coordinates are desiredpublic java.awt.geom.PathIterator getPathIterator(java.awt.geom.AffineTransform at,
double flatness)
getPathIterator in interface java.awt.Shapeat - an optional AffineTransform to be applied to the coordinates
as they are returned in the iteration, or null if
untransformed coordinates are desiredflatness - the maximum distance that the line segments used to
approximate the curved segments are allowed to deviate from
any point on the original curvepublic double getRadius()
public RenderStyle getRenderStyle()
getRenderStyle in interface GeoShapepublic boolean intersects(double x,
double y,
double w,
double h)
intersects in interface java.awt.Shapex - the x coordinate of the specified rectangular areay - the y coordinate of the specified rectangular areaw - the width of the specified rectangular areah - the height of the specified rectangular areapublic boolean intersects(java.awt.geom.Rectangle2D rect)
intersects in interface java.awt.Shaperect - the specified RectanglePath2D.intersects(java.awt.geom.Rectangle2D)public void project(Projection proj)
public void setData(DataRecord dataRecord)
public void setRenderStyle(RenderStyle style)
setRenderStyle in interface GeoShapestyle - The rendering style