com.esri.aims.mtier.model.map.layer.query
Class Geometry

java.lang.Object
  extended by com.esri.aims.mtier.model.map.layer.query.Geometry
All Implemented Interfaces:
Serializable

public class Geometry
extends Object
implements Serializable

Contains a collection of points associated with a given recordset. The Geometry object also contains methods for creating Line, Polygon, and Ring objects.

See Also:
Serialized Form

Constructor Summary
Geometry()
          Constructs an instance of a Geometry object.
 
Method Summary
 Line createLine(Points object)
          Returns a line object created by the given Parts object.
 Polygon createPolygonObject(Ring object)
          Returns a Polygon object created by the given Parts object.
 Ring createRing(Points object)
          Returns a Parts object created by the given Points object.
 Point getPointObject(int index)
          Returns a Point object at given index from a Points collection.
 Points getPoints()
          Returns a Points collection object containing all geometry points.
 void setPoints(Points object)
          Sets the given Points collection object containing all geometry points.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Geometry

public Geometry()
Constructs an instance of a Geometry object. Example:
Geometry geometry = new Geometry();

Method Detail

getPointObject

public Point getPointObject(int index)
Returns a Point object at given index from a Points collection. Example:
Point point = geometry.getPointObject(2);

Parameters:
index - Point object to return.
Returns:
PointObject

getPoints

public Points getPoints()
Returns a Points collection object containing all geometry points. Example:
Points points = geometry.getPoints();

Returns:
Points
See Also:
setPoints(com.esri.aims.mtier.model.acetate.Points)

setPoints

public void setPoints(Points object)
Sets the given Points collection object containing all geometry points. Example:
 Points points = new Points();
 geometry.setPoints(points);
 

Parameters:
object - the Points collection object.
See Also:
getPoints()

createRing

public Ring createRing(Points object)
Returns a Parts object created by the given Points object. Example:
 Ring ring = geometry.createRing(geometry.getPoints());
 

Parameters:
object - the Points object to create the Ring from.
Returns:
the Parts object.
See Also:
createPolygonObject(com.esri.aims.mtier.model.acetate.Ring), createLine(com.esri.aims.mtier.model.acetate.Points)

createPolygonObject

public Polygon createPolygonObject(Ring object)
Returns a Polygon object created by the given Parts object. Example:
 Ring ring = geometry.createRing(geometry.getPoints());
 Polygon polygon = geometry.createPolygonObject(ring);
 

Parameters:
object - the Ring object to create the Polygon Object from.
Returns:
PolygonObject

createLine

public Line createLine(Points object)
Returns a line object created by the given Parts object. Example:
 Line line = geometry.createLine(geometry.getPoints());
 

Parameters:
object - the Points object to create the Line object from.
Returns:
LineObject