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 KeyListener
public void keyReleased(KeyEvent e)
keyReleased
in interface KeyListener
public void keyTyped(KeyEvent e)
keyTyped
in interface KeyListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
public void mouseMoved(MouseEvent e)
mouseMoved
in interface MouseMotionListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
protected 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)