gate.gui.docview
Class AnnotationStack.StackAnnotation

java.lang.Object
  extended by gate.util.AbstractFeatureBearer
      extended by gate.annotation.AnnotationImpl
          extended by gate.gui.docview.AnnotationStack.StackAnnotation
All Implemented Interfaces:
Annotation, SimpleAnnotation, FeatureBearer, IdBearer, Serializable, Comparable
Enclosing class:
AnnotationStack

private static class AnnotationStack.StackAnnotation
extends AnnotationImpl

Annotation that doesn't belong to an annotation set and with id always equal to -1.
Allows to create an annotation without document, nodes, annotation set, and keep compatibility with gate.Annotation.
This class is only for AnnotationStack internal use as it won't work with most of the methods that use gate.Annotation.


Field Summary
 
Fields inherited from class gate.annotation.AnnotationImpl
end, eventHandler, start
 
Fields inherited from class gate.util.AbstractFeatureBearer
features
 
Constructor Summary
AnnotationStack.StackAnnotation(Integer id, Node start, Node end, String type, FeatureMap features)
           
 
Method Summary
(package private) static AnnotationStack.StackAnnotation createAnnotation(Annotation annotation)
           
(package private) static AnnotationStack.StackAnnotation createAnnotation(int startOffset, int endOffset, String type, FeatureMap features)
           
 
Methods inherited from class gate.annotation.AnnotationImpl
addAnnotationListener, coextensive, compareTo, equals, fireAnnotationUpdated, getEndNode, getId, getStartNode, getType, hashCode, isCompatible, isCompatible, isPartiallyCompatible, isPartiallyCompatible, overlaps, removeAnnotationListener, setFeatures, toString, withinSpanOf
 
Methods inherited from class gate.util.AbstractFeatureBearer
getFeatures
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gate.util.FeatureBearer
getFeatures
 

Constructor Detail

AnnotationStack.StackAnnotation

AnnotationStack.StackAnnotation(Integer id,
                                Node start,
                                Node end,
                                String type,
                                FeatureMap features)
Method Detail

createAnnotation

static AnnotationStack.StackAnnotation createAnnotation(int startOffset,
                                                        int endOffset,
                                                        String type,
                                                        FeatureMap features)

createAnnotation

static AnnotationStack.StackAnnotation createAnnotation(Annotation annotation)