public class LinkEllipse extends java.lang.Object implements LinkGraphicConstants, LinkPropertiesConstants
BASELINE_BOTTOM, BASELINE_MIDDLE, BASELINE_TOP, BLACK_COLOR_STRING, CLEAR_COLOR_STRING, COLORMODEL_DIRECT, COLORMODEL_INDEXED, COLORMODEL_URL, COLUMN_MAJOR, COORDMODE_ORIGIN, COORDMODE_PREVIOUS, DECIMAL_DEGREES, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, JUSTIFY_CENTER, JUSTIFY_LEFT, JUSTIFY_RIGHT, KM, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, MILES, NMILES, RADIANS, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, ROW_MAJOR
LPC_BACKWARD_DIAG_PATTERN, LPC_CENTER_LAT, LPC_CENTER_LONG, LPC_CLEAR_PROPERTIES, LPC_CLEAR_PROPERTIES_CHAR, LPC_CROSS_PATTERN, LPC_DASH, LPC_DASH_DOT, LPC_DASH_DOT_DOT, LPC_DIAG_CROSS_PATTERN, LPC_DOT, LPC_FILLCOLOR, LPC_FILLPATTERN, LPC_FORWARD_DIAG_PATTERN, LPC_GRAPHICID, LPC_HEIGHT, LPC_HIGHLIGHTCOLOR, LPC_HORIZONTAL_PATTERN, LPC_HTML, LPC_INFO, LPC_LATMAX, LPC_LATMIN, LPC_LINECOLOR, LPC_LINESTYLE, LPC_LINEWIDTH, LPC_LINKRASTERIMAGEURL, LPC_LINKROTATION, LPC_LINKTEXTBASELINE, LPC_LINKTEXTFONT, LPC_LINKTEXTSTRING, LPC_LONG_DASH, LPC_LONMAX, LPC_LONMIN, LPC_MESSAGE, LPC_OLD_FILLCOLOR, LPC_OLD_FILLPATTERN, LPC_OLD_HIGHLIGHTCOLOR, LPC_OLD_LINECOLOR, LPC_OLD_LINESTYLE, LPC_OLD_LINEWIDTH, LPC_OLD_LINKTEXTFONT, LPC_OLD_LINKTEXTSTRING, LPC_PROJECTION, LPC_PROPERY_MANAGEMENT_POLICY, LPC_PROPERY_MANAGEMENT_POLICY_CHAR, LPC_REUSE_PROPERTIES, LPC_REUSE_PROPERTIES_CHAR, LPC_SCALE, LPC_SOLID, LPC_SOLID_PATTERN, LPC_TIME, LPC_URL, LPC_VERTICAL_PATTERN, LPC_WIDTH
Constructor and Description |
---|
LinkEllipse() |
Modifier and Type | Method and Description |
---|---|
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) |
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 Radiansjava.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 Radiansjava.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 DataInputStreamjava.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
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details