|
Eclipse Platform Release 3.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IProjectionPosition
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 |
|---|
IRegion[] computeProjectionRegions(IDocument document)
throws BadLocationException
document - the document that this position is attached to
BadLocationException - if accessing the document fails
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.2 |
|||||||||
| 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, 2006. All rights reserved.