Class ConstrainedNClickTool

All Implemented Interfaces:
CursorTool, MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
DrawCustomTool

public abstract class ConstrainedNClickTool extends ConstrainedMultiClickTool
Whereas a MultiClickTool looks for a double-click to end the gesture, an NClickTool looks for a certain number of points to end the gesture.
  • Field Details

    • n

      protected int n
  • Constructor Details

    • ConstrainedNClickTool

      public ConstrainedNClickTool(WorkbenchContext context)
  • Method Details

    • getModelSource

      protected org.locationtech.jts.geom.Coordinate getModelSource()
    • getModelDestination

      protected org.locationtech.jts.geom.Coordinate getModelDestination()
    • isFinishingRelease

      protected boolean isFinishingRelease(MouseEvent e)
      Overrides:
      isFinishingRelease in class ConstrainedMultiClickTool