|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An 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
.
Method Summary | |
---|---|
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. |
Method Detail |
public IRegion[] computeProjectionRegions(IDocument document) throws BadLocationException
document
- the document that this position is attached to
BadLocationException
- if accessing the document failspublic int computeCaptionOffset(IDocument document) throws BadLocationException
document
- the document that this position is attached to
BadLocationException
- if accessing the document fails
|
Eclipse Platform Release 3.1 |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.