public class SegmentPlaneController extends Object implements MouseListener, MouseMotionListener, PositionListener
Modifier and Type | Field and Description |
---|---|
protected PickedObject |
activePickedObject |
protected Point |
lastMousePoint |
protected Point |
mousePoint |
Constructor and Description |
---|
SegmentPlaneController(WorldWindow wwd) |
Modifier and Type | Method and Description |
---|---|
protected SegmentPlaneAttributes |
getAttributesFor(SegmentPlaneAttributes attributes) |
protected Cursor |
getCursor() |
SegmentPlaneEditor |
getEditor() |
protected PickedObject |
getTopOwnedControlPoint() |
WorldWindow |
getWorldWindow() |
protected void |
handleObjectMoved(PickedObject object,
Point mousePoint,
Point lastMousePoint) |
boolean |
isActive() |
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
moved(PositionEvent e) |
protected void |
setActive(boolean active) |
void |
setEditor(SegmentPlaneEditor editor) |
void |
setWorldWindow(WorldWindow wwd) |
protected void |
updateAttributes() |
protected void |
updateCursor() |
protected PickedObject activePickedObject
protected Point lastMousePoint
protected Point mousePoint
public SegmentPlaneController(WorldWindow wwd)
protected SegmentPlaneAttributes getAttributesFor(SegmentPlaneAttributes attributes)
protected Cursor getCursor()
public SegmentPlaneEditor getEditor()
protected PickedObject getTopOwnedControlPoint()
public WorldWindow getWorldWindow()
protected void handleObjectMoved(PickedObject object, Point mousePoint, Point lastMousePoint)
public boolean isActive()
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
public void moved(PositionEvent e)
moved
in interface PositionListener
protected void setActive(boolean active)
public void setEditor(SegmentPlaneEditor editor)
public void setWorldWindow(WorldWindow wwd)
protected void updateAttributes()
protected void updateCursor()