Package com.mxgraph.view
Class mxConnectionConstraint
java.lang.Object
com.mxgraph.view.mxConnectionConstraint
Defines an object that contains the constraints about how to connect one
side of an edge to its terminal.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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
Modifier and TypeMethodDescriptiongetPoint()
Returns the point.boolean
Returns perimeter.void
setPerimeter
(boolean value) Sets perimeter.void
Sets the point.
-
Field Details
-
point
Point that specifies the fixed location of the connection point. -
perimeter
protected boolean perimeterBoolean that specifies if the point should be projected onto the perimeter of the terminal.
-
-
Constructor Details
-
mxConnectionConstraint
public mxConnectionConstraint()Constructs an empty connection constraint. -
mxConnectionConstraint
Constructs a connection constraint for the given point. -
mxConnectionConstraint
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.
-
-
Method Details
-
getPoint
Returns the point. -
setPoint
Sets the point. -
isPerimeter
public boolean isPerimeter()Returns perimeter. -
setPerimeter
public void setPerimeter(boolean value) Sets perimeter.
-