|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.omGraphics.geom.BasicGeometry
com.bbn.openmap.omGraphics.OMGraphic
com.bbn.openmap.omGraphics.OMArc
com.bbn.openmap.omGraphics.OMCircle
Graphic object that represents a circle or an ellipse.
We currently do not allow LatLon ellipses, only XY.
These assumptions are virtually the same as those on the more generic OMPoly graphic type.
OMPoly
,
Serialized FormField Summary |
Fields inherited from class com.bbn.openmap.omGraphics.OMArc |
arcType, center, extent, height, nverts, off_x, off_y, radius, rotationAngle, start, width, x1, y1 |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphic |
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
OMCircle()
The simplest constructor for an OMCircle, and it expects that all fields will be filled in later. |
|
OMCircle(float latPoint,
float lonPoint,
float radius)
Creates an OMCircle with a Lat-lon center and a lat-lon axis. |
|
OMCircle(float latPoint,
float lonPoint,
float radius,
Length units)
Create an OMCircle with a lat/lon center and a physical distance radius. |
|
OMCircle(float latPoint,
float lonPoint,
float radius,
Length units,
int nverts)
Create an OMCircle with a lat/lon center and a physical distance radius. |
|
OMCircle(float latPoint,
float lonPoint,
int w,
int h)
Create a OMCircle, positioned with a lat-lon center and x-y axis. |
|
OMCircle(float latPoint,
float lonPoint,
int offset_x1,
int offset_y1,
int w,
int h)
Create a OMCircle, positioned at a Lat-lon location, x-y offset, x-y axis. |
|
OMCircle(int x1,
int y1,
int w,
int h)
Create a OMCircle, positioned with a x-y center with x-y axis. |
|
OMCircle(LatLonPoint center,
float radius,
Length units,
int nverts)
Create an OMCircle with a lat/lon center and a physical distance radius. |
Method Summary | |
protected java.awt.Shape |
createArcShape(float x,
float y,
float fwidth,
float fheight)
An internal method designed to fetch the Shape to be used for an XY or OFFSET OMCircles. |
protected java.util.ArrayList |
getCoordLists(Projection proj,
LatLonPoint center,
float radius,
int nverts)
An internal method designed to fetch the ArrayList for LATLON OMCircles. |
protected boolean |
hasLineTypeChoice()
Used by the GraphicAttributes object to provide a choice on whether the line type choice can be changed. |
protected boolean |
shouldCenterBeInShape()
Helper function that helps the generate method figure out if the center point should be in the generate shape - if it's not, the code knows that there is a problem with the poles, and the polar correction code needs to be run. |
Methods inherited from class com.bbn.openmap.omGraphics.OMArc |
generate, getArcType, getCenter, getExtentAngle, getHeight, getLatLon, getNumVerts, getOffX, getOffY, getPolarCorrection, getPolarShapeLine, getRadius, getRotationAngle, getStartAngle, getWidth, getX, getY, render, setArcType, setCenter, setExtent, setHeight, setLatLon, setNeedToRegenerate, setNumVerts, setOffX, setOffY, setPolarCorrection, setRadius, setRadius, setRotationAngle, setStart, setWidth, setX, setY |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setVisible |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
clearAttributes, contains, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setVisible |
Constructor Detail |
public OMCircle()
public OMCircle(float latPoint, float lonPoint, int w, int h)
latPoint
- latitude of center point, decimal degreeslonPoint
- longitude of center point, decimal degreesw
- horizontal diameter of circle/ellipse, pixelsh
- vertical diameter of circle/ellipse, pixelspublic OMCircle(int x1, int y1, int w, int h)
x1
- window position of center point from left of window,
in pixelsy1
- window position of center point from top of window,
in pixelsw
- horizontal diameter of circle/ellipse, pixelsh
- vertical diameter of circle/ellipse, pixelspublic OMCircle(float latPoint, float lonPoint, int offset_x1, int offset_y1, int w, int h)
latPoint
- latitude of center of circle/ellipse.lonPoint
- longitude of center of circle/ellipse.offset_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 OMCircle(float latPoint, float lonPoint, float radius)
latPoint
- latitude of center point, decimal degreeslonPoint
- longitude of center point, decimal degreesradius
- distance in decimal degrees (converted to radians
internally).public OMCircle(float latPoint, float lonPoint, float radius, Length units)
latPoint
- latitude of center of circle in decimal degreeslonPoint
- longitude of center of circle in decimal
degreesradius
- distanceunits
- com.bbn.openmap.proj.Length object.public OMCircle(float latPoint, float lonPoint, float radius, Length units, int nverts)
latPoint
- latitude of center of circle in decimal degreeslonPoint
- longitude of center of circle in decimal
degreesradius
- distanceunits
- com.bbn.openmap.proj.Length object specifying
units.nverts
- number of vertices for the poly-circle (if <
3, value is generated internally)public OMCircle(LatLonPoint center, float radius, Length units, int nverts)
center
- LatLon center of circleradius
- distanceunits
- com.bbn.openmap.proj.Length object specifying
units for distance.nverts
- number of vertices for the poly-circle(if < 3,
value is generated internally)Method Detail |
protected boolean shouldCenterBeInShape()
shouldCenterBeInShape
in class OMArc
protected java.awt.Shape createArcShape(float x, float y, float fwidth, float fheight)
createArcShape
in class OMArc
protected java.util.ArrayList getCoordLists(Projection proj, LatLonPoint center, float radius, int nverts)
getCoordLists
in class OMArc
protected boolean hasLineTypeChoice()
OMGraphic
hasLineTypeChoice
in class OMGraphic
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |