Class NodeLayout

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

public class NodeLayout extends Object
Persistent layout information for a class or comment node on the canvas.
  • Constructor Details

    • NodeLayout

      public NodeLayout()
      Creates a node layout instance.
  • Method Details

    • getObjectId

      public String getObjectId()
      Returns the object ID.
      Returns:
      the object ID
    • getObjectType

      public LayoutObjectType getObjectType()
      Returns the object type.
      Returns:
      the object type
    • getPosition

      public Point2D.Double getPosition()
      Returns the position.
      Returns:
      the position
    • getSize

      public Size2D getSize()
      Returns the size.
      Returns:
      the size
    • setObjectId

      public void setObjectId(String objectId)
      Sets the object ID.
      Parameters:
      objectId - id of the element to read or modify
    • setObjectType

      public void setObjectType(LayoutObjectType objectType)
      Sets the object type.
      Parameters:
      objectType - type value to use
    • setPosition

      public void setPosition(Point2D.Double position)
      Sets the position.
      Parameters:
      position - position value used by the operation
    • setSize

      public void setSize(Size2D size)
      Sets the size.
      Parameters:
      size - size value used by the operation
    • toString

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