|
||||||||||
| 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.OMGraphicAdapter
com.bbn.openmap.omGraphics.OMAbstractLine
com.bbn.openmap.omGraphics.OMPoly
com.bbn.openmap.omGraphics.OMSpline
com.bbn.openmap.omGraphics.OMDecoratedSpline
public class OMDecoratedSpline
A decorated splined OMPoly. Decoration list is empty, but accessible via getDecorator() Code from OMPoly, few changes : render() just need to delegate the drawing of the polyline to the ShapeDecorator
| Field Summary |
|---|
| Fields inherited from class com.bbn.openmap.omGraphics.OMPoly |
|---|
coordMode, COORDMODE_ORIGIN, COORDMODE_PREVIOUS, doShapes, geometryClosed, isPolygon, lat, lon, rawllpts, units, xs, ys |
| Fields inherited from class com.bbn.openmap.omGraphics.OMAbstractLine |
|---|
arrowhead, nsegs, xpoints, ypoints |
| Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
|---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
| Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
|---|
attributes, lineType, needToRegenerate, shape, visible |
| Constructor Summary | |
|---|---|
OMDecoratedSpline()
Constructor. |
|
OMDecoratedSpline(double[] llPoints,
int units,
int lType)
Constructor. |
|
OMDecoratedSpline(double[] llPoints,
int units,
int lType,
int nsegs)
Constructor. |
|
OMDecoratedSpline(double latPoint,
double lonPoint,
int[] xypoints,
int cMode)
Constructor. |
|
OMDecoratedSpline(double latPoint,
double lonPoint,
int[] xPoints,
int[] yPoints,
int cMode)
Constructor. |
|
OMDecoratedSpline(int[] xypoints)
Constructor. |
|
OMDecoratedSpline(int[] xPoints,
int[] yPoints)
Constructor. |
|
| Method Summary | |
|---|---|
ShapeDecorator |
getDecorator()
Returns the decorator. |
protected void |
initDecorations()
Called by constructor, may be overriden. |
void |
render(java.awt.Graphics g)
Paint the poly. |
void |
restore(OMGeometry source)
Takes the generic OMGraphic settings from another OMGraphic and pushes them to this one. |
void |
revert()
Should reverts it. |
void |
setDecorator(ShapeDecorator decorator)
Sets the decorator. |
| Methods inherited from class com.bbn.openmap.omGraphics.OMSpline |
|---|
generate |
| Methods inherited from class com.bbn.openmap.omGraphics.OMPoly |
|---|
checkPoints, createShape, distance, getCoordMode, getDoShapes, getIndexOfFirstNodeOfSegIntersect, getLat, getLatLonArray, getLatLonArrayCopy, getLon, getNumSegs, getRawllpts, getShape, getUnits, getXs, getYs, insertRadians, isGeometryClosed, isPolygon, main, setCoordMode, setDoShapes, setFillPaint, setIsPolygon, setLat, setLocation, setLocation, setLocation, setLocation, setLocation, setLon, setNumSegs, setXs, setYs, shouldRenderFill |
| Methods inherited from class com.bbn.openmap.omGraphics.OMAbstractLine |
|---|
addArrowHead, addArrowHead, addArrowHead, addArrowHead, createArrowHeads, getArrowDirectionType, getArrowHead, getArrowLocation, getWingLength, getWingTip, hasArrowHead, restore, setArrowHead |
| Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
|---|
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, 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, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
| Constructor Detail |
|---|
public OMDecoratedSpline()
public OMDecoratedSpline(double[] llPoints,
int units,
int lType)
llPoints - units - lType -
public OMDecoratedSpline(double[] llPoints,
int units,
int lType,
int nsegs)
llPoints - units - lType - nsegs - public OMDecoratedSpline(int[] xypoints)
xypoints -
public OMDecoratedSpline(int[] xPoints,
int[] yPoints)
xPoints - yPoints -
public OMDecoratedSpline(double latPoint,
double lonPoint,
int[] xypoints,
int cMode)
latPoint - lonPoint - xypoints - cMode -
public OMDecoratedSpline(double latPoint,
double lonPoint,
int[] xPoints,
int[] yPoints,
int cMode)
latPoint - lonPoint - xPoints - yPoints - cMode - | Method Detail |
|---|
public void render(java.awt.Graphics g)
render in interface OMGeometryrender in class OMPolyg - java.awt.Graphics to paint the poly onto.public ShapeDecorator getDecorator()
public void setDecorator(ShapeDecorator decorator)
decorator - The decorator to setprotected void initDecorations()
public void revert()
Revertable
revert in interface RevertableRevertable.revert()public void restore(OMGeometry source)
OMGraphicAdapter
restore in interface OMGeometryrestore in class OMPoly
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||