Class LinkLayout

java.lang.Object
lu.kbra.modelizer_next.layout.LinkLayout

public class LinkLayout extends Object
Persistent layout information for a link, including bend points and manual routing state.
  • Constructor Details

    • LinkLayout

      public LinkLayout()
      Creates a link layout instance.
  • Method Details

    • getBendPoints

      public List<Point2D.Double> getBendPoints()
      Returns the bend points.
      Returns:
      the bend points
    • getLinkId

      public String getLinkId()
      Returns the link ID.
      Returns:
      the link ID
    • getNameLabelPosition

      public Point2D.Double getNameLabelPosition()
      Returns the name label position.
      Returns:
      the name label position
    • setBendPoints

      public void setBendPoints(List<Point2D.Double> bendPoints)
      Sets the bend points.
      Parameters:
      bendPoints - points in canvas coordinates
    • setLinkId

      public void setLinkId(String linkId)
      Sets the link ID.
      Parameters:
      linkId - id of the link to look up or modify
    • setNameLabelPosition

      public void setNameLabelPosition(Point2D.Double nameLabelPosition)
      Sets the name label position.
      Parameters:
      nameLabelPosition - name label position value used by the operation
    • toString

      public String toString()
      Builds a debug string for this link layout.
      Overrides:
      toString in class Object
      Returns:
      a debug string for this object