Package org.opentcs.access.to.model
Klasse LocationCreationTO.Layout
java.lang.Object
org.opentcs.access.to.model.LocationCreationTO.Layout
- Alle implementierten Schnittstellen:
Serializable
- Umschließende Klasse:
LocationCreationTO
Contains information regarding the grahical representation of a location.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungLayout()
Creates a new instance.Layout
(Couple position, Couple labelOffset, LocationRepresentation locationRepresentation, int layerId) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the offset of the label's position to the location's position (in lu).int
Returns the ID of the layer on which the location is to be drawn.Returns the location representation to use.Returns the coordinates at which the location 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.withLocationRepresentation
(LocationRepresentation locationRepresentation) Creates a copy of this object, with the given location representation.withPosition
(Couple position) Creates a copy of this object, with the given position.
-
Konstruktordetails
-
Layout
public Layout()Creates a new instance. -
Layout
public Layout(Couple position, Couple labelOffset, LocationRepresentation locationRepresentation, int layerId) Creates a new instance.- Parameter:
position
- The coordinates at which the location is to be drawn (in mm).labelOffset
- The offset of the label's location to the point's position (in lu).locationRepresentation
- The location representation to use.layerId
- The ID of the layer on which the location is to be drawn.
-
-
Methodendetails
-
getPosition
Returns the coordinates at which the location is to be drawn (in mm).- Gibt zurück:
- The coordinates at which the location is to be drawn (in mm).
-
withPosition
Creates a copy of this object, with the given position.- Parameter:
position
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLabelOffset
Returns the offset of the label's position to the location's position (in lu).- Gibt zurück:
- The offset of the label's position to the location's position (in lu).
-
withLabelOffset
Creates a copy of this object, with the given X label offset.- Parameter:
labelOffset
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLocationRepresentation
Returns the location representation to use.- Gibt zurück:
- The location representation to use.
-
withLocationRepresentation
public LocationCreationTO.Layout withLocationRepresentation(LocationRepresentation locationRepresentation) Creates a copy of this object, with the given location representation.- Parameter:
locationRepresentation
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLayerId
public int getLayerId()Returns the ID of the layer on which the location is to be drawn.- Gibt zurück:
- The layer ID.
-
withLayerId
Creates a copy of this object, with the given layer ID.- Parameter:
layerId
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
toString
-