public class OMEllipse extends OMCircle
Modifier and Type | Field and Description |
---|---|
protected double |
majorAxisSpan |
protected double |
minorAxisSpan |
protected double[] |
rawllpts |
arcType, center, extent, height, nverts, off_x, off_y, radius, rotationAngle, start, width, x1, y1
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask
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 |
---|
OMEllipse(int x1,
int y1,
int majorAxisSpan,
int minorAxisSpan,
double rotateAngle)
Create a OMEllipse, positioned with a x-y center with x-y axis.
|
OMEllipse(LatLonPoint centerPoint,
double majorAxisSpan,
double minorAxisSpan,
Length units,
double rotateAngle)
Create a OMEllipse, positioned with a lat-lon center and a lat-lon axis.
|
OMEllipse(LatLonPoint centerPoint,
int w,
int h,
double rotateAngle)
Create a OMEllipse, positioned with a lat-lon center and x-y axis.
|
OMEllipse(LatLonPoint centerPoint,
int offset_x1,
int offset_y1,
int w,
int h,
double rotateAngle)
Create a OMEllipse, positioned at a Lat-lon location, x-y offset, x-y
axis.
|
Modifier and Type | Method and Description |
---|---|
double[] |
createLatLonPoints()
Given that the center point and the axis are set, calculate the new
lat/lon points all around the ellipse from the center.
|
boolean |
generate(Projection proj)
Prepare the arc for rendering.
|
double[] |
getLatLonPoints()
Get the float[] of points that make up the ellipse.
|
double |
getMajorAxis()
Get the x axis value.
|
double |
getMinorAxis()
Get the y axis value.
|
void |
restore(OMGeometry source)
Takes the generic OMGraphic settings from another OMGraphic and pushes
them to this one.
|
void |
setAxis(double majorAxis,
double minorAxis,
Length units)
Set the axis lengths of the ellipse.
|
void |
setCenter(LatLonPoint llp)
Set the latitude and longitude of the center point.
|
createArcShape, getCoordLists, hasLineTypeChoice, shouldCenterBeInShape
clone, createArcShape, getArcType, getCenter, getCoordLists, getExtentAngle, getHeight, getLatLon, getNumVerts, getOffX, getOffY, getPolarCorrection, getPolarShapeLine, getRadius, getRotationAngle, getStartAngle, getWidth, getX, getY, render, setArcType, setExtent, setHeight, setLatLon, setNeedToRegenerate, setNumVerts, setOffX, setOffY, setPolarCorrection, setRadius, setRadius, setRotationAngle, setStart, setWidth, setX, setY
deselect, distance, getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, readStroke, regenerate, renderLabel, select, setDeclutterType, setEdgeMatchesFill, setFillColor, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelected, setSelectPaint, setShape, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill, writeStroke
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setVisible
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deselect, getDeclutterType, getDisplayColor, getDisplayPaint, getFillColor, getFillPaint, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, select, setDeclutterType, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelected, setSelectPaint, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill
clearAttributes, contains, distance, distanceToEdge, draw, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setShape, setVisible
protected double majorAxisSpan
protected double minorAxisSpan
protected transient double[] rawllpts
public OMEllipse(LatLonPoint centerPoint, double majorAxisSpan, double minorAxisSpan, Length units, double rotateAngle)
centerPoint
- latitude/longitude of center point, decimal degreesmajorAxisSpan
- horizontal diameter of circle/ellipse, pixelsminorAxisSpan
- vertical diameter of circle/ellipse, in given unitsunits
- com.bbn.openmap.proj.Length object.rotateAngle
- angle of rotation in Radianspublic OMEllipse(int x1, int y1, int majorAxisSpan, int minorAxisSpan, double rotateAngle)
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 Radianspublic OMEllipse(LatLonPoint centerPoint, int w, int h, double rotateAngle)
centerPoint
- latitude/longitude of center point, decimal degreesw
- horizontal diameter of circle/ellipse, pixelsh
- vertical diameter of circle/ellipse, pixelsrotateAngle
- angle of rotation in Radianspublic OMEllipse(LatLonPoint centerPoint, int offset_x1, int offset_y1, int w, int h, double rotateAngle)
centerPoint
- latitude/longitude of center point, 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.public void setAxis(double majorAxis, double minorAxis, Length units)
majorAxis
- x direction of ellipse.minorAxis
- y direction of ellipse.units
- com.bbn.openmap.proj.Length object describing units of axis
values.public void setCenter(LatLonPoint llp)
OMArc
public double getMajorAxis()
public double getMinorAxis()
public double[] getLatLonPoints()
public double[] createLatLonPoints()
public boolean generate(Projection proj)
OMArc
generate
in interface OMGeometry
generate
in class OMArc
proj
- ProjectionOMGraphicAdapter.regenerate(com.bbn.openmap.proj.Projection)
public void restore(OMGeometry source)
OMGraphicAdapter
restore
in interface OMGeometry
restore
in class OMArc
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details