1 19 20 28 29 package org.netbeans.modules.xml.nbprefuse; 30 31 import java.awt.BasicStroke ; 32 import java.awt.Color ; 33 import javax.swing.ImageIcon ; 34 import org.netbeans.modules.xml.nbprefuse.render.NbLabelRenderer; 35 39 public interface AnalysisConstants { 40 public static final String ID = "id"; public static final String LABEL = "label"; public static final String TOOLTIP = "tooltip"; public static final String COMPONENT_TYPE_NAME = "component-type-name"; public static final String SCHEMA_COMPONENT = "schema-component"; public static final String OPENIDE_NODE = "openide-node"; public static final String XAM_COMPONENT = "xam-component"; public static final String FILE_GROUP = "file-group"; public static final String ELEMENT_TYPE = "element-type"; public static final String EDGE_TYPE = "edge-type"; public static final String GENERALIZATION = "generalization"; public static final String COMPOSITION = "composition"; public static final String REFERENCE = "reference"; public static final String XML_FILENAME = "xml-filename"; public static final String FILE_OBJECT = "file-object"; public static final String FILE_TYPE = "file-type "; public static final String SHOW = "show"; public static final String FILE_EDGE_TYPE = "file-edge-type"; public static final String IS_EXPANDED = "is-expanded"; public static final String IS_PRIMITIVE = "is-primitive"; public static final String IS_QUERY_NODE = "is-query-node"; public static final String IS_USAGE_NODE = "is-usage-node"; public static final String IS_FILE_NODE = "is-file-node"; public static final String IS_FILE_GROUP_AGGREGATE 65 = "is-file-group-aggregate"; public static final String IS_HEAD_ELEMENT = "is-head-element"; public static final String EMPTY_STRING = ""; public static final String FILE_NODE_FILE_GROUP = "file-node-file-group"; public static final String MOUSEOVER = "mouseover"; public static final String JAVA_AWT_IMAGE = "java-awt-image"; 72 73 74 public static final String GRAPH_GROUP = "graph"; 75 public static final String GRAPH_GROUP_NODES = "graph.nodes"; public static final String GRAPH_GROUP_EDGES = "graph.edges"; public static final String 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 public static final String ACTION_UPDATE = "action-update"; public static final String ACTION_UPDATE_REPAINT = 85 "action-update-repaint"; public static final String ACTION_UPDATE_AGGREGATE_LAYOUT_REPAINT = 87 "action-update-aggregate-layout-repaint"; public static final String ACTION_DRAW = "action-draw"; public static final String ACTION_LAYOUT = "action-layout"; public static final String ACTION_LAYOUT_REPAINT 91 = "action-layout-repaint"; public static final String ACTION_ANIMATE = "action-animate"; public static final String ACTION_REPAINT = "action-repaint"; public static final String ACTION_AGGREGATE_LAYOUT = 95 "action-aggregate-layout"; 97 98 public static final String SCHEMA_FILE_EXTENSION = "xsd"; public static final String BPEL_FILE_EXTENSION = "bpel"; 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 SELECTED_STROKE = new BasicStroke (2f); 105 public static final BasicStroke UNSELECTED_STROKE = new BasicStroke (1f); 106 107 108 public static final int COLOR_HIGHLIGHT= new Color (245, 217, 86).getRGB(); public static final int COLOR_QUERY_NODE = new Color (255, 84, 0).getRGB(); public static final int COLOR_FILE_NODE = new Color (205, 216, 220).getRGB(); public static final int COLOR_USAGE_NODE = new Color (255,197,145).getRGB(); public static final int COLOR_SELECTED_NODE = new Color (255,251,155).getRGB(); 114 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; float high; 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 SCHEMA_FILE_TYPE = "schema-file-type"; public final static String WSDL_FILE_TYPE = "wsdl-file-type"; public final static String BPEL_FILE_TYPE = "bpel-file-type"; 145 public static final String PREFERENCES_XML_REFACTORING_PREVIEW_ALL = 147 "preferences-xml-refactoring-preview-all"; 149 public static final String USER_OBJECT = "user-obj"; 150 public static final String REFACTORING_ELEMENT = "refactor-element"; 151 152 } 153 | Popular Tags |