Class VisualLayout
- All Implemented Interfaces:
Serializable
Describes the visual attributes of a model.
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the layer groups of this layout.Returns the layers of this 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).withHistory
(ObjectHistory history) Creates a copy of this object, with the given history.Creates a copy of this object, with the given history entry integrated.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.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, with the given property integrated.withScaleX
(double scaleX) Creates a copy of this object, with the given scaleX.withScaleY
(double scaleY) Creates a copy of this object, with the given scaleY.Methods inherited from class org.opentcs.data.TCSObject
equals, getHistory, getName, getProperties, getProperty, getReference, hashCode, listWithoutNullValues, mapWithoutNullValues, propertiesWith, setWithoutNullValues, toString
-
Constructor Details
-
VisualLayout
Creates a new VisualLayout.- Parameters:
name
- This visual layout's name.
-
-
Method Details
-
withProperty
Description copied from class:TCSObject
Creates a copy of this object, with the given property integrated.- Specified by:
withProperty
in classTCSObject<VisualLayout>
- Parameters:
key
- The key of the property to be changed.value
- The new value of the property, ornull
, if the property is to be removed.- Returns:
- A copy of this object, with the given property integrated.
-
withProperties
Description copied from class:TCSObject
Creates a copy of this object, with the given properties.- Specified by:
withProperties
in classTCSObject<VisualLayout>
- Parameters:
properties
- The properties.- Returns:
- A copy of this object, with the given properties.
-
withHistoryEntry
Description copied from class:TCSObject
Creates a copy of this object, with the given history entry integrated.- Specified by:
withHistoryEntry
in classTCSObject<VisualLayout>
- Parameters:
entry
- The history entry to be integrated.- Returns:
- A copy of this object, with the given history entry integrated.
-
withHistory
Description copied from class:TCSObject
Creates a copy of this object, with the given history.- Specified by:
withHistory
in classTCSObject<VisualLayout>
- Parameters:
history
- The history.- Returns:
- A copy of this object, with the given history.
-
getScaleX
public double getScaleX()Returns this layout's scale on the X axis (in mm/pixel).- Returns:
- This layout's scale on the X axis.
-
withScaleX
Creates a copy of this object, with the given scaleX.- Parameters:
scaleX
- The value to be set in the copy.- Returns:
- 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).- Returns:
- This layout's scale on the Y axis.
-
withScaleY
Creates a copy of this object, with the given scaleY.- Parameters:
scaleY
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getLayers
Returns the layers of this layout.- Returns:
- The layers of this layout.
-
withLayers
Creates a copy of this object, with the given layers.- Parameters:
layers
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-
getLayerGroups
Returns the layer groups of this layout.- Returns:
- The layer groups of this layout.
-
withLayerGroups
Creates a copy of this object, with the given layer groups.- Parameters:
layerGroups
- The value to be set in the copy.- Returns:
- A copy of this object, differing in the given value.
-