// $Id: StructureComponentEvent.java,v 1.3 2007/01/22 22:36:31 Sasha Buzko Exp $ // // Copyright (c) 2000-2002 San Diego Supercomputer Center (SDSC), // a facility operated jointly by the University of California, // San Diego (UCSD) and General Atomics, San Diego, California, USA. // // Users and possessors of this source code are hereby granted a // nonexclusive, royalty-free copyright and design patent license to // use this code in individual software. License is not granted for // commercial resale, in whole or in part, without prior written // permission from SDSC. This source is provided "AS IS" without express // or implied warranty of any kind. // // For further information, please see: http://mbt.sdsc.edu // // History: // $Log: StructureComponentEvent.java,v $ // Revision 1.3 2007/01/22 22:36:31 Sasha Buzko // Added tree viewer // // Revision 1.2 2006/08/08 05:45:51 Sasha Buzko // *** empty log message *** // // Revision 1.1 2006/05/20 17:02:07 Sasha Buzko // Updated version // // Revision 1.2 2006/05/17 07:06:17 Sasha Buzko // *** empty log message *** // // Revision 1.1 2006/04/30 20:14:06 Sasha Buzko // New version of the app // // Revision 1.1 2006/04/15 19:42:28 Sasha Buzko // Initial commit // // Revision 1.1 2005/11/13 04:35:26 Administrator // *** empty log message *** // // Revision 1.2 2003/04/23 17:36:14 moreland // Removed StructureComponentID/scid and replaced it with a "structure" field // in the StructureComponent base class. // Changed "getType" method to "getStructureComponentType" to return dynamic // SC type (ie: class name). // Added structureComponent field. // // Revision 1.1 2002/11/06 23:14:56 moreland // Moved from the "events" package to the top-level package. // No longer inherits from a common ControllerEvent class. // // Revision 1.1.1.1 2002/07/16 18:00:19 moreland // Imported sources // // Revision 1.0 2002/06/10 23:38:39 moreland // package edu.sdsc.mbt; import edu.sdsc.sirius.viewers.SequenceViewerImpl.*; /** * Properties, data, or the organizational structure of data changed. * This event identifies what changed and in what manner it changed. * A viewer should determine what aspects of the change are relevant * to it, fetch the desired values and update/redraw accordingly. *
* @author John L. Moreland & Oleksandr V. Buzko *
*/ public class StructureComponentEvent implements java.io.Serializable { public StructureComponent structureComponent; // Which component changed public Cell cell;//for cases when only sequence is involved public StructureMap structureMap; public boolean batch = false; public int changeExtent; public static final int EXTENT_LOCAL = 0; public static final int EXTENT_GLOBAL = 1; public static final int EXTENT_RECURSIVE = 2; public int changeType; public static final int TYPE_ADD = 0; public static final int TYPE_REMOVE = 1; public static final int TYPE_MODIFY = 2; public static final int TYPE_RELOAD_CONTENT = 3; public static final int TYPE_REPLACE = 4; public static final int TYPE_UNDO_REPLACE = 5; public static final int TYPE_GEOMETRY_CHANGE = 6; public int changeAttribute; public static final int ATTRIBUTE_PROPERTY = 0; public static final int ATTRIBUTE_STRUCTURE = 1; public static final int ATTRIBUTE_DATA = 2; public String data; private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { out.defaultWriteObject(); } private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { in.defaultReadObject(); } }