Package lu.kbra.modelizer_next.layout
Class LinkLayout
java.lang.Object
lu.kbra.modelizer_next.layout.LinkLayout
Persistent layout information for a link, including bend points and manual routing state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bend points.Returns the link ID.Returns the name label position.voidsetBendPoints(List<Point2D.Double> bendPoints) Sets the bend points.voidSets the link ID.voidsetNameLabelPosition(Point2D.Double nameLabelPosition) Sets the name label position.toString()Builds a debug string for this link layout.
-
Constructor Details
-
LinkLayout
public LinkLayout()Creates a link layout instance.
-
-
Method Details
-
getBendPoints
Returns the bend points.- Returns:
- the bend points
-
getLinkId
Returns the link ID.- Returns:
- the link ID
-
getNameLabelPosition
Returns the name label position.- Returns:
- the name label position
-
setBendPoints
Sets the bend points.- Parameters:
bendPoints- points in canvas coordinates
-
setLinkId
Sets the link ID.- Parameters:
linkId- id of the link to look up or modify
-
setNameLabelPosition
Sets the name label position.- Parameters:
nameLabelPosition- name label position value used by the operation
-
toString
Builds a debug string for this link layout.
-