public class AirspaceEditorController
extends java.lang.Object
implements java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
ADD_CONTROL_POINT |
protected static java.lang.String |
MOVE_AIRSPACE_LATERALLY |
protected static java.lang.String |
MOVE_AIRSPACE_VERTICALLY |
protected static java.lang.String |
MOVE_CONTROL_POINT |
protected static java.lang.String |
REMOVE_CONTROL_POINT |
protected static java.lang.String |
RESIZE_AIRSPACE |
Constructor and Description |
---|
AirspaceEditorController() |
AirspaceEditorController(WorldWindow wwd) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.awt.Cursor> |
getActionCursorMap() |
java.lang.String |
getActiveAction() |
protected Airspace |
getActiveAirspace() |
protected AirspaceControlPoint |
getActiveControlPoint() |
protected java.awt.Cursor |
getCursorFor(java.awt.event.InputEvent e) |
AirspaceEditor |
getEditor() |
protected java.awt.Point |
getMousePoint() |
protected java.lang.String |
getPotentialActionFor(java.awt.event.InputEvent e) |
protected Airspace |
getTopOwnedAirspaceAtCurrentPosition() |
protected AirspaceControlPoint |
getTopOwnedControlPointAtCurrentPosition() |
protected java.lang.Object |
getTopPickedObject() |
WorldWindow |
getWorldWindow() |
protected void |
handleAirspaceDragged(Airspace airspace,
java.awt.event.MouseEvent e,
java.awt.Point lastMousePoint) |
protected AirspaceControlPoint |
handleControlPointAdded(Airspace airspace,
java.awt.event.MouseEvent mouseEvent) |
protected void |
handleControlPointDragged(AirspaceControlPoint controlPoint,
java.awt.event.MouseEvent e,
java.awt.Point lastMousePoint) |
protected void |
handleControlPointRemoved(AirspaceControlPoint controlPoint,
java.awt.event.MouseEvent mouseEvent) |
boolean |
isActive() |
void |
keyPressed(java.awt.event.KeyEvent e) |
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e) |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
protected void |
setActive(boolean active) |
protected void |
setActiveAction(java.lang.String action) |
protected void |
setActiveAirspace(Airspace airspace) |
protected void |
setActiveControlPoint(AirspaceControlPoint controlPoint) |
void |
setEditor(AirspaceEditor editor) |
protected void |
setMousePoint(java.awt.Point point) |
protected void |
setupActionCursorMap() |
void |
setWorldWindow(WorldWindow wwd) |
protected void |
updateCursor(java.awt.event.InputEvent e) |
protected static final java.lang.String ADD_CONTROL_POINT
protected static final java.lang.String MOVE_AIRSPACE_LATERALLY
protected static final java.lang.String MOVE_AIRSPACE_VERTICALLY
protected static final java.lang.String MOVE_CONTROL_POINT
protected static final java.lang.String REMOVE_CONTROL_POINT
protected static final java.lang.String RESIZE_AIRSPACE
public AirspaceEditorController()
public AirspaceEditorController(WorldWindow wwd)
protected java.util.Map<java.lang.String,java.awt.Cursor> getActionCursorMap()
public java.lang.String getActiveAction()
protected Airspace getActiveAirspace()
protected AirspaceControlPoint getActiveControlPoint()
protected java.awt.Cursor getCursorFor(java.awt.event.InputEvent e)
public AirspaceEditor getEditor()
protected java.awt.Point getMousePoint()
protected java.lang.String getPotentialActionFor(java.awt.event.InputEvent e)
protected Airspace getTopOwnedAirspaceAtCurrentPosition()
protected AirspaceControlPoint getTopOwnedControlPointAtCurrentPosition()
protected java.lang.Object getTopPickedObject()
public WorldWindow getWorldWindow()
protected void handleAirspaceDragged(Airspace airspace, java.awt.event.MouseEvent e, java.awt.Point lastMousePoint)
protected AirspaceControlPoint handleControlPointAdded(Airspace airspace, java.awt.event.MouseEvent mouseEvent)
protected void handleControlPointDragged(AirspaceControlPoint controlPoint, java.awt.event.MouseEvent e, java.awt.Point lastMousePoint)
protected void handleControlPointRemoved(AirspaceControlPoint controlPoint, java.awt.event.MouseEvent mouseEvent)
public boolean isActive()
public void keyPressed(java.awt.event.KeyEvent e)
keyPressed
in interface java.awt.event.KeyListener
public void keyReleased(java.awt.event.KeyEvent e)
keyReleased
in interface java.awt.event.KeyListener
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
protected void setActive(boolean active)
protected void setActiveAction(java.lang.String action)
protected void setActiveAirspace(Airspace airspace)
protected void setActiveControlPoint(AirspaceControlPoint controlPoint)
public void setEditor(AirspaceEditor editor)
protected void setMousePoint(java.awt.Point point)
protected void setupActionCursorMap()
public void setWorldWindow(WorldWindow wwd)
protected void updateCursor(java.awt.event.InputEvent e)