|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.link.LinkRectangle
public class LinkRectangle
Read and write the Link protocol for rectangles.
Field Summary |
---|
Constructor Summary | |
---|---|
LinkRectangle()
|
Method Summary | |
---|---|
static OMRect |
read(java.io.DataInputStream dis)
Read the DataInputStream, and create an OMRect. |
static OMRect |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the DataInputStream, and create an OMRect. |
static void |
write(float lt1,
float ln1,
float lt2,
float ln2,
int lType,
int nsegs,
LinkProperties properties,
java.io.DataOutputStream dos)
Create a lat/lon rectangle. |
static void |
write(float lt1,
float ln1,
float lt2,
float ln2,
int lType,
LinkProperties properties,
java.io.DataOutputStream dos)
Create a lat/lon rectangle. |
static void |
write(float lt1,
float ln1,
int px1,
int py1,
int px2,
int py2,
LinkProperties properties,
java.io.DataOutputStream dos)
Construct an XY rectangle relative to a lat/lon point (RENDERTYPE_OFFSET). |
static void |
write(int px1,
int py1,
int px2,
int py2,
LinkProperties properties,
java.io.DataOutputStream dos)
Construct an XY rectangle. |
static void |
write(OMRect rect,
Link link,
LinkProperties props)
Write an OMRect to the link. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LinkRectangle()
Method Detail |
---|
public static void write(float lt1, float ln1, float lt2, float ln2, int lType, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt1
- latitude of north edge, decimal degrees.ln1
- longitude of west edge, decimal degrees.lt2
- latitude of south edge, decimal degrees.ln2
- longitude of east edge, decimal degrees.lType
- line type - see lineType.properties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(float lt1, float ln1, float lt2, float ln2, int lType, int nsegs, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt1
- latitude of north edge, decimal degrees.ln1
- longitude of west edge, decimal degrees.lt2
- latitude of south edge, decimal degrees.ln2
- longitude of east edge, decimal degrees.lType
- line type - see lineType.nsegs
- number of segment points (only for LINETYPE_GREATCIRCLE or
LINETYPE_RHUMB line types, and if < 1, this value is generated
internally)properties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(int px1, int py1, int px2, int py2, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
px1
- x pixel position of the first corner relative to the window
originpy1
- y pixel position of the first corner relative to the window
originpx2
- x pixel position of the second corner relative to the window
originpy2
- y pixel position of the second corner relative to the window
originproperties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(float lt1, float ln1, int px1, int py1, int px2, int py2, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt1
- latitude of the reference point, decimal degrees.ln1
- longitude of the reference point, decimal degrees.px1
- x pixel position of the first corner relative to the reference
pointpy1
- y pixel position of the first corner relative to the reference
pointpx2
- x pixel position of the second corner relative to the
reference pointpy2
- y pixel position of the second corner relative to the
reference pointproperties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(OMRect rect, Link link, LinkProperties props) throws java.io.IOException
java.io.IOException
public static OMRect read(java.io.DataInputStream dis) throws java.io.IOException
dis
- DataInputStream
java.io.IOException
OMRect
public static OMRect 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 OMRect being read.
java.io.IOException
OMRect
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |