KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > modules > xml > nbprefuse > AnalysisConstants


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19
20 /*
21  * AnalysisConstants.java
22  *
23  * Created on January 17, 2006, 12:23 PM
24  *
25  * To change this template, choose Tools | Template Manager
26  * and open the template in the editor.
27  */

28
29 package org.netbeans.modules.xml.nbprefuse;
30
31 import java.awt.BasicStroke JavaDoc;
32 import java.awt.Color JavaDoc;
33 import javax.swing.ImageIcon JavaDoc;
34 import org.netbeans.modules.xml.nbprefuse.render.NbLabelRenderer;
35 /**
36  *
37  * @author Jeri Lockhart
38  */

39 public interface AnalysisConstants {
40     // node and edge attributes
41
public static final String JavaDoc ID = "id"; // NOI18N
42
public static final String JavaDoc LABEL = "label"; // NOI18N
43
public static final String JavaDoc TOOLTIP = "tooltip"; // NOI18N
44
public static final String JavaDoc COMPONENT_TYPE_NAME = "component-type-name"; // NOI18N
45
public static final String JavaDoc SCHEMA_COMPONENT = "schema-component"; // NOI18N
46
public static final String JavaDoc OPENIDE_NODE = "openide-node"; // NOI18N
47
public static final String JavaDoc XAM_COMPONENT = "xam-component"; // NOI18N
48
public static final String JavaDoc FILE_GROUP = "file-group"; // NOI18N
49
public static final String JavaDoc ELEMENT_TYPE = "element-type"; // NOI18N
50
public static final String JavaDoc EDGE_TYPE = "edge-type"; // NOI18N
51
public static final String JavaDoc GENERALIZATION = "generalization"; // NOI18N
52
public static final String JavaDoc COMPOSITION = "composition"; // NOI18N
53
public static final String JavaDoc REFERENCE = "reference"; // NOI18N
54
public static final String JavaDoc XML_FILENAME = "xml-filename"; // NOI18N
55
public static final String JavaDoc FILE_OBJECT = "file-object"; // NOI18N
56
public static final String JavaDoc FILE_TYPE = "file-type "; // NOI18N
57
public static final String JavaDoc SHOW = "show"; // NOI18N
58
public static final String JavaDoc FILE_EDGE_TYPE = "file-edge-type"; // NOI18N
59
public static final String JavaDoc IS_EXPANDED = "is-expanded"; // NOI18N
60
public static final String JavaDoc IS_PRIMITIVE = "is-primitive"; // NOI18N
61
public static final String JavaDoc IS_QUERY_NODE = "is-query-node"; // NOI18N
62
public static final String JavaDoc IS_USAGE_NODE = "is-usage-node"; // NOI18N
63
public static final String JavaDoc IS_FILE_NODE = "is-file-node"; // NOI18N
64
public static final String JavaDoc IS_FILE_GROUP_AGGREGATE
65                                  = "is-file-group-aggregate"; // NOI18N
66
public static final String JavaDoc IS_HEAD_ELEMENT = "is-head-element"; // NOI18N
67
public static final String JavaDoc EMPTY_STRING = ""; // NOI18N
68
public static final String JavaDoc FILE_NODE_FILE_GROUP = "file-node-file-group"; // NOI18N
69
public static final String JavaDoc MOUSEOVER = "mouseover"; // NOI18N
70
public static final String JavaDoc JAVA_AWT_IMAGE = "java-awt-image"; // NOI18N
71

72
73
74     public static final String JavaDoc GRAPH_GROUP = "graph";
75     public static final String JavaDoc GRAPH_GROUP_NODES = "graph.nodes"; // prefuse appends subgroup name "nodes"
76
public static final String JavaDoc GRAPH_GROUP_EDGES = "graph.edges"; // prefuse appends subgroup name "edges""
77
public static final String JavaDoc GRAPH_GROUP_AGGR = "aggregates";
78
79     public static final int DISPLAY_PREFERRED_WIDTH = 300;
80     public static final int DISPLAY_PREFERRED_HEIGHT =200;
81
82     // named Visualization ActionLists and Actions
83
public static final String JavaDoc ACTION_UPDATE = "action-update"; //NOI18N
84
public static final String JavaDoc ACTION_UPDATE_REPAINT =
85             "action-update-repaint"; //NOI18N
86
public static final String JavaDoc ACTION_UPDATE_AGGREGATE_LAYOUT_REPAINT =
87             "action-update-aggregate-layout-repaint"; //NOI18N
88
public static final String JavaDoc ACTION_DRAW = "action-draw"; //NOI18N
89
public static final String JavaDoc ACTION_LAYOUT = "action-layout"; //NOI18N
90
public static final String JavaDoc ACTION_LAYOUT_REPAINT
91                                     = "action-layout-repaint"; //NOI18N
92
public static final String JavaDoc ACTION_ANIMATE = "action-animate"; //NOI18N
93
public static final String JavaDoc ACTION_REPAINT = "action-repaint"; //NOI18N
94
public static final String JavaDoc ACTION_AGGREGATE_LAYOUT =
95             "action-aggregate-layout"; //NOI18N
96

97
98     public static final String JavaDoc SCHEMA_FILE_EXTENSION = "xsd"; //NOI18N
99
public static final String JavaDoc BPEL_FILE_EXTENSION = "bpel"; //NOI18N
100

101     public static enum GlobalTypes {COMPLEX_TYPE, SIMPLE_TYPE, ELEMENT,
102             GROUP, ATTRIBUTE, ATTRIBUTE_GROUP, PRIMITIVE, BASE_COMPLEX_TYPES};
103
104     public static final BasicStroke JavaDoc SELECTED_STROKE = new BasicStroke JavaDoc(2f);
105     public static final BasicStroke JavaDoc UNSELECTED_STROKE = new BasicStroke JavaDoc(1f);
106
107
108     public static final int COLOR_HIGHLIGHT= new Color JavaDoc(245, 217, 86).getRGB(); //F5D956 (255, 226, 90) FFE25A -Leos , (204, 102, 0)-Original;
109
public static final int COLOR_QUERY_NODE = new Color JavaDoc(255, 84, 0).getRGB(); // orange, lt blue (169, 205, 255)
110
public static final int COLOR_FILE_NODE = new Color JavaDoc(205, 216, 220).getRGB(); // pale brown grey(245, 240, 225)
111
public static final int COLOR_USAGE_NODE = new Color JavaDoc(255,197,145).getRGB(); // light orange, pale blue (209,245,255)
112
public static final int COLOR_SELECTED_NODE = new Color JavaDoc(255,251,155).getRGB();//F5FB9B (255, 248, 106) FFF86A- Leos; // light orange, was black reverse
113

114 // private GradientPaint usesColor =
115
// new GradientPaint(
116
// 0, 0, new Color(200, 227, 255), 30, 30,
117
// new Color(255, 255, 255), true); // true means to repeat pattern 0xA9CDE8, 0xDDEBF6
118

119
120
121         public static enum HSBHues {
122             RED(0.0f,0.086f),
123             ORANGE(0.086f,0.115f),
124             GREEN(0.115f, 0.392f),
125             TURQUOISE(0.392f, 0.529f),
126             BLUE(0.529f, 0.667f),
127             PURPLE(0.667f, 0.784f),
128             VIOLET(0.784f,0.823f),
129             PINK(0.823f, 1.0f);
130
131             float low; // inclusive HSB hue 0.0 to 1.0
132
float high; // inclusive HSB hue 0.0 to 1.0
133
HSBHues(float low, float high) {
134                 this.low = low;
135                 this.high = high;
136             }
137             public float low() { return low; }
138             public float high() {return high;}
139         }
140         
141     public final static String JavaDoc SCHEMA_FILE_TYPE = "schema-file-type"; //NOI18N
142
public final static String JavaDoc WSDL_FILE_TYPE = "wsdl-file-type"; //NOI18N
143
public final static String JavaDoc BPEL_FILE_TYPE = "bpel-file-type"; //NOI18N
144

145     // java.util.prefs.Preferences keys
146
public static final String JavaDoc PREFERENCES_XML_REFACTORING_PREVIEW_ALL =
147             "preferences-xml-refactoring-preview-all"; //NOI18N boolean
148

149     public static final String JavaDoc USER_OBJECT = "user-obj";
150     public static final String JavaDoc REFACTORING_ELEMENT = "refactor-element";
151
152 }
153
Popular Tags