Package org.opentcs.access.to.model
Klasse PathCreationTO.Layout
java.lang.Object
org.opentcs.access.to.model.PathCreationTO.Layout
- Alle implementierten Schnittstellen:
Serializable
- Umschließende Klasse:
PathCreationTO
Contains information regarding the grahical representation of a path.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorBeschreibungLayout()
Creates a new instance.Layout
(Path.Layout.ConnectionType connectionType, List<Couple> controlPoints, int layerId) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the connection type the path is represented as.Returns the control points describing the way the path is drawn.int
Returns the ID of the layer on which the path is to be drawn.toString()
withConnectionType
(Path.Layout.ConnectionType connectionType) Creates a copy of this object, with the given connection type.withControlPoints
(List<Couple> controlPoints) Creates a copy of this object, with the given control points.withLayer
(int layerId) Creates a copy of this object, with the given layer ID.
-
Konstruktordetails
-
Layout
public Layout()Creates a new instance. -
Layout
Creates a new instance.- Parameter:
connectionType
- The connection type a path is represented as.controlPoints
- Control points describing the way the path is drawn.layerId
- The ID of the layer on which the path is to be drawn.
-
-
Methodendetails
-
getConnectionType
Returns the connection type the path is represented as.- Gibt zurück:
- The connection type the path is represented as.
-
withConnectionType
Creates a copy of this object, with the given connection type.- Parameter:
connectionType
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getControlPoints
Returns the control points describing the way the path is drawn. Returns an empty list if connection type is notPath.Layout.ConnectionType.BEZIER
,Path.Layout.ConnectionType.BEZIER_3
orPath.Layout.ConnectionType.POLYPATH
.- Gibt zurück:
- The control points describing the way the path is drawn.
-
withControlPoints
Creates a copy of this object, with the given control points.- Parameter:
controlPoints
- 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 path is to be drawn.- Gibt zurück:
- The layer ID.
-
withLayer
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
-