Package com.mxgraph.view
Class mxConnectionConstraint
- java.lang.Object
-
- com.mxgraph.view.mxConnectionConstraint
-
public class mxConnectionConstraint extends java.lang.ObjectDefines an object that contains the constraints about how to connect one side of an edge to its terminal.
-
-
Constructor Summary
Constructors Constructor Description mxConnectionConstraint()Constructs an empty connection constraint.mxConnectionConstraint(mxPoint point)Constructs a connection constraint for the given point.mxConnectionConstraint(mxPoint point, boolean perimeter)Constructs a new connection constraint for the given point and boolean arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description mxPointgetPoint()Returns the point.booleanisPerimeter()Returns perimeter.voidsetPerimeter(boolean value)Sets perimeter.voidsetPoint(mxPoint value)Sets the point.
-
-
-
Field Detail
-
point
protected mxPoint point
Point that specifies the fixed location of the connection point.
-
perimeter
protected boolean perimeter
Boolean that specifies if the point should be projected onto the perimeter of the terminal.
-
-
Constructor Detail
-
mxConnectionConstraint
public mxConnectionConstraint()
Constructs an empty connection constraint.
-
mxConnectionConstraint
public mxConnectionConstraint(mxPoint point)
Constructs a connection constraint for the given point.
-
mxConnectionConstraint
public mxConnectionConstraint(mxPoint point, boolean perimeter)
Constructs a new connection constraint for the given point and boolean arguments.- Parameters:
point- Optional mxPoint that specifies the fixed location of the point in relative coordinates. Default is null.perimeter- Optional boolean that specifies if the fixed point should be projected onto the perimeter of the terminal. Default is true.
-
-