gate.gui.docview
Class AnnotationSetsView.TypeHandler

java.lang.Object
  extended by gate.gui.docview.AnnotationSetsView.TypeHandler
Enclosing class:
AnnotationSetsView

public class AnnotationSetsView.TypeHandler
extends Object


Nested Class Summary
protected  class AnnotationSetsView.TypeHandler.ChangeColourAction
           
 
Field Summary
(package private)  Map<Integer,AnnotationData> annListTagsForAnn
          Map from annotation ID (which is immutable) to AnnotationListView tag
(package private)  int annotationCount
           
(package private)  AnnotationSetsView.TypeHandler.ChangeColourAction changeColourAction
           
(package private)  Color colour
           
(package private)  Map<Integer,Object> hghltTagsForAnnId
          Map from annotation ID (which is immutable) to highlight tag
(package private)  String name
           
(package private)  boolean selected
           
(package private)  AnnotationSetsView.SetHandler setHandler
           
 
Constructor Summary
AnnotationSetsView.TypeHandler(AnnotationSetsView.SetHandler setHandler, String name)
           
 
Method Summary
 void annotationAdded(Annotation ann)
          Notifies this type handler that a new annotation was created of the right type
 void annotationRemoved(Annotation ann)
          Notifies this type handler that an annotation has been removed
 Color getColour()
           
 boolean isSelected()
           
protected  void repairHighlights(int start, int end)
           
 void setColour(Color colour)
           
 void setSelected(boolean selected)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changeColourAction

AnnotationSetsView.TypeHandler.ChangeColourAction changeColourAction

selected

boolean selected

hghltTagsForAnnId

Map<Integer,Object> hghltTagsForAnnId
Map from annotation ID (which is immutable) to highlight tag


annListTagsForAnn

Map<Integer,AnnotationData> annListTagsForAnn
Map from annotation ID (which is immutable) to AnnotationListView tag


name

String name

setHandler

AnnotationSetsView.SetHandler setHandler

colour

Color colour

annotationCount

int annotationCount
Constructor Detail

AnnotationSetsView.TypeHandler

AnnotationSetsView.TypeHandler(AnnotationSetsView.SetHandler setHandler,
                               String name)
Method Detail

getColour

public Color getColour()
Returns:
the colour

setColour

public void setColour(Color colour)

setSelected

public void setSelected(boolean selected)

isSelected

public boolean isSelected()

annotationAdded

public void annotationAdded(Annotation ann)
Notifies this type handler that a new annotation was created of the right type

Parameters:
ann -

annotationRemoved

public void annotationRemoved(Annotation ann)
Notifies this type handler that an annotation has been removed

Parameters:
ann - the removed annotation

repairHighlights

protected void repairHighlights(int start,
                                int end)