]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/DataNode.java
Sync git svn branch with SVN repository r33269.
[simantics/platform.git] / bundles / org.simantics.scenegraph / src / org / simantics / scenegraph / g2d / nodes / DataNode.java
1 /*******************************************************************************\r
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
3  * in 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.scenegraph.g2d.nodes;\r
13 \r
14 import java.awt.Graphics2D;\r
15 import java.awt.geom.Rectangle2D;\r
16 \r
17 import org.simantics.scenegraph.ILookupService;\r
18 import org.simantics.scenegraph.g2d.G2DParentNode;\r
19 import org.simantics.scenegraph.g2d.G2DSceneGraph;\r
20 \r
21 /**\r
22  * A non-renderable parent node for the 2D scene graph ({@link G2DSceneGraph}).\r
23  * Does not perform any child rendering, but is meant for storing static/shared\r
24  * data inside a scene graph and making it referable through\r
25  * {@link ILookupService}.\r
26  * \r
27  * @author Tuukka Lehtonen\r
28  */\r
29 public class DataNode extends G2DParentNode {\r
30 \r
31     private static final long serialVersionUID = 6008781343639770034L;\r
32 \r
33     @Override\r
34     public void render(Graphics2D g2d) {\r
35         // This node is meant to prevent rendering anything under it.\r
36     }\r
37 \r
38     @Override\r
39     public Rectangle2D getBoundsInLocal() {\r
40         return null;\r
41     }\r
42 \r
43 }