Package lu.kbra.modelizer_next.layout
Class NodeLayout
java.lang.Object
lu.kbra.modelizer_next.layout.NodeLayout
Persistent layout information for a class or comment node on the canvas.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the object ID.Returns the object type.Returns the position.getSize()Returns the size.voidsetObjectId(String objectId) Sets the object ID.voidsetObjectType(LayoutObjectType objectType) Sets the object type.voidsetPosition(Point2D.Double position) Sets the position.voidSets the size.toString()Builds a debug string for this node layout.
-
Constructor Details
-
NodeLayout
public NodeLayout()Creates a node layout instance.
-
-
Method Details
-
getObjectId
Returns the object ID.- Returns:
- the object ID
-
getObjectType
Returns the object type.- Returns:
- the object type
-
getPosition
Returns the position.- Returns:
- the position
-
getSize
Returns the size.- Returns:
- the size
-
setObjectId
Sets the object ID.- Parameters:
objectId- id of the element to read or modify
-
setObjectType
Sets the object type.- Parameters:
objectType- type value to use
-
setPosition
Sets the position.- Parameters:
position- position value used by the operation
-
setSize
Sets the size.- Parameters:
size- size value used by the operation
-
toString
Builds a debug string for this node layout.
-