001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041:
042: package org.netbeans.modules.uml.core.metamodel.diagrams;
043:
044: /**
045: *
046: * @author Trey Spiva
047: */
048: public interface DiagramEnums {
049: //**************************************************
050: // SynchStateKind Enumeration
051: //**************************************************
052: public final static int SSK_UNKNOWN_SYNCH_STATE = 0;
053: public final static int SSK_IN_SYNCH_SHALLOW = 1;
054: public final static int SSK_OUT_OF_SYNCH = 2;
055: public final static int SSK_IN_SYNCH_DEEP = 3;
056:
057: //**************************************************
058: // DiagramValidateKind Enumeration
059: //**************************************************
060: public final static int DVK_VALIDATE_NONE = 0;
061: public final static int DVK_VALIDATE_DRAWENGINE = 1;
062: public final static int DVK_VALIDATE_LINKENDS = 2;
063: public final static int DVK_VALIDATE_CONNECTIONTOELEMENT = 3;
064: public final static int DVK_VALIDATE_BRIDGES = 4;
065: public final static int DVK_VALIDATE_RESYNC_DEEP = 5;
066: public final static int DVK_VALIDATE_ALL = 6;
067:
068: //**************************************************
069: // DiagramValidateResponse Enumeration
070: //**************************************************
071: public final static int DVRSP_NONE = 0;
072: public final static int DVRSP_DELETE_INVALID_NODES = 1;
073: public final static int DVRSP_DELETE_INVALID_LINKS = 2;
074: public final static int DVRSP_RECONNECT_INVALID_LINKS = 3;
075: public final static int DVRSP_DELETE_INVALID_DRAW_ENGINES = 4;
076: public final static int DVRSP_RESET_INVALID_DRAW_ENGINES = 5;
077: public final static int DVRSP_VALIDATE_ALL = 6;
078:
079: //**************************************************
080: // DiagramValidateResult Enumeration
081: //**************************************************
082: public final static int DVR_NOT_APPLICABLE = 0;
083: public final static int DVR_INVALID = 1;
084: public final static int DVR_VALID = 2;
085:
086: //**************************************************
087: // LayoutKind Enumeration
088: //**************************************************
089: public final static int LK_NO_LAYOUT = 0;
090: public final static int LK_HIERARCHICAL_LAYOUT = 1;
091: public final static int LK_CIRCULAR_LAYOUT = 2;
092: public final static int LK_SYMMETRIC_LAYOUT = 3;
093: public final static int LK_TREE_LAYOUT = 4;
094: public final static int LK_ORTHOGONAL_LAYOUT = 5;
095: public final static int LK_SEQUENCEDIAGRAM_LAYOUT = 6;
096: public final static int LK_GLOBAL_LAYOUT = 7;
097: public final static int LK_INCREMENTAL_LAYOUT = 8;
098: public final static int LK_UNKNOWN_LAYOUT = 255;
099:
100: //**************************************************
101: // DiagramKind Enumeration
102: //**************************************************
103: public final static int DK_UNKNOWN = 0;
104: public final static int DK_DIAGRAM = 1;
105: public final static int DK_ACTIVITY_DIAGRAM = 2;
106: public final static int DK_CLASS_DIAGRAM = 4;
107: public final static int DK_COLLABORATION_DIAGRAM = 8;
108: public final static int DK_COMPONENT_DIAGRAM = 16;
109: public final static int DK_DEPLOYMENT_DIAGRAM = 32;
110: public final static int DK_SEQUENCE_DIAGRAM = 64;
111: public final static int DK_STATE_DIAGRAM = 128;
112: public final static int DK_USECASE_DIAGRAM = 256;
113: public final static int DK_ALL = 0xffff;
114:
115: //**************************************************
116: // DrawingFileCode Enumeration
117: //**************************************************
118: public final static int DFC_FILE_OK = 0;
119: public final static int DFC_FILE_COULD_NOT_OPEN = 2;
120: public final static int DFC_FILE_COULD_NOT_CLOSE = 3;
121: public final static int DFC_FILE_ERROR_READING_STREAM = 4;
122: public final static int DFC_FILE_ERROR_WRITING_STREAM = 5;
123: public final static int DFC_FILE_NULL_INPUT = 6;
124: public final static int DFC_FILE_NULL_OUTPUT = 7;
125:
126: //**************************************************
127: // StackingOrderKind Enumeration
128: //**************************************************
129: public final static int SOK_MOVEFORWARD = 0;
130: public final static int SOK_MOVETOFRONT = 1;
131: public final static int SOK_MOVEBACKWARD = 2;
132: public final static int SOK_MOVETOBACK = 3;
133:
134: //**************************************************
135: // DrawingToolKind Enumeration
136: //**************************************************
137: public final static int DTK_SELECTION = 0;
138: public final static int DTK_PAN = 1;
139: public final static int DTK_ACCORDION = 2;
140: public final static int DTK_ZOOM = 3;
141: public final static int DTK_MOUSE_ZOOM = 4;
142: public final static int DTK_EDGENAV_MOUSE = 5;
143:
144: //**************************************************
145: // GridKind Enumeration
146: //**************************************************
147: public final static int GK_LINES = 0;
148: public final static int GK_POINTS = 1;
149: }
|