|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.link.LinkEllipse
public class LinkEllipse
Reading and writing a Link protocol version of a circle.
Field Summary |
---|
Constructor Summary | |
---|---|
LinkEllipse()
|
Method Summary | |
---|---|
static OMEllipse |
read(java.io.DataInputStream dis)
Read the ellipse protocol off the data input, and return an OMEllipse. |
static OMEllipse |
read(java.io.DataInputStream dis,
LinkProperties propertiesBuffer)
Read the ellipse protocol off the data input, and return an OMEllipse. |
static void |
write(float latPoint,
float lonPoint,
float majorAxisSpan,
float minorAxisSpan,
int units,
float rotationAngle,
LinkProperties properties,
java.io.DataOutputStream dos)
Write an ellipse with Lat/Lon placement with axis defined in terms of distance. |
static void |
write(float latPoint,
float lonPoint,
int w,
int h,
float rotateAngle,
LinkProperties properties,
java.io.DataOutputStream dos)
Create a OMEllipse, positioned with a lat-lon center and x-y axis. |
static void |
write(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h,
float rotateAngle,
LinkProperties properties,
java.io.DataOutputStream dos)
Create a OMEllipse, positioned at a Lat-lon location, x-y offset, x-y axis. |
static void |
write(int x1,
int y1,
int majorAxisSpan,
int minorAxisSpan,
float rotateAngle,
LinkProperties properties,
java.io.DataOutputStream dos)
Create a OMEllipse, positioned with a x-y center with x-y axis. |
static void |
write(OMEllipse ellipse,
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 LinkEllipse()
Method Detail |
---|
public static void write(float latPoint, float lonPoint, float majorAxisSpan, float minorAxisSpan, int units, float rotationAngle, 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 degreesmajorAxisSpan
- x axis value, unitsminorAxisSpan
- y axis value, unitsunits
- integer value for units for distance - OMCircle.KM,
OMCircle.MILES, OMCircle.NMILES. If < 0, assume decimal
degrees.rotationAngle
- The angle by which the circle/ellipse is to be
rotated, in radiansproperties
- attributes for the circle.dos
- DataOutputStream.
java.io.IOException
public static void write(int x1, int y1, int majorAxisSpan, int minorAxisSpan, float rotateAngle, 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 pixelsmajorAxisSpan
- horizontal diameter of circle/ellipse, pixelsminorAxisSpan
- vertical diameter of circle/ellipse, pixelsrotateAngle
- angle of rotation in Radians
java.io.IOException
public static void write(float latPoint, float lonPoint, int w, int h, float rotateAngle, 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 degreesw
- horizontal diameter of circle/ellipse, pixelsh
- vertical diameter of circle/ellipse, pixelsrotateAngle
- angle of rotation in Radians
java.io.IOException
public static void write(float latPoint, float lonPoint, int offset_x1, int offset_y1, int w, int h, float rotateAngle, 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 degreesoffset_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.
java.io.IOException
public static void write(OMEllipse ellipse, Link link, LinkProperties props) throws java.io.IOException
java.io.IOException
public static OMEllipse read(java.io.DataInputStream dis) throws java.io.IOException
dis
- the DataInputStream
java.io.IOException
OMEllipse
public static OMEllipse 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 OMPoly being read.
java.io.IOException
OMEllipse
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |