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) |
Modifier and Type | Method and Description |
---|---|
protected void |
addControlPoint(DrawContext dc,
AirspaceControlPoint controlPoint) |
AirspaceControlPoint |
addControlPoint(WorldWindow wwd,
Airspace airspace,
java.awt.Point mousePoint) |
void |
addEditListener(AirspaceEditListener listener) |
protected abstract void |
assembleControlPoints(DrawContext dc) |
protected abstract AirspaceControlPoint |
doAddControlPoint(WorldWindow wwd,
Airspace airspace,
java.awt.Point mousePoint) |
protected void |
doMoveAirspaceLaterally(WorldWindow wwd,
Airspace airspace,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
protected void |
doMoveAirspaceVertically(WorldWindow wwd,
Airspace airspace,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
protected abstract void |
doMoveControlPoint(WorldWindow wwd,
AirspaceControlPoint controlPoint,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
protected void |
doPick(DrawContext dc,
java.awt.Point point) |
protected abstract void |
doRemoveControlPoint(WorldWindow wwd,
AirspaceControlPoint controlPoint) |
protected void |
doRender(DrawContext dc) |
protected abstract void |
doResizeAtControlPoint(WorldWindow wwd,
AirspaceControlPoint controlPoint,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
protected void |
draw(DrawContext dc,
java.awt.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) |
AirspaceControlPointRenderer |
getControlPointRenderer() |
protected java.util.List<AirspaceControlPoint> |
getCurrentControlPoints() |
AirspaceEditListener[] |
getEditListeners() |
boolean |
isArmed() |
boolean |
isKeepControlPointsAboveTerrain() |
boolean |
isUseRubberBand() |
void |
moveAirspaceLaterally(WorldWindow wwd,
Airspace airspace,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
void |
moveAirspaceVertically(WorldWindow wwd,
Airspace airspace,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
void |
moveControlPoint(WorldWindow wwd,
AirspaceControlPoint controlPoint,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
void |
removeControlPoint(WorldWindow wwd,
AirspaceControlPoint controlPoint) |
void |
removeEditListener(AirspaceEditListener listener) |
void |
resizeAtControlPoint(WorldWindow wwd,
AirspaceControlPoint controlPoint,
java.awt.Point mousePoint,
java.awt.Point previousMousePoint) |
void |
setArmed(boolean armed) |
void |
setControlPointRenderer(AirspaceControlPointRenderer renderer) |
protected void |
setCurrentControlPoints(java.util.List<? extends AirspaceControlPoint> controlPointList) |
void |
setKeepControlPointsAboveTerrain(boolean state) |
void |
setUseRubberBand(boolean state) |
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
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, java.awt.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, java.awt.Point mousePoint)
protected void doMoveAirspaceLaterally(WorldWindow wwd, Airspace airspace, java.awt.Point mousePoint, java.awt.Point previousMousePoint)
protected void doMoveAirspaceVertically(WorldWindow wwd, Airspace airspace, java.awt.Point mousePoint, java.awt.Point previousMousePoint)
protected abstract void doMoveControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint, java.awt.Point mousePoint, java.awt.Point previousMousePoint)
protected void doPick(DrawContext dc, java.awt.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, java.awt.Point mousePoint, java.awt.Point previousMousePoint)
protected void draw(DrawContext dc, java.awt.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 java.util.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, java.awt.Point mousePoint, java.awt.Point previousMousePoint)
moveAirspaceLaterally
in interface AirspaceEditor
public void moveAirspaceVertically(WorldWindow wwd, Airspace airspace, java.awt.Point mousePoint, java.awt.Point previousMousePoint)
moveAirspaceVertically
in interface AirspaceEditor
public void moveControlPoint(WorldWindow wwd, AirspaceControlPoint controlPoint, java.awt.Point mousePoint, java.awt.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, java.awt.Point mousePoint, java.awt.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(java.util.List<? extends AirspaceControlPoint> controlPointList)
public void setKeepControlPointsAboveTerrain(boolean state)
setKeepControlPointsAboveTerrain
in interface AirspaceEditor
public void setUseRubberBand(boolean state)
setUseRubberBand
in interface AirspaceEditor