|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.link.LinkBoundingPoly
public class LinkBoundingPoly
LinkBoundingPoly objects are used to describe simple polygons that cover a certain area. If the area described is in coordinates, the polygon should not be sued for areas covering a pole or straddling the dateline. More than one LinkBoundingPolys should be used for areas like that.
Field Summary | |
---|---|
float |
maxX
|
float |
maxY
|
float |
minX
|
float |
minY
|
protected float[] |
points
|
Constructor Summary | |
---|---|
LinkBoundingPoly(java.io.DataInput dis)
The constructor to use when reading the bounding polygon off an input stream. |
|
LinkBoundingPoly(float[] poly)
The constructor to use to create a LinkBoundingPoly to write to an output stream. |
|
LinkBoundingPoly(float minX,
float minY,
float maxX,
float maxY)
Create a LinkBoundingPoly out of minimum and max x, y, values. |
Method Summary | |
---|---|
LatLonPoint[] |
getLatLonPoints()
Convert the points to Lat/Lon points. |
float[] |
getPoints()
Return the polygon points, as a series of alternating x and y values. |
void |
read(java.io.DataInput dis)
Read the bounding polygon off the input stream. |
java.lang.String |
toString()
|
void |
write(java.io.DataOutput dos)
Write the polygon on the output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public float maxX
public float maxY
public float minX
public float minY
protected float[] points
Constructor Detail |
---|
public LinkBoundingPoly(java.io.DataInput dis) throws java.io.IOException
dis
- DataInputStream to read from.
java.io.IOException
public LinkBoundingPoly(float[] poly)
poly
- a series of alternating x, y points describing a
polygon.public LinkBoundingPoly(float minX, float minY, float maxX, float maxY)
minX
- minimum X value.minY
- minimum Y value.maxX
- maximum X value.maxY
- maximum Y value.Method Detail |
---|
public void write(java.io.DataOutput dos) throws java.io.IOException
dos
- the DataOutput to write to.
java.io.IOException
public void read(java.io.DataInput dis) throws java.io.IOException
dis
- DataInputStream to read from.
java.io.IOException
public float[] getPoints()
public LatLonPoint[] getLatLonPoints()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |