|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.source.Annotation | +--org.eclipse.jface.text.source.ProjectionAnnotation
Annotation used to represent the projection of a master document onto
a ProjectionDocument
. A projection annotation can be either
expanded or collapsed. If expaned it corresponds to a fragment of the
projection document. If collapsed, it represents a region of the master document
that does not have a corresponding fragment in the projection document.
Draws itself in a tree like fashion.
This class if for internal use only.
Constructor Summary | |
ProjectionAnnotation(Position range)
Creates a new projection annotation for the given range of the master document. |
Method Summary | |
boolean |
isFolded()
Returns the state of this annotation. |
void |
paint(GC gc,
Canvas canvas,
Rectangle rectangle)
Implement this method to draw a graphical representation of this annotation within the given bounds. |
void |
run(ITextViewer viewer)
Toogles the state of this annotation and updates the given viewer accordingly. |
Methods inherited from class org.eclipse.jface.text.source.Annotation |
drawImage, drawImage, getLayer, setLayer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProjectionAnnotation(Position range)
range
- the range.Method Detail |
public void paint(GC gc, Canvas canvas, Rectangle rectangle)
Annotation
paint
in class Annotation
org.eclipse.jface.text.source.Annotation
GC
- the drawing GCcanvas
- the canvas to draw onbounds
- the bounds inside the canvas to draw onpublic void run(ITextViewer viewer)
viewer
- the viewerpublic boolean isFolded()
true
if collapsed
|
Eclipse Platform 2.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |