public static class PolygonGeometry.Offset extends PolygonGeometry.XY
PolygonGeometry.LL, PolygonGeometry.Offset, PolygonGeometry.XY
Modifier and Type | Field and Description |
---|---|
protected int |
coordMode
Type of offset.
|
static int |
COORDMODE_ORIGIN
Translation offsets.
|
static int |
COORDMODE_PREVIOUS
Delta offsets.
|
protected double |
lat
The latitude of the starting point of the poly.
|
protected double |
lon
The longitude of the starting point of the poly.
|
xs, ys
doShapes, isPolygon, xpoints, ypoints
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
PolygonGeometry.Offset(double latPoint,
double lonPoint,
float[] xPoints,
float[] yPoints,
int cMode)
Create an x/y OMPoly at an offset from lat/lon.
|
PolygonGeometry.Offset(double latPoint,
double lonPoint,
float[] xypoints,
int cMode)
Create an x/y OMPoly at an offset from lat/lon.
|
Modifier and Type | Method and Description |
---|---|
boolean |
generate(Projection proj)
Prepare the geometry for rendering.
|
int |
getCoordMode()
Type of offset.
|
double |
getLat()
Get the latitude of the offset point, in decimal degrees.
|
double |
getLon()
Get the longitude of the offset point, in decimal degrees.
|
int |
getRenderType()
Return the render type.
|
void |
setCoordMode(int coordMode)
Type of offset.
|
void |
setLat(double lat)
Set the latitude of the offset point, in decimal degrees.
|
void |
setLocation(double latPoint,
double lonPoint,
int units,
float[] xypoints)
Set the location based on a latitude, longitude, and some
xy points.
|
void |
setLocation(double latPoint,
double lonPoint,
int units,
float[] xPoints,
float[] yPoints)
Set the location based on a latitude, longitude, and some
xy points.
|
void |
setLon(double lon)
Set the longitude of the offset point, in decimal degrees.
|
createShape, getXs, getYs, setLocation, setLocation, setXs, setYs
distance, getDoShapes, getIsPolygon, getShape, setDoShapes, setIsPolygon
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, deselect, distanceToEdge, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, render, replaceAppObjectWithAttributeMap, restore, select, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearAttributes, contains, deselect, distanceToEdge, draw, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, render, restore, select, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
public static final int COORDMODE_ORIGIN
public static final int COORDMODE_PREVIOUS
protected double lat
protected double lon
protected int coordMode
COORDMODE_ORIGIN
,
COORDMODE_PREVIOUS
public PolygonGeometry.Offset(double latPoint, double lonPoint, float[] xypoints, int cMode)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesxypoints
- float[] of x,y pairscMode
- offset coordinate modepublic PolygonGeometry.Offset(double latPoint, double lonPoint, float[] xPoints, float[] yPoints, int cMode)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesxPoints
- float[] of x coordinatesyPoints
- float[] of y coordinatescMode
- offset coordinate modepublic void setLocation(double latPoint, double lonPoint, int units, float[] xypoints)
latPoint
- latitude in decimal degrees.lonPoint
- longitude in decimal degrees.units
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESxypoints
- array of x/y points, arranged x, y, x, y,
etc.public void setLocation(double latPoint, double lonPoint, int units, float[] xPoints, float[] yPoints)
latPoint
- latitude in decimal degreeslonPoint
- longitude in decimal degreesunits
- radians or decimal degrees. Use
OMGraphic.RADIANS or OMGraphic.DECIMAL_DEGREESxPoints
- float[] of x coordinatesyPoints
- float[] of y coordinatespublic void setCoordMode(int coordMode)
COORDMODE_ORIGIN
,
COORDMODE_PREVIOUS
public int getCoordMode()
COORDMODE_ORIGIN
,
COORDMODE_PREVIOUS
public void setLat(double lat)
public double getLat()
public void setLon(double lon)
public double getLon()
public boolean generate(Projection proj)
BasicGeometry
render()
! If a vector graphic has lat-lon components, then we
project these vertices into x-y space. For raster graphics we prepare in a
different fashion.
If the generate is unsuccessful, it's usually because of some oversight,
(for instance if proj
is null), and if debugging is enabled,
a message may be output to the controlling terminal.
generate
in interface OMGeometry
generate
in class PolygonGeometry.XY
proj
- ProjectionBasicGeometry.regenerate(com.bbn.openmap.proj.Projection)
public int getRenderType()
BasicGeometry
getRenderType
in interface OMGeometry
getRenderType
in class PolygonGeometry.XY
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details