This functionality is only available for certain module packages.

You are here: Tutorial > GRAPH2D discipline > Expanding the configuration with nodes for room components > Configuration of the nodes for room components

Configuration of the nodes for room components

Several nodes must be configured for the room components. To start with, once again, a parent node is configured, which contains, as a common property for all the room components to be displayed with it, the configuration for a tooltip. The tooltip is displayed when the mouse pointer is placed over a room component.

  1. Below the configuration of the node Room, insert the following lines for the parent node of the image object.
<!-- Node of room components -->
<!-- Room component with common properties which is referenced multiple -->
<node id="Component">
	<figureImage figure="com.mind8.graph2d.figure.Image">
		<properties>
				<property id="tooltip">
					<read value="=$Tooltip" />
				</property>
			</properties>
		</figureImage>
	</node>
  1. Under this configuration, insert the following lines.
<!-- Master -->
<node id="Master" super="Component" valid="=isInstanceOf('IT_Architecture.Levelcomponents.RoomComponent')">
<property id="img">
		<read value="=type('IT_ModularSystem.Images.Imageregister').image(this.type)" />
	</property>
	</node>

In order that such a node can be inserted in a Room, the configuration for Room must be expanded with the attribute acceptedChildren="Master".

  1. In the tag <node id="Room"> add the attribute acceptedChildren="Master".
  2. Save the diagram configuration ([Ctrl] + [S]).