|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.bbn.openmap.layer.link.LinkCircle
Reading and writing a Link protocol version of a circle.
| Field Summary |
| Constructor Summary | |
LinkCircle()
|
|
| Method Summary | |
static OMCircle |
read(java.io.DataInputStream dis)
Read the circle protocol off the data input, and return an OMCircle. |
static void |
write(float latPoint,
float lonPoint,
float radius,
int units,
int nverts,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a circle with a certain radius at a Lat/Lon location, and allows you to specify units of the radius, as well as the number of verticies to use to approximate the circle. |
static void |
write(float latPoint,
float lonPoint,
float radius,
int units,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a circle with a certain radius at a Lat/Lon location, and allows you to specify units of the radius. |
static void |
write(float latPoint,
float lonPoint,
float radius,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a circle with a certain radius at a Lat/Lon location. |
static void |
write(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
LinkProperties properties,
java.io.DataOutputStream dos)
Writing a circle at a x, y, offset to a Lat/Lon location. |
static void |
write(float latPoint,
float lonPoint,
int w,
int h,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a circle with lat/lon placement. |
static void |
write(int x1,
int y1,
int w,
int h,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a circle with x/y placement. |
static void |
write(OMCircle circle,
Link link,
LinkProperties props)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LinkCircle()
| Method Detail |
public static void write(float latPoint,
float lonPoint,
int w,
int h,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of center point, decimal degreeslonPoint - longitude of center point, decimal degreesw - horizontal diameter of circle/ellipse, pixelsh - vertical diameter of circle/ellipse, pixelsproperties - attributes for the circle.dos - DataOutputStream.
java.io.IOException
public static void write(int x1,
int y1,
int w,
int h,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
x1 - window position of center point from left of window,
in pixelsy1 - window position of center point from top of window,
in pixelsw - horizontal diameter of circle/ellipse, pixelsh - vertical diameter of circle/ellipse, pixelsproperties - attributes for the circle.dos - DataOutputStream.
java.io.IOException
public static void write(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of center of circle/ellipse.lonPoint - longitude of center of circle/ellipse.offset_x1 - # pixels to the right the center will be moved
from lonPoint.offset_y1 - # pixels down that the center will be moved
from latPoint.w - horizontal diameter of circle/ellipse, pixels.h - vertical diameter of circle/ellipse, pixels.properties - attributes for the circle.dos - DataOutputStream.
java.io.IOException
public static void write(float latPoint,
float lonPoint,
float radius,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of center point, decimal degreeslonPoint - longitude of center point, decimal degreesradius - distance in decimal degreesproperties - attributes for the circle.dos - DataOutputStream.
java.io.IOException
public static void write(float latPoint,
float lonPoint,
float radius,
int units,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of center of circle in decimal degreeslonPoint - longitude of center of circle in decimal
degreesradius - distanceunits - integer value for units for distance - KM, MILES,
NMILES. If < 0, assume decimal degrees.properties - attributes for the circle.dos - DataOutputStream.
java.io.IOException
public static void write(float latPoint,
float lonPoint,
float radius,
int units,
int nverts,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - latitude of center of circle in decimal degreeslonPoint - longitude of center of circle in decimal
degreesradius - distanceunits - integer value for units for distance -
OMCircle.KM, OMCircle.MILES, OMCircle.NMILES. If < 0,
assume decimal degrees.nverts - number of vertices for the poly-circle (if <
3, value is generated internally).properties - attributes for the circle.dos - DataOutputStream.
java.io.IOException
public static void write(OMCircle circle,
Link link,
LinkProperties props)
throws java.io.IOException
java.io.IOException
public static OMCircle read(java.io.DataInputStream dis)
throws java.io.IOException
dis - the DataInputStream
java.io.IOExceptionOMCircle
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||