]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.g2d/src/org/simantics/g2d/scenegraph/SceneGraphConstants.java
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.g2d / src / org / simantics / g2d / scenegraph / SceneGraphConstants.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.g2d.scenegraph;\r
13 \r
14 import org.simantics.g2d.canvas.impl.CanvasContext;\r
15 import org.simantics.scenegraph.g2d.G2DSceneGraph;\r
16 import org.simantics.scenegraph.g2d.nodes.GridNode;\r
17 \r
18 /**\r
19  * Scene graph related constants for the G2D framework.\r
20  * \r
21  * @author Tuukka Lehtonen\r
22  */\r
23 public final class SceneGraphConstants {\r
24 \r
25     /**\r
26      * The event handler priority of {@link G2DSceneGraph} in a\r
27      * {@link CanvasContext}.\r
28      */\r
29     public static final int      SCENEGRAPH_EVENT_PRIORITY = (1 << 20);\r
30 \r
31     public static final String   NAVIGATION_NODE_NAME      = "navigation";\r
32 \r
33     public static final String[] NAVIGATION_NODE_PATH      = { NAVIGATION_NODE_NAME };\r
34 \r
35     public static final String   DATA_NODE_NAME            = "data";\r
36 \r
37     public static final String[] DATA_NODE_PATH            = { DATA_NODE_NAME };\r
38 \r
39     public static final String   GRID_NODE_NAME            = GridNode.GRID_NODE_ID;\r
40 \r
41     public static final String   SELECTIONS_NODE_NAME      = "selections";\r
42 \r
43     public static final String[] SELECTIONS_NODE_PATH      = { DATA_NODE_NAME, SELECTIONS_NODE_NAME };\r
44 \r
45 }\r