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