Package org.opentcs.access.to.model
Klasse VisualLayoutCreationTO
java.lang.Object
org.opentcs.access.to.CreationTO
org.opentcs.access.to.model.VisualLayoutCreationTO
- Alle implementierten Schnittstellen:
Serializable
A transfer object describing a visual layout in the plant model.
- Siehe auch:
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns the layer groups of this visual layout.Returns the layers of this visual layout.double
Returns this layout's scale on the X axis (in mm/pixel).double
Returns this layout's scale on the Y axis (in mm/pixel).toString()
Creates a copy of this object, with the given layer.withLayerGroup
(LayerGroup layerGroup) Creates a copy of this object, with the given layer group.withLayerGroups
(List<LayerGroup> layerGroups) Creates a copy of this object, with the given layer groups.withLayers
(List<Layer> layers) Creates a copy of this object, with the given layers.Creates a copy of this object with the given name.withProperties
(Map<String, String> properties) Creates a copy of this object with the given properties.withProperty
(String key, String value) Creates a copy of this object and adds the given property.withScaleX
(double scaleX) Creates a copy of this object with the layout's scale on the X axis (in mm/pixel).withScaleY
(double scaleY) Creates a copy of this object with the given layout's scale on the Y axis (in mm/pixel).Von Klasse geerbte Methoden org.opentcs.access.to.CreationTO
getModifiableProperties, getName, getProperties, listWithAppendix, mapWithMapping, propertiesWith
-
Konstruktordetails
-
VisualLayoutCreationTO
Creates a new instance.- Parameter:
name
- The name of this visual layout.
-
-
Methodendetails
-
withName
Creates a copy of this object with the given name.- Setzt außer Kraft:
withName
in KlasseCreationTO
- Parameter:
name
- the new name of the instance.- Gibt zurück:
- A copy of this object, differing in the given value.
-
withProperties
Creates a copy of this object with the given properties.- Setzt außer Kraft:
withProperties
in KlasseCreationTO
- Parameter:
properties
- The new properties.- Gibt zurück:
- A copy of this object, differing in the given value.
-
withProperty
Creates a copy of this object and adds the given property. If value == null, then the key-value pair is removed from the properties.- Setzt außer Kraft:
withProperty
in KlasseCreationTO
- Parameter:
key
- the key.value
- the value- Gibt zurück:
- A copy of this object that either includes the given entry in it's current properties, if value != null or excludes the entry otherwise.
-
getScaleX
public double getScaleX()Returns this layout's scale on the X axis (in mm/pixel).- Gibt zurück:
- This layout's scale on the X axis.
-
withScaleX
Creates a copy of this object with the layout's scale on the X axis (in mm/pixel).- Parameter:
scaleX
- The new scale.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getScaleY
public double getScaleY()Returns this layout's scale on the Y axis (in mm/pixel).- Gibt zurück:
- This layout's scale on the Y axis.
-
withScaleY
Creates a copy of this object with the given layout's scale on the Y axis (in mm/pixel).- Parameter:
scaleY
- The new scale.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLayers
Returns the layers of this visual layout.- Gibt zurück:
- The layers of this visual layout.
-
withLayers
Creates a copy of this object, with the given layers.- Parameter:
layers
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
withLayer
Creates a copy of this object, with the given layer.- Parameter:
layer
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
getLayerGroups
Returns the layer groups of this visual layout.- Gibt zurück:
- The layer groups of this visual layout.
-
withLayerGroups
Creates a copy of this object, with the given layer groups.- Parameter:
layerGroups
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
withLayerGroup
Creates a copy of this object, with the given layer group.- Parameter:
layerGroup
- The value to be set in the copy.- Gibt zurück:
- A copy of this object, differing in the given value.
-
toString
-