]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/scenegraph/SceneGraphConstants.java
Performance and resource consumption optimization for G2D picking
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / scenegraph / SceneGraphConstants.java
1 /*******************************************************************************
2  * Copyright (c) 2007, 2010 Association for Decentralized Information Management
3  * in Industry THTH ry.
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
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.g2d.scenegraph;
13
14 import org.simantics.g2d.canvas.impl.CanvasContext;
15 import org.simantics.scenegraph.g2d.G2DSceneGraph;
16 import org.simantics.scenegraph.g2d.nodes.GridNode;
17
18 /**
19  * Scene graph related constants for the G2D framework.
20  * 
21  * @author Tuukka Lehtonen
22  */
23 public final class SceneGraphConstants {
24
25     /**
26      * The event handler priority of {@link G2DSceneGraph} in a
27      * {@link CanvasContext}.
28      */
29     public static final int      SCENEGRAPH_EVENT_PRIORITY = (1 << 20);
30
31     public static final String   NAVIGATION_NODE_NAME      = "navigation";
32
33     public static final String[] NAVIGATION_NODE_PATH      = { NAVIGATION_NODE_NAME };
34
35     public static final String   DATA_NODE_NAME            = "data";
36
37     public static final String[] DATA_NODE_PATH            = { DATA_NODE_NAME };
38
39     public static final String   GRID_NODE_NAME            = GridNode.GRID_NODE_ID;
40
41     public static final String   SELECTIONS_NODE_NAME      = "selections";
42
43     public static final String[] SELECTIONS_NODE_PATH      = { DATA_NODE_NAME, SELECTIONS_NODE_NAME };
44
45     public static final String   SPATIAL_ROOT_NODE_NAME    = "spatialRoot";
46
47     public static final String   SPATIAL_ROOT_NODE_ID      = SPATIAL_ROOT_NODE_NAME;
48
49 }