gate.gui.docview
Class AnnotationSetsView.TypeHandler

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

protected class AnnotationSetsView.TypeHandler
extends Object


Nested Class Summary
protected  class AnnotationSetsView.TypeHandler.ChangeColourAction
           
 
Field Summary
(package private)  AnnotationSetsView.TypeHandler.ChangeColourAction changeColourAction
           
(package private)  Color colour
           
(package private)  Map hghltTagsForAnn
           
(package private)  String name
           
(package private)  boolean selected
           
(package private)  AnnotationSetsView.SetHandler setHandler
           
 
Constructor Summary
(package private) 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
 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

hghltTagsForAnn

Map hghltTagsForAnn

name

String name

setHandler

AnnotationSetsView.SetHandler setHandler

colour

Color colour
Constructor Detail

AnnotationSetsView.TypeHandler

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

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)