public class ExtrudedPolygonEditor extends AbstractShapeEditor
Modifier and Type | Class and Description |
---|---|
protected static class |
ExtrudedPolygonEditor.ControlPointMarker |
Modifier and Type | Field and Description |
---|---|
protected ExtrudedPolygonEditor.ControlPointMarker |
activeControlPoint |
protected int |
activeControlPointIndex |
static String |
CHANGE_HEIGHT_ACTION |
protected BasicMarkerAttributes |
heightControlAttributes |
protected MarkerRenderer |
markerRenderer |
static String |
MOVE_POLYGON_ACTION |
static String |
MOVE_VERTEX_ACTION |
protected ExtrudedPolygon |
polygon |
protected BasicMarkerAttributes |
vertexControlAttributes |
aboveGround, ACCUMULATED_LABEL, activeAction, ALTITUDE_LABEL, altitudeMode, ANGLE_LABEL, annotation, annotationAttributes, AREA_LABEL, armed, CENTER_ALTITUDE_LABEL, CENTER_LATITUDE_LABEL, CENTER_LONGITUDE_LABEL, EAST_SKEW_LABEL, editMode, frameTimestamp, HEADING_LABEL, HEIGHT_LABEL, LATITUDE_LABEL, LENGTH_LABEL, LONGITUDE_LABEL, MAJOR_AXIS_LABEL, MINOR_AXIS_LABEL, mousePoint, NORTH_SKEW_LABEL, PERIMETER_LABEL, RADIUS_LABEL, ROLL_LABEL, showAnnotation, TILT_LABEL, unitsFormat, WIDTH_LABEL, wwd
Constructor and Description |
---|
ExtrudedPolygonEditor() |
arePositionsRedundant, getAltitudeMode, getAnnotationAttributes, getLabel, getWorldWindow, initializeAnnotation, isAboveGround, isArmed, isShowAnnotation, setAboveGround, setAltitudeMode, setAnnotationAttributes, setArmed, setInitialLabels, setLabel, setShowAnnotation, setWorldWindow
createLayerConfigElements, dispose, doPreRender, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getRestorableState, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, restoreState, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
onMessage, propertyChange
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
protected ExtrudedPolygonEditor.ControlPointMarker activeControlPoint
protected int activeControlPointIndex
public static final String CHANGE_HEIGHT_ACTION
protected BasicMarkerAttributes heightControlAttributes
protected MarkerRenderer markerRenderer
public static final String MOVE_POLYGON_ACTION
public static final String MOVE_VERTEX_ACTION
protected ExtrudedPolygon polygon
protected BasicMarkerAttributes vertexControlAttributes
protected void addVertex(Point mousePoint)
mousePoint
- the point at which the mouse was clicked. The new vertex will be placed as near as possible to
this point, at the elevation of the polygon.protected void assembleControlPoints(DrawContext dc)
protected void assembleHeightControlPoints()
protected void assembleMarkerAttributes()
protected void assembleVertexControlPoints(DrawContext dc)
protected void doPick(DrawContext dc, Point point)
doPick
in class AbstractLayer
protected void doRender(DrawContext dc)
doRender
in class AbstractLayer
public String getEditMode()
getEditMode
in class AbstractShapeEditor
public ExtrudedPolygon getPolygon()
protected Vec4 intersectPolygonAltitudeAt(Line ray)
ray
- Ray to intersect with the globe.public void mouseClicked(MouseEvent e)
public void mouseDragged(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseMoved(MouseEvent e)
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
protected void moveControlPoint(ExtrudedPolygonEditor.ControlPointMarker controlPoint, Point lastMousePoint, Point moveToPoint)
protected void removeVertex(ExtrudedPolygonEditor.ControlPointMarker vertexToRemove)
vertexToRemove
- the vertex to remove.public void setEditMode(String editMode)
setEditMode
in class AbstractShapeEditor
public void setPolygon(ExtrudedPolygon polygon)
public void setShape(AbstractShape shape)
setShape
in class AbstractShapeEditor
public void updateAnnotation(Position pos)
updateAnnotation
in class AbstractShapeEditor