Annotations class act as data model containing all annotations attached to
one document. Class uses instances of private class LineAnnotations for
grouping of added annotations by line. These objects (LineAnnotations) are
referenced from two collections. First one is Map where the key is Mark. It
is used during the drawing in DrawLayerFactory.AnnotationLayer - when the
mark appears in mark change, the LineAnnotations instance is found for it and
the active annotation on the line can be queried. Second is List where the
LineAnnotations are sorted by line number. This list is used for drawing the
annotations in the gutter when the sequential order is important.
The class also listen on document. It need to know how many lines where
removed or added to refresh the LineAnnotations.line property.
author: David Konecny since: 07/2001
Inner Class :public static class LineAnnotations extends Object
Inner Class :public interface AnnotationsListener extends EventListener
Return whether this document has or had more annotations on one line.
This method is called from glyph gutter to check whether the glyph
cycling column should be drawn or not.
Return whether this document has or had any glyph icon attached. This
method is called from glyph gutter to check whether the glyph column
should be drawn or not.