public class LinkBoundingPoly
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
float |
maxX |
float |
maxY |
float |
minX |
float |
minY |
protected float[] |
points |
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public float maxX
public float maxY
public float minX
public float minY
protected float[] points
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.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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details