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
10 * VTT Technical Research Centre of Finland - initial API and implementation
\r
11 *******************************************************************************/
\r
12 package org.simantics.scenegraph.g2d.nodes;
\r
14 import java.awt.Graphics2D;
\r
15 import java.awt.geom.Rectangle2D;
\r
17 import org.simantics.scenegraph.ILookupService;
\r
18 import org.simantics.scenegraph.g2d.G2DParentNode;
\r
19 import org.simantics.scenegraph.g2d.G2DSceneGraph;
\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
27 * @author Tuukka Lehtonen
\r
29 public class DataNode extends G2DParentNode {
\r
31 private static final long serialVersionUID = 6008781343639770034L;
\r
34 public void render(Graphics2D g2d) {
\r
35 // This node is meant to prevent rendering anything under it.
\r
39 public Rectangle2D getBoundsInLocal() {
\r