public class SARTrackExtensionTool extends Object implements MouseListener, PositionListener, PropertyChangeListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreTrackChangeEvents |
protected Position |
potentialNextPosition |
protected SegmentPlaneAttributes.GeometryAttributes |
segmentEndGeomAttribs |
protected SegmentPlaneAttributes.LabelAttributes |
segmentEndLabelAttribs |
protected SARSegmentPlane |
segmentPlane |
protected boolean |
waitingForNextPosition |
Constructor and Description |
---|
SARTrackExtensionTool() |
protected boolean ignoreTrackChangeEvents
protected Position potentialNextPosition
protected SegmentPlaneAttributes.GeometryAttributes segmentEndGeomAttribs
protected SegmentPlaneAttributes.LabelAttributes segmentEndLabelAttribs
protected SARSegmentPlane segmentPlane
protected boolean waitingForNextPosition
public boolean canMoveToNextTrackPoint()
public boolean canRemoveLastTrackPoint()
protected SARPosition computeNextTrackPosition()
protected SARPosition computeNextTrackPosition(Point mousePoint)
protected SegmentPlaneAttributes.GeometryAttributes createPotentialNextPositionGeomAttributes()
protected SegmentPlaneAttributes.LabelAttributes createPotentialNextPositionLabelAttributes()
protected PickedObject getTopPickedObject()
public SARTrack getTrack()
public WorldWindow getWwd()
public boolean isArmed()
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
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
public void moveToNextTrackPoint()
protected void onTrackChanged()
protected SARPosition positionToTrackPosition(Position position)
public void propertyChange(PropertyChangeEvent e)
propertyChange
in interface PropertyChangeListener
public void removeLastTrackPoint()
public void setArmed(boolean armed)
protected void setNextPosition(Position position)
protected void setPotentialNextPosition(Position position)
public void setTrack(SARTrack track)
public void setWorldWindow(WorldWindow wwd)
protected void showSegmentEndPoint(boolean show)
protected void snapPlaneToLastTrackPoint()
protected void snapPlaneToLastTrackSegment()
protected void snapTrackPointToPlanePoint(String planePoint)
protected void start()
protected void stop()