AnnotationEvent.java
01 /*
02  *  Copyright (c) 1995-2010, The University of Sheffield. See the file
03  *  COPYRIGHT.txt in the software or at http://gate.ac.uk/gate/COPYRIGHT.txt
04  *
05  *  This file is part of GATE (see http://gate.ac.uk/), and is free
06  *  software, licenced under the GNU Library General Public License,
07  *  Version 2, June 1991 (in the distribution as file licence.html,
08  *  and also available at http://gate.ac.uk/gate/licence.html).
09  *
10  *  Kalina Bontcheva 21/10/2001
11  *
12  *  $Id: AnnotationEvent.java 12006 2009-12-01 17:24:28Z thomas_heitz $
13  */
14 
15 package gate.event;
16 
17 import gate.Annotation;
18 
19 /**
20  * This class models events fired by an {@link gate.Annotation}.
21  */
22 public class AnnotationEvent extends GateEvent{
23 
24   /**Event type used for situations when an annotation has been updated*/
25   public static final int ANNOTATION_UPDATED = 601;
26 
27 
28   /**
29    * Constructor.
30    @param source the {@link gate.Annotation} that fired the event
31    @param type the type of the event
32    */
33   public AnnotationEvent(Annotation source,
34                             int type) {
35     super(source, type);
36   }
37 
38 }