1 /*******************************************************************************
2 * Copyright (c) 2007, 2010 Association for Decentralized Information Management
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * which accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
10 * VTT Technical Research Centre of Finland - initial API and implementation
11 *******************************************************************************/
12 package org.simantics.g2d.scenegraph;
14 import org.simantics.g2d.canvas.impl.CanvasContext;
15 import org.simantics.scenegraph.g2d.G2DSceneGraph;
16 import org.simantics.scenegraph.g2d.nodes.GridNode;
19 * Scene graph related constants for the G2D framework.
21 * @author Tuukka Lehtonen
23 public final class SceneGraphConstants {
26 * The event handler priority of {@link G2DSceneGraph} in a
27 * {@link CanvasContext}.
29 public static final int SCENEGRAPH_EVENT_PRIORITY = (1 << 20);
31 public static final String NAVIGATION_NODE_NAME = "navigation";
33 public static final String[] NAVIGATION_NODE_PATH = { NAVIGATION_NODE_NAME };
35 public static final String DATA_NODE_NAME = "data";
37 public static final String[] DATA_NODE_PATH = { DATA_NODE_NAME };
39 public static final String GRID_NODE_NAME = GridNode.GRID_NODE_ID;
41 public static final String SELECTIONS_NODE_NAME = "selections";
43 public static final String[] SELECTIONS_NODE_PATH = { DATA_NODE_NAME, SELECTIONS_NODE_NAME };
45 public static final String SPATIAL_ROOT_NODE_NAME = "spatialRoot";
47 public static final String SPATIAL_ROOT_NODE_ID = SPATIAL_ROOT_NODE_NAME;