|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.layer.link.LinkPoly
public class LinkPoly
Read and write a Link protocol polyline/polygon.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
LinkPoly()
|
|
| Method Summary | |
|---|---|
static OMPoly |
read(java.io.DataInputStream dis)
Read the DataInputStream to create a OMPoly. |
static OMPoly |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the DataInputStream to create a OMPoly. |
static void |
write(double[] llpoints,
int units,
int lType,
int nsegs,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly. |
static void |
write(double[] llPoints,
int units,
int lType,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly, with an array of alternating lat/lon points. |
static void |
write(float[] latpoints,
float[] lonpoints,
int units,
int lType,
int nsegs,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly. |
static void |
write(float latPoint,
float lonPoint,
int[] xpoints,
int[] ypoints,
int cMode,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly. |
static void |
write(float latPoint,
float lonPoint,
int[] xypoints,
int cMode,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly. |
static void |
write(int[] xpoints,
int[] ypoints,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly in the response. |
static void |
write(int[] xypoints,
LinkProperties properties,
java.io.DataOutputStream dos)
Write a poly. |
static void |
write(OMPoly poly,
Link link,
LinkProperties props)
Write a poly to the link. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LinkPoly()
| Method Detail |
|---|
public static void write(double[] llPoints,
int units,
int lType,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
llPoints - alternating latitude and longitude points of poly.units - degrees or radians.lType - straight, rhumb, great circle.properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(double[] llpoints,
int units,
int lType,
int nsegs,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
llpoints - alternating latitude and longitude points of poly.units - degrees or radians.lType - straight, rhumb, great circle.nsegs - number of segments to use to approximate curved poly lines..properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(float[] latpoints,
float[] lonpoints,
int units,
int lType,
int nsegs,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latpoints - latitude points of poly.lonpoints - longitude points of poly.units - degrees or radians.lType - straight, rhumb, great circle.nsegs - number of segments to use to approximate curved poly lines..properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(int[] xypoints,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
xypoints - alternating x and y pixel locations of poly.properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(int[] xpoints,
int[] ypoints,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
xpoints - horizontal pixel locations of poly.ypoints - vertical pixel locations of poly.properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(float latPoint,
float lonPoint,
int[] xypoints,
int cMode,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - the latitude anchor point of the poly.lonPoint - the longitude anchor point of the poly.xypoints - alternating x and y offset polygon points.cMode - Coordinate Mode (Origin or Previous) that indicate whether
the x and y points are relative to the first point, or to the
previous point. .properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(float latPoint,
float lonPoint,
int[] xpoints,
int[] ypoints,
int cMode,
LinkProperties properties,
java.io.DataOutputStream dos)
throws java.io.IOException
latPoint - the latitude anchor point of the poly.lonPoint - the longitude anchor point of the poly.xpoints - horizontal pixel offset polygon points.ypoints - vertical pixel offset polygon points.cMode - Coordinate Mode (Origin or Previous) that indicate whether
the x and y points are relative to the first point, or to the
previous point. .properties - description of drawing attributes.dos - DataOutputStream
java.io.IOException
public static void write(OMPoly poly,
Link link,
LinkProperties props)
throws java.io.IOException
java.io.IOException
public static OMPoly read(java.io.DataInputStream dis)
throws java.io.IOException
dis - DataInputStream
java.io.IOExceptionOMPoly
public static OMPoly read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
throws java.io.IOException
dis - DataInputStreampropertiesBuffer - a LinkProperties object used to cache previous
settings that can be set on the OMPoly being read.
java.io.IOExceptionOMPoly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||