|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.layer.link.LinkPoint
public class LinkPoint
Read and write the Link protocol for points. The protocol for the point has location information for the point, as well as a radius value indicating the size associated with this point. OMPoints also support whether the point should be rendered as a rectangle or an oval. That choice is specified as a property for the LinkPoint, along with any other rendering or attribute information that should be applied to the point.
Field Summary | |
---|---|
static java.lang.String |
LPC_POINT_OVAL
The property for the LinkPoint to specify if the OMPoint should be rendered as an oval. |
Constructor Summary | |
---|---|
LinkPoint()
|
Method Summary | |
---|---|
static OMPoint |
read(java.io.DataInputStream dis)
Read the DataInputStream, and create an OMPoint. |
static OMPoint |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the DataInputStream, and create an OMPoint. |
static void |
write(float lt,
float ln,
int px1,
int py1,
int radius,
LinkProperties properties,
java.io.DataOutputStream dos)
Construct an XY point relative to a lat/lon point (RENDERTYPE_OFFSET). |
static void |
write(float lt,
float ln,
int radius,
LinkProperties properties,
java.io.DataOutputStream dos)
Create a lat/lon point. |
static void |
write(int px1,
int py1,
int radius,
LinkProperties properties,
java.io.DataOutputStream dos)
Construct an XY point at a screen location.. |
static void |
write(OMPoint point,
Link link,
LinkProperties props)
Write an OMPoint to the Link. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String LPC_POINT_OVAL
Constructor Detail |
---|
public LinkPoint()
Method Detail |
---|
public static void write(float lt, float ln, int radius, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt
- latitude of north edge, decimal degrees.ln
- longitude of west edge, decimal degrees.radius
- pixel radius of the point.properties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(int px1, int py1, int radius, 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
originradius
- pixel radius of the point.properties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(float lt, float ln, int px1, int py1, int radius, LinkProperties properties, java.io.DataOutputStream dos) throws java.io.IOException
lt
- latitude of the reference point, decimal degrees.ln
- 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
pointradius
- a pixel radius of the point.properties
- description of drawing attributes.dos
- DataOutputStream
java.io.IOException
public static void write(OMPoint point, Link link, LinkProperties props) throws java.io.IOException
java.io.IOException
public static OMPoint read(java.io.DataInputStream dis) throws java.io.IOException
dis
- DataInputStream
java.io.IOException
OMPoint
public static OMPoint 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 OMPoint being read.
java.io.IOException
OMPoint
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |