Class ConstraintManager
java.lang.Object
org.openjump.core.ui.plugin.edittoolbox.tab.ConstraintManager
Constraint Manager
Improved by ioan on 2017-08-05 to honour IncrementalAngle constraint even on the first segment
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Coordinateconstrain(LayerViewPanel panel, List coordinates, org.locationtech.jts.geom.Coordinate targetPt, MouseEvent e) protected org.locationtech.jts.geom.CoordinateconstrainIncrementalAngle(org.locationtech.jts.geom.Coordinate startPt, org.locationtech.jts.geom.Coordinate endPt, org.locationtech.jts.geom.Coordinate targetPt, int angleConstraint) doublegetBearing(org.locationtech.jts.geom.Coordinate startPt, org.locationtech.jts.geom.Coordinate endPt)
-
Field Details
-
CONSTRAIN_LENGTH_ENABLED_KEY
- See Also:
-
CONSTRAIN_INCREMENTAL_ANGLE_ENABLED_KEY
- See Also:
-
CONSTRAIN_ANGLE_ENABLED_KEY
- See Also:
-
LENGTH_CONSTRAINT_KEY
- See Also:
-
INCREMENTAL_ANGLE_SIZE_KEY
- See Also:
-
ANGLE_SIZE_KEY
- See Also:
-
RELATIVE_ANGLE_KEY
- See Also:
-
ABSOLUTE_ANGLE_KEY
- See Also:
-
CONSTRAIN_RECTANGLE_RATIO_ENABLED_KEY
- See Also:
-
RATIO_WIDTH_KEY
- See Also:
-
RATIO_HEIGHT_KEY
- See Also:
-
panel
-
-
Constructor Details
-
ConstraintManager
-
-
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)
-