|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jwo.landserf.structure.Footprint
public class Footprint
Class for defining the spatial footprint of an object. Using this class to wrap all public communication of locations and boundaries ensures maximum flexibility. Current model assumes 2d Cartesian referencing, but can be adapted in future.
Constructor Summary | |
---|---|
Footprint(float x,
float y)
Creates a point footprint with given x,y location. |
|
Footprint(float x,
float y,
float width,
float height)
Creates a 2d areal footprint with given origin, width and height. |
|
Footprint(Footprint oldFootprint)
Creates a footprint based on a copy of the given one. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Reports whether this object is equal to the given one. |
float |
getMERHeight()
Reports the height of the footprint's Minimum Enclosing Rectangle. |
float |
getMERWidth()
Reports the width of the footprint's Minimum Enclosing Rectangle. |
int |
getType()
Reports the type of spatial footprint. |
float |
getXOrigin()
Reports the x origin of the footprint. |
float |
getYOrigin()
Reports the y origin of the footprint. |
int |
hashCode()
Reports the hashcode associated with this object. |
void |
setMERHeight(float height)
Sets the height of the footprint's Minimum Enclosing Rectangle. |
void |
setMERWidth(float width)
Sets the width of the footprint's Minimum Enclosing Rectangle. |
void |
setType(int type)
Sets the type of spatial footprint. |
void |
setXOrigin(float xOrigin)
Sets the x origin of the footprint. |
void |
setYOrigin(float yOrigin)
Sets the y origin of the footprint. |
String |
toString()
Reports the details of this footprint. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Footprint(float x, float y)
x
- X coordinate of footprint's location.y
- Y coordinate of footprint's location.public Footprint(float x, float y, float width, float height)
x
- X coordinate of footprint's origin.y
- Y coordinate of footprint's origin.width
- Width of object (in x direction).height
- Height of object (in y direction).public Footprint(Footprint oldFootprint)
oldFootprint
- Footprint to copy.Method Detail |
---|
public float getXOrigin()
public void setXOrigin(float xOrigin)
xOrigin
- New x origin of the footprint.public float getYOrigin()
public void setYOrigin(float yOrigin)
yOrigin
- New y origin of the footprint.public float getMERWidth()
public void setMERWidth(float width)
width
- New width of the MER (in the x direction).public float getMERHeight()
public void setMERHeight(float height)
height
- New height of the MER (in the y direction).public int getType()
public void setType(int type)
type
- Type of spatial footprint.public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- Object to compare with this one.
public int hashCode()
hashCode
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |