Package org.opentcs.access.to.model
Class PointCreationTO.Layout
java.lang.Object
org.opentcs.access.to.model.PointCreationTO.Layout
- All Implemented Interfaces:
Serializable
- Enclosing class:
PointCreationTO
Contains information regarding the grahical representation of a point.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the offset of the label's position to the point's position (in lu).int
Returns the ID of the layer on which the point is to be drawn.Returns the coordinates at which the point is to be drawn (in mm).toString()
withLabelOffset
(Couple labelOffset) Creates a copy of this object, with the given X label offset.withLayerId
(int layerId) Creates a copy of this object, with the given layer ID.withPosition
(Couple position) Creates a copy of this object, with the given position.
-
Constructor Details
-
Layout
public Layout()Creates a new instance. -
Layout
Creates a new instance.- Parameters:
position
- The coordinates at which the point is to be drawn (in mm).labelOffset
- The offset of the label's position to the point's position (in lu).layerId
- The ID of the layer on which the point is to be drawn.
-
-
Method Details
-
getPosition
Returns the coordinates at which the point is to be drawn (in mm).- Returns:
- The coordinates at which the point is to be drawn (in mm).
-
withPosition
Creates a copy of this object, with the given position.- Parameters:
position
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getLabelOffset
Returns the offset of the label's position to the point's position (in lu).- Returns:
- The offset of the label's position to the point's position (in lu).
-
withLabelOffset
Creates a copy of this object, with the given X label offset.- Parameters:
labelOffset
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getLayerId
public int getLayerId()Returns the ID of the layer on which the point is to be drawn.- Returns:
- The layer ID.
-
withLayerId
Creates a copy of this object, with the given layer ID.- Parameters:
layerId
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
toString
-