Class APolyClickRubberband

All Implemented Interfaces:
MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
RubberPolygon, RubberPolyline

public abstract class APolyClickRubberband extends AClickRubberband
Click-based multi-point gesture: - single click adds a vertex - double click ends (by default does not add a final point)
  • Constructor Details

  • Method Details

    • minPointsToAccept

      protected int minPointsToAccept()
      Minimum required points before accepting end.
    • addPointOnDoubleClick

      protected boolean addPointOnDoubleClick()
      Whether the double-click should also add a final point. Old monolith behavior typically ended without adding.
    • mousePressed

      public void mousePressed(MouseEvent e)
      Specified by:
      mousePressed in interface MouseListener
      Overrides:
      mousePressed in class ARubberband