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
           
 
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
 

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)