public class ProjectionAnnotationModel extends AnnotationModel
Do not subclass. Use it as is.
fAnnotationModelListeners, fAnnotations, fDocument
Constructor and Description |
---|
ProjectionAnnotationModel()
Creates a new, empty projection annotation model.
|
Modifier and Type | Method and Description |
---|---|
void |
collapse(Annotation annotation)
Changes the state of the given annotation to collapsed.
|
boolean |
collapseAll(int offset,
int length)
Collapses all annotations that overlap with the given range and are collapsed.
|
void |
expand(Annotation annotation)
Changes the state of the given annotation to expanded.
|
boolean |
expandAll(int offset,
int length)
Expands all annotations that overlap with the given range and are collapsed.
|
protected boolean |
expandAll(int offset,
int length,
boolean fireModelChanged)
Expands all annotations that overlap with the given range and are collapsed.
|
void |
modifyAnnotations(Annotation[] deletions,
Map additions,
Annotation[] modifications)
Modifies the annotation model.
|
void |
toggleExpansionState(Annotation annotation)
Toggles the expansion state of the given annotation.
|
addAnnotation, addAnnotation, addAnnotationModel, addAnnotationModelListener, addPosition, cleanup, connect, connected, createAnnotationModelEvent, disconnect, disconnected, fireModelChanged, fireModelChanged, getAnnotationIterator, getAnnotationIterator, getAnnotationIterator, getAnnotationMap, getAnnotationModel, getAnnotationModelEvent, getLockObject, getModificationStamp, getPosition, modifyAnnotation, modifyAnnotationPosition, modifyAnnotationPosition, removeAllAnnotations, removeAllAnnotations, removeAnnotation, removeAnnotation, removeAnnotationModel, removeAnnotationModelListener, removeAnnotations, removePosition, replaceAnnotations, replaceAnnotations, setLockObject
public ProjectionAnnotationModel()
public void collapse(Annotation annotation)
annotation
- the annotationpublic void expand(Annotation annotation)
annotation
- the annotationpublic void toggleExpansionState(Annotation annotation)
annotation
- the annotationpublic boolean expandAll(int offset, int length)
offset
- the range offsetlength
- the range lengthtrue
if any annotation has been expanded, false
otherwisepublic boolean collapseAll(int offset, int length)
offset
- the range offsetlength
- the range lengthtrue
if any annotation has been collapse, false
otherwiseprotected boolean expandAll(int offset, int length, boolean fireModelChanged)
offset
- the offset of the rangelength
- the length of the rangefireModelChanged
- true
if a model change event
should be fired, false
otherwisetrue
if any annotation has been expanded, false
otherwisepublic void modifyAnnotations(Annotation[] deletions, Map additions, Annotation[] modifications)
deletions
- the list of deleted annotationsadditions
- the set of annotations to add together with their associated positionmodifications
- the list of modified annotations
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.