sim.field.geo
Class GeomField

java.lang.Object
  extended by sim.field.geo.GeomField
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GeomGridField, GeomVectorField

public abstract class GeomField
extends java.lang.Object
implements java.io.Serializable

Super class for GeomVectorField and GeomGridField.

See Also:
Serialized Form

Field Summary
 double drawX
          Holds the origin for drawing; used to handle zooming and scrolling
 double drawY
          Holds the origin for drawing; used to handle zooming and scrolling
 int fieldHeight
          The field dimensions Used for computing scale.
 int fieldWidth
          The field dimensions Used for computing scale.
 com.vividsolutions.jts.geom.Envelope MBR
          The minimum bounding rectangle (MBR) of all the stored geometries.
 
Constructor Summary
GeomField()
           
GeomField(int w, int h)
           
 
Method Summary
 void clear()
          delete contents
 int getFieldHeight()
           
 int getFieldWidth()
           
 double getHeight()
          Returns the height of the MBR.
 com.vividsolutions.jts.geom.Envelope getMBR()
          Returns the minimum bounding rectangle (MBR)
 double getWidth()
          Returns the width of the MBR.
 void setFieldHeight(int fh)
           
 void setFieldWidth(int fw)
           
 void setMBR(com.vividsolutions.jts.geom.Envelope MBR)
          Set the MBR
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MBR

public com.vividsolutions.jts.geom.Envelope MBR
The minimum bounding rectangle (MBR) of all the stored geometries.


drawX

public double drawX
Holds the origin for drawing; used to handle zooming and scrolling


drawY

public double drawY
Holds the origin for drawing; used to handle zooming and scrolling


fieldWidth

public int fieldWidth
The field dimensions Used for computing scale.


fieldHeight

public int fieldHeight
The field dimensions Used for computing scale.

Constructor Detail

GeomField

public GeomField()

GeomField

public GeomField(int w,
                 int h)
Method Detail

getFieldWidth

public int getFieldWidth()

getFieldHeight

public int getFieldHeight()

setFieldWidth

public void setFieldWidth(int fw)

setFieldHeight

public void setFieldHeight(int fh)

clear

public void clear()
delete contents


getWidth

public double getWidth()
Returns the width of the MBR.


getHeight

public double getHeight()
Returns the height of the MBR.


getMBR

public final com.vividsolutions.jts.geom.Envelope getMBR()
Returns the minimum bounding rectangle (MBR)


setMBR

public void setMBR(com.vividsolutions.jts.geom.Envelope MBR)
Set the MBR