KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > jawe > JaWEConstants


1 /* JaWEConstants.java
2  *
3  * Authors:
4  * Stefanovic Nenad chupo@iis.ns.ac.yu
5  * Bojanic Sasa sasaboy@neobee.net
6  * Puskas Vladimir vpuskas@eunet.yu
7  * Pilipovic Goran zboniek@uns.ac.yu
8  *
9  */

10
11 package org.enhydra.jawe;
12
13 import java.util.*;
14 import java.awt.*;
15 import javax.swing.*;
16
17 /**
18 * Used to hold various static variables to be easily acessed
19 * from anywhere.
20 */

21 public class JaWEConstants {
22
23    public static final int TYPE_OF_ELEMENT_NORMAL=0;
24    public static final int TYPE_OF_ELEMENT_STARTING=1;
25    public static final int TYPE_OF_ELEMENT_ENDING=2;
26    public static final int TYPE_OF_ELEMENT_STANDALONE=3;
27
28    public static final int PROCESS_OFFSET=50;
29    public static final int HOW_MANY_PROCESSES_IN_ONE_ROW=3;
30    public static final double PROCESS_DISTANCE_COEFF=1.5;
31
32    public static final Stroke DEPARTMENT_STROKE=new BasicStroke(2);
33
34    public static final String JavaDoc JAWE_USER_HOME=System.getProperty("user.home")+"/.JaWE";
35    public static final String JavaDoc RFL_FILENAME = "/.rfl";
36    public static final String JavaDoc RURL_FILENAME = "/.rurls";
37    public static final String JavaDoc JAWE_CONF_FILENAME = "/JaWE.conf";
38
39    /** Suffix applied to the key used in resource file lookups for an image. */
40    public static final String JavaDoc IMAGE_SUFFIX = "Image";
41    /** Suffix applied to the key used in resource file lookups for a label. */
42    public static final String JavaDoc LABEL_SUFFIX = "Label";
43    /** Suffix applied to the key used in resource file lookups for an action. */
44    public static final String JavaDoc ACTION_SUFFIX = "Action";
45    /** Suffix applied to the key used in resource file lookups for a submenu. */
46    public static final String JavaDoc MENU_SUFFIX = "Menu";
47    /** Suffix applied to the key used in resource file lookups for a menuitem */
48    public static final String JavaDoc ACCEL_SUFFIX = "Accel";
49    /** Suffix applied to the key used in resource file lookups for a menuitem */
50    public static final String JavaDoc MNEMONIC_SUFFIX = "Mnemonic";
51    /** Suffix applied to the key used in resource file lookups for tooltip text. */
52    public static final String JavaDoc TIP_SUFFIX = "Tooltip";
53
54    // Some static final String's for accessing appropriate stuff from resource
55
public static final String JavaDoc SELECT_TOOL = "selectTool";
56    public static final String JavaDoc PROCESS_ACTIVITY_TOOL = "processActivityTool";
57    public static final String JavaDoc PARTICIPANT_TOOL = "participantTool";
58    public static final String JavaDoc SUBFLOW_ACTIVITY_TOOL = "subflowActivityTool";
59    public static final String JavaDoc BLOCK_ACTIVITY_TOOL = "blockActivityTool";
60    public static final String JavaDoc START_TOOL = "startTool";
61    public static final String JavaDoc END_TOOL = "endTool";
62    public static final String JavaDoc AUTOMATIC_START_END_TOOL = "automaticStartEndTool";
63    public static final String JavaDoc GENERIC_ACTIVITY_TOOL = "genericActivityTool";
64    public static final String JavaDoc ROUTE_ACTIVITY_TOOL = "routeActivityTool";
65    public static final String JavaDoc TRANSITION_TOOL = "transitionTool";
66    public static final String JavaDoc SELF_ROUTED_TRANSITION_TOOL = "selfRoutedTransitionTool";
67    public static final String JavaDoc CIRCULAR_TRANSITION_TOOL = "circularTransitionTool";
68    public static final String JavaDoc REFERRED_DOCUMENT = "ReferredDocument";
69
70
71    public static final String JavaDoc APPLICATION_NAME="JaWE";
72    public static final String JavaDoc RESOURCE_PATH="org.enhydra.jawe.resources.JaWE";
73
74
75
76 }
77
Popular Tags