]> gerrit.simantics Code Review - simantics/3d.git/blob - org.simantics.g3d/src/org/simantics/g3d/scenegraph/base/NodeListener.java
0ed428cd8c7ce2aaf1c7f9a44db318f558a68650
[simantics/3d.git] / org.simantics.g3d / src / org / simantics / g3d / scenegraph / base / NodeListener.java
1 /*******************************************************************************\r
2  * Copyright (c) 2012, 2013 Association for Decentralized Information Management in\r
3  * Industry THTH ry.\r
4  * All rights reserved. This program and the accompanying materials\r
5  * are made available under the terms of the Eclipse Public License v1.0\r
6  * which accompanies this distribution, and is available at\r
7  * http://www.eclipse.org/legal/epl-v10.html\r
8  *\r
9  * Contributors:\r
10  *     VTT Technical Research Centre of Finland - initial API and implementation\r
11  *******************************************************************************/\r
12 package org.simantics.g3d.scenegraph.base;\r
13 \r
14 \r
15 public interface NodeListener {\r
16 \r
17         /**\r
18          * Event occurring when a node's property is changed\r
19          * @param node\r
20          * @param child\r
21          * @param rel\r
22          */\r
23         public void propertyChanged(INode node, String id);\r
24         \r
25         /**\r
26          * Event occurring when a new node is added to the scene-graph\r
27          * @param node\r
28          * @param child\r
29          * @param rel\r
30          */\r
31         public <T extends INode> void nodeAdded(ParentNode<T> node, INode child, String rel);\r
32         \r
33         /**\r
34          * Event occurring when a node is removed from the scene-graph\r
35          * @param nodeThe node, which contained the removed node.\r
36          * @param child The removed node.\r
37          * @param rel \r
38          */\r
39         public <T extends INode> void nodeRemoved(ParentNode<T> node, INode child, String rel);\r
40 }\r