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.g2d.routing;
\r
15 public class Constants {
\r
16 static public final int EAST = 0;
\r
17 static public final int SOUTH = 1;
\r
18 static public final int WEST = 2;
\r
19 static public final int NORTH = 3;
\r
21 static public final int EAST_FLAG = 1 << EAST;
\r
22 static public final int SOUTH_FLAG = 1 << SOUTH;
\r
23 static public final int WEST_FLAG = 1 << WEST;
\r
24 static public final int NORTH_FLAG = 1 << NORTH;
\r
26 static public final int POSSIBLE_DIRECTIONS[][] = {
\r
29 new int[] { SOUTH },
\r
30 new int[] { EAST, SOUTH },
\r
32 new int[] { EAST, WEST },
\r
33 new int[] { SOUTH, WEST },
\r
34 new int[] { EAST, SOUTH, WEST },
\r
35 new int[] { NORTH },
\r
36 new int[] { EAST, NORTH },
\r
37 new int[] { SOUTH, NORTH },
\r
38 new int[] { EAST, SOUTH, NORTH },
\r
39 new int[] { WEST, NORTH },
\r
40 new int[] { EAST, WEST, NORTH },
\r
41 new int[] { SOUTH, WEST, NORTH },
\r
42 new int[] { EAST, SOUTH, WEST, NORTH }
\r