org.cresques.px.gml
Class Geometry

java.lang.Object
  extended byorg.cresques.px.PxObj
      extended byorg.cresques.px.gml.Geometry
All Implemented Interfaces:
Drawable, Extent.Has, Projected
Direct Known Subclasses:
InsPoint, LineString, MultiGeometry, Point, Polygon

public abstract class Geometry
extends PxObj
implements Projected

Clase base para geometrķas.

Author:
"Luis W. Sevilla"

Field Summary
protected  IProjection proj
           
 
Fields inherited from class org.cresques.px.PxObj
extent, stroke
 
Constructor Summary
Geometry()
           
 
Method Summary
 void add(java.awt.geom.Point2D pt)
           
 void draw(java.awt.Graphics2D g, ViewPortData vp)
           
 java.awt.geom.Point2D get(int i)
           
 java.util.Vector getData()
           
 Extent getExtent()
           
abstract  IProjection getProjection()
           
 int pointNr()
           
abstract  void reProject(ICoordTrans rp)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

proj

protected IProjection proj
Constructor Detail

Geometry

public Geometry()
Method Detail

add

public void add(java.awt.geom.Point2D pt)

get

public java.awt.geom.Point2D get(int i)

pointNr

public int pointNr()

getData

public java.util.Vector getData()

getExtent

public Extent getExtent()
Specified by:
getExtent in interface Extent.Has
Overrides:
getExtent in class PxObj

getProjection

public abstract IProjection getProjection()
Specified by:
getProjection in interface Projected

reProject

public abstract void reProject(ICoordTrans rp)
Specified by:
reProject in interface Projected

draw

public void draw(java.awt.Graphics2D g,
                 ViewPortData vp)
Specified by:
draw in interface Drawable