public abstract class AbstractAirspaceEditor extends AbstractLayer implements AirspaceEditor
Modifier and Type | Field and Description |
---|---|
protected static int |
LOWER_ALTITUDE |
protected static int |
UPPER_ALTITUDE |
Constructor and Description |
---|
AbstractAirspaceEditor() |
AbstractAirspaceEditor(AirspaceControlPointRenderer renderer) |
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
getAirspace
getExpiryTime, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getScale, isAtMaxResolution, isEnabled, isLayerActive, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
propertyChange
onMessage
dispose
getRestorableState, restoreState
protected static final int LOWER_ALTITUDE
protected static final int UPPER_ALTITUDE
public AbstractAirspaceEditor()
public AbstractAirspaceEditor(AirspaceControlPointRenderer renderer)
protected void addControlPoint(DrawContext dc, AirspaceControlPoint controlPoint)
public AirspaceControlPoint addControlPoint(WorldWindow wwd, Airspace airspace, Point mousePoint)
addControlPoint
in interface AirspaceEditor
public void addEditListener(AirspaceEditListener listener)
addEditListener
in interface AirspaceEditor
protected abstract void assembleControlPoints(DrawContext dc)
protected abstract AirspaceControlPoint doAddControlPoint(WorldWindow wwd, Airspace airspace, Point mousePoint)
protected void doMoveAirspaceLaterally(WorldWindow wwd, Airspace airspace, Point mousePoint, Point previousMousePoint)
protected void doMoveAirspaceVertically(WorldWindow wwd, Airspace airspace, Point mousePoint, Point previousMousePoint)
protected abstract void doMoveControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint, Point mousePoint, Point previousMousePoint)
protected void doPick(DrawContext dc, Point point)
doPick
in class AbstractLayer
protected abstract void doRemoveControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint)
protected void doRender(DrawContext dc)
doRender
in class AbstractLayer
protected abstract void doResizeAtControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint, Point mousePoint, Point previousMousePoint)
protected void draw(DrawContext dc, Point pickPoint)
protected void fireAirspaceMoved(AirspaceEditEvent e)
protected void fireAirspaceResized(AirspaceEditEvent e)
protected void fireControlPointAdded(AirspaceEditEvent e)
protected void fireControlPointChanged(AirspaceEditEvent e)
protected void fireControlPointRemoved(AirspaceEditEvent e)
public AirspaceControlPointRenderer getControlPointRenderer()
getControlPointRenderer
in interface AirspaceEditor
protected List<AirspaceControlPoint> getCurrentControlPoints()
public AirspaceEditListener[] getEditListeners()
getEditListeners
in interface AirspaceEditor
public boolean isArmed()
isArmed
in interface AirspaceEditor
public boolean isKeepControlPointsAboveTerrain()
isKeepControlPointsAboveTerrain
in interface AirspaceEditor
public boolean isUseRubberBand()
isUseRubberBand
in interface AirspaceEditor
public void moveAirspaceLaterally(WorldWindow wwd, Airspace airspace, Point mousePoint, Point previousMousePoint)
moveAirspaceLaterally
in interface AirspaceEditor
public void moveAirspaceVertically(WorldWindow wwd, Airspace airspace, Point mousePoint, Point previousMousePoint)
moveAirspaceVertically
in interface AirspaceEditor
public void moveControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint, Point mousePoint, Point previousMousePoint)
moveControlPoint
in interface AirspaceEditor
public void removeControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint)
removeControlPoint
in interface AirspaceEditor
public void removeEditListener(AirspaceEditListener listener)
removeEditListener
in interface AirspaceEditor
public void resizeAtControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint, Point mousePoint, Point previousMousePoint)
resizeAtControlPoint
in interface AirspaceEditor
public void setArmed(boolean armed)
setArmed
in interface AirspaceEditor
public void setControlPointRenderer(AirspaceControlPointRenderer renderer)
setControlPointRenderer
in interface AirspaceEditor
protected void setCurrentControlPoints(List<? extends AirspaceControlPoint> controlPointList)
public void setKeepControlPointsAboveTerrain(boolean state)
setKeepControlPointsAboveTerrain
in interface AirspaceEditor
public void setUseRubberBand(boolean state)
setUseRubberBand
in interface AirspaceEditor