public interface IProjectionPosition
IProjectionPosition
is a position that is associated with a
ProjectionAnnotation
and that is able to compute its collapsed
regions. That is, if a Position
implements this interface,
ProjectionViewer
will delegate to the
computeProjectionRegions
method
when determining the document regions that should be collapsed for a certain
ProjectionAnnotation
.Modifier and Type | Method and Description |
---|---|
int |
computeCaptionOffset(IDocument document)
Returns the offset of the caption (the anchor region) of this projection
position.
|
IRegion[] |
computeProjectionRegions(IDocument document)
Returns an array of regions that should be collapsed when the annotation
belonging to this position is collapsed.
|
IRegion[] computeProjectionRegions(IDocument document) throws BadLocationException
document
- the document that this position is attached toBadLocationException
- if accessing the document failsint computeCaptionOffset(IDocument document) throws BadLocationException
document
- the document that this position is attached toBadLocationException
- if accessing the document fails
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.