|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.jface.text.source.LineNumberRulerColumn
A vertical ruler column displaying line numbers. Clients may use this class as is.
Constructor Summary | |
LineNumberRulerColumn()
Constructs a new vertical ruler column. |
Method Summary | |
protected void |
computeIndentations()
Computes the indentations for the given font and stores them in fIndentation . |
Control |
createControl(CompositeRuler parentRuler,
Composite parentControl)
Creates the column's SWT control. |
protected Color |
getBackground(Display display)
Returns the System background color for list widgets. |
Control |
getControl()
Returns the column's SWT control. |
protected int |
getVisibleLinesInViewport()
Returns the viewport height in lines. |
int |
getWidth()
Returns the width of this column's control. |
void |
redraw()
Redraws this column. |
void |
setBackground(Color background)
Sets the background color of this column. |
void |
setFont(Font font)
Sets the font of this ruler column. |
void |
setForeground(Color foreground)
Sets the foreground color of this 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 LineNumberRulerColumn()
Method Detail |
public void setForeground(Color foreground)
foreground
- the foreground colorpublic void setBackground(Color background)
background
- the background colorprotected Color getBackground(Display display)
display
- the display
public Control getControl()
IVerticalRulerColumn
getControl
in interface IVerticalRulerColumn
public int getWidth()
IVerticalRulerColumn
getWidth
in interface IVerticalRulerColumn
protected void computeIndentations()
fIndentation
.
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 int getVisibleLinesInViewport()
public 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 column
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |