|
Eclipse Platform 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.source.AnnotationRulerColumn
A vertical ruler column showing graphical representations of annotations. Will become final. Do not subclass.
Constructor Summary | |
AnnotationRulerColumn(IAnnotationModel model,
int width)
Constructs this column with the given width. |
|
AnnotationRulerColumn(int width)
Constructs this column with the given width. |
Method Summary | |
Control |
createControl(CompositeRuler parentRuler,
Composite parentControl)
Creates the column's SWT control. |
protected void |
doPaint(GC gc)
Draws the vertical ruler w/o drawing the Canvas background. |
protected void |
doPaint1(GC gc)
Draws the vertical ruler w/o drawing the Canvas background. |
protected ITextViewer |
getCachedTextViewer()
Returns the cached text viewer. |
Control |
getControl()
Returns the column's SWT control. |
protected int |
getInclusiveTopIndexStartOffset()
Returns the document offset of the upper left corner of the source viewer's viewport, possibly including partially visible lines. |
protected IAnnotationModel |
getModel()
Returns this column's annotation model. |
int |
getWidth()
Returns the width of this column's control. |
protected void |
mouseDoubleClicked(int rulerLine)
Hook method for a mouse double click event on the given ruler line. |
void |
redraw()
Redraws this column. |
void |
setFont(Font font)
Sets the font of this ruler column. |
void |
setModel(IAnnotationModel model)
Associates an annotation model with this ruler column. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AnnotationRulerColumn(IAnnotationModel model, int width)
width
- the width of the vertical rulerpublic AnnotationRulerColumn(int width)
width
- the width of the vertical rulerMethod Detail |
public Control getControl()
IVerticalRulerColumn
getControl
in interface IVerticalRulerColumn
public int getWidth()
IVerticalRulerColumn
getWidth
in interface IVerticalRulerColumn
public Control createControl(CompositeRuler parentRuler, Composite parentControl)
IVerticalRulerColumn
createControl
in interface IVerticalRulerColumn
parentRuler
- the parent ruler of this columnparentControl
- the control of the parent ruler
protected void mouseDoubleClicked(int rulerLine)
rulerLine
- the ruler lineprotected int getInclusiveTopIndexStartOffset()
protected void doPaint(GC gc)
gc
- the gc to draw intoprotected void doPaint1(GC gc)
ITextViewerExtension3
. Will replace doPaint(GC)
.
gc
- the gc to draw intopublic void redraw()
IVerticalRulerColumn
redraw
in interface IVerticalRulerColumn
public void setModel(IAnnotationModel model)
IVerticalRulerColumn
null
is acceptable and clears the ruler.
setModel
in interface IVerticalRulerColumn
model
- the new annotation model, may be null
public void setFont(Font font)
IVerticalRulerColumn
setFont
in interface IVerticalRulerColumn
font
- the new font of the ruler columnprotected ITextViewer getCachedTextViewer()
protected IAnnotationModel getModel()
|
Eclipse Platform 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |