|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.link.LinkArc
public class LinkArc
Reading and writing a Link protocol version of a circle.
Field Summary |
---|
Constructor Summary | |
---|---|
LinkArc()
|
Method Summary | |
---|---|
static OMArc |
read(java.io.DataInputStream dis)
Read the arc protocol off the data input, and return an OMArc. |
static OMArc |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the arc protocol off the data input, and return an OMArc. |
static void |
write(float latPoint,
float lonPoint,
float radius,
float s,
float e,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an arc with a certain radius at a Lat/Lon location. |
static void |
write(float latPoint,
float lonPoint,
float radius,
int units,
float s,
float e,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an arc 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,
int units,
int nverts,
float s,
float e,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an arc with a certain radius at a Lat/Lon location, and allows you to specify units of the radius, as well as the number of vertices to use to approximate the arc. |
static void |
write(float latPoint,
float lonPoint,
int w,
int h,
float s,
float e,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an arc with lat/lon placement. |
static void |
write(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
float s,
float e,
LinkProperties properties,
java.io.DataOutputStream dos)
Writing an arc at a x, y, offset to a Lat/Lon location. |
static void |
write(int x1,
int y1,
int w,
int h,
float s,
float e,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an arc with x/y placement. |
static void |
write(OMArc arc,
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 LinkArc()
Method Detail |
---|
public static void write(float latPoint, float lonPoint, int w, int h, float s, float e, 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 arc, pixelsh
- vertical diameter of arc, pixelss
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.dos
- DataOutputStream.
java.io.IOException
public static void write(int x1, int y1, int w, int h, float s, float e, 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 arc, pixelsh
- vertical diameter of arc, pixelss
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.dos
- DataOutputStream.
java.io.IOException
public static void write(float latPoint, float lonPoint, int offset_x1, int offset_y1, int w, int h, float s, float e, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
latPoint
- latitude of center of arc.lonPoint
- longitude of center of arc.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 arc, pixels.h
- vertical diameter of arc, pixels.s
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.dos
- DataOutputStream.
java.io.IOException
public static void write(float latPoint, float lonPoint, float radius, float s, float e, 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 degreess
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.dos
- DataOutputStream.
java.io.IOException
public static void write(float latPoint, float lonPoint, float radius, int units, float s, float e, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
latPoint
- latitude of center of arc in decimal degreeslonPoint
- longitude of center of arc in decimal degreesradius
- distanceunits
- integer value for units for distance - KM, MILES,
NMILES. If < 0, assume decimal degrees.s
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.dos
- DataOutputStream.
java.io.IOException
public static void write(float latPoint, float lonPoint, float radius, int units, int nverts, float s, float e, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
latPoint
- latitude of center of arc in decimal degreeslonPoint
- longitude of center of arc in decimal degreesradius
- distanceunits
- integer value for units for distance - OMArc.KM,
OMArc.MILES, OMArc.NMILES. If < 0, assume decimal
degrees.nverts
- number of vertices for the poly-arc (if < 3,
value is generated internally).s
- starting angle of arc, decimal degreese
- angular extent of arc, decimal degreesproperties
- attributes for the arc.dos
- DataOutputStream.
java.io.IOException
public static void write(OMArc arc, Link link, LinkProperties props) throws java.io.IOException
java.io.IOException
public static OMArc read(java.io.DataInputStream dis) throws java.io.IOException
dis
- the DataInputStream
java.io.IOException
OMLine
public static OMArc read(java.io.DataInputStream dis, LinkProperties propertiesBuffer) throws java.io.IOException
dis
- the DataInputStreampropertiesBuffer
- a LinkProperties object used to cache previous
settings that can be set on the OMArc being read.
java.io.IOException
OMArc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |