This functionality is only available for certain module packages.

You are here: Tutorial > GRAPH2D discipline > Expanding the configuration with nodes for floor and room > Configuration of the parent node for the container object.

Configuration of the parent node for the container object.

The nodes for Floor and Room should both be able to hold additional nodes. Therefore, container objects are involved. Since both these container objects are similar in many properties, a parent container node is created and the specific nodes for Floor and Room inherit its properties.

  1. Replace the configuration of the node <node id="node"> with the following lines.
<!-- Nodes -->
<!-- Nodes of building components which inherit their properties-->
<node id="abstract_Buildingcomponent">
	<figureContainer figure="com.mind8.graph2d.figure.Container">
		<properties>
			<property id="resizable">
				<read value="true" />
			</property>
			<property id="showScrollBars">
				<read value="false" />
			</property>
			<property id="showLabel">
				<read value="true" />
			</property>
			<property id="boLineStyle">
				<read value="4" />
			</property>
			<property id="boWidth">
				<read value="4" />
			</property>
			<property id="boColor">
				<read value="62,12,144" />
			</property>
			<property id="selectedBoColor">
				<read value="255,0,10" />
			</property>
			<property id="fColor">
				<read value="50,50,50" />
			</property>
			<property id="selectedFColor">
				<read value="10,36,106" />
			</property>
			<property id="bColor">
				<read value="255,255,255" />
			</property>
			<property id="transparency">
				<read value="80" />
			</property>
			<property id="tooltip">
				<read value="=$Tooltip" />
			</property>
		</properties>
	</figureContainer>
</node>
  1. Save the diagram configuration ([Ctrl] + [S]).

Tip:

After insertion from the clipboard, if the formatting in the diagram configuration does not conform to the familiar hierarchical alignment of the tags, the alignment can be corrected with the key combination [Ctrl] + [Shift] + [F].