Class ConstraintManager

java.lang.Object
org.openjump.core.ui.plugin.edittoolbox.tab.ConstraintManager

public class ConstraintManager extends Object
Constraint Manager Improved by ioan on 2017-08-05 to honour IncrementalAngle constraint even on the first segment
  • Field Details

  • Constructor Details

    • ConstraintManager

      public ConstraintManager(WorkbenchContext workbenchContext)
  • Method Details

    • constrain

      public org.locationtech.jts.geom.Coordinate constrain(LayerViewPanel panel, List coordinates, org.locationtech.jts.geom.Coordinate targetPt, MouseEvent e)
    • constrainIncrementalAngle

      protected org.locationtech.jts.geom.Coordinate constrainIncrementalAngle(org.locationtech.jts.geom.Coordinate startPt, org.locationtech.jts.geom.Coordinate endPt, org.locationtech.jts.geom.Coordinate targetPt, int angleConstraint)
    • getBearing

      public double getBearing(org.locationtech.jts.geom.Coordinate startPt, org.locationtech.jts.geom.Coordinate endPt)