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: public interface IGraphEventKind {
045:
046: // Unknown event
047: public final int GEK_UNKNOWN = 0;
048:
049: // Graph Object has just been created
050: public final int GEK_POST_CREATE = 1;
051:
052: // A move is about to occur
053: public final int GEK_PRE_MOVE = 2;
054:
055: // A move has ocurred
056: public final int GEK_POST_MOVE = 3;
057:
058: // A move has ocurred from the smartdraw tool
059: public final int GEK_POST_SMARTDRAW_MOVE = 4;
060:
061: // A resize is about to occur
062: public final int GEK_PRE_RESIZE = 5;
063:
064: // A resize has ocurred
065: public final int GEK_POST_RESIZE = 6;
066:
067: // A layout is about to occur
068: public final int GEK_PRE_LAYOUT = 7;
069:
070: // A layout has ocurred
071: public final int GEK_POST_LAYOUT = 8;
072:
073: // A delete is about to occur select any other objects that must be deleted as well ie bridges
074: public final int GEK_PRE_DELETEGATHERSELECTED = 9;
075:
076: // A delete is about to occur
077: public final int GEK_PRE_DELETE = 10;
078:
079: // A delete was canceled
080: public final int GEK_DELETECANCELED = 11;
081:
082: // A delete has occured.
083: public final int GEK_POST_DELETE = 22;
084:
085: // A copy is about to occur
086: public final int GEK_PRE_COPY = 12;
087:
088: // A copy has ocurred
089: public final int GEK_POST_COPY = 13;
090:
091: // A paste has ocurred
092: public final int GEK_POST_PASTE_VIEW = 14;
093:
094: // A paste has ocurred from within the same diagram. This view has just been pasted
095: public final int GEK_POST_PASTE_ALL = 15;
096:
097: // The entire paste operation has been completed
098: public final int GEK_POST_CROSS_DIAGRAM_PASTE = 16;
099:
100: // A post select has ocurred
101: public final int GEK_POST_SELECT = 17;
102:
103: // The diagram namespace has been changed
104: public final int GEK_DIAGRAM_NAMESPACECHANGE = 18;
105:
106: // Fired after all required edge re-routing has been performed after a move, transfer, or resize operation
107: public final int GEK_POST_DROPOBJECTS = 19;
108:
109: // A sequence diagram has just been scrolled and/or zoomed
110: public final int GEK_SQD_DIAGRAM_POST_SCROLLZOOM = 20;
111:
112: // The presentation element owned by this drawengine was reparented due to a name collision
113: public final int GEK_NAME_COLLISION_REPARENTED = 21;
114:
115: // A pre select has ocurred
116: public final int GEK_PRE_SELECT = 17;
117:
118: }
|