Package org.eclipse.jface.text.source
Interface IVerticalRulerColumn
- All Known Subinterfaces:
IChangeRulerColumn,IContributedRulerColumn,IRevisionRulerColumn
- All Known Implementing Classes:
AbstractContributedRulerColumn,AbstractRulerColumn,AnnotationColumn,AnnotationRulerColumn,ChangeRulerColumn,LineNumberChangeRulerColumn,LineNumberRulerColumn
public interface IVerticalRulerColumn
A vertical ruler column is an element that can be added to a composite
vertical ruler (
CompositeRuler). A
composite vertical ruler is a vertical ruler with dynamically changing
appearance and behavior depending on its actual arrangement of ruler columns.
A vertical ruler column supports a subset of the contract of a vertical
ruler.- Since:
- 2.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreateControl(CompositeRuler parentRuler, Composite parentControl) Creates the column's SWT control.Returns the column's SWT control.intgetWidth()Returns the width of this column's control.voidredraw()Redraws this column.voidSets the font of this ruler column.voidsetModel(IAnnotationModel model) Associates an annotation model with this ruler column.
-
Method Details
-
setModel
Associates an annotation model with this ruler column. A valuenullis acceptable and clears the ruler.- Parameters:
model- the new annotation model, may benull
-
redraw
void redraw()Redraws this column. -
createControl
Creates the column's SWT control.- Parameters:
parentRuler- the parent ruler of this columnparentControl- the control of the parent ruler- Returns:
- the column's SWT control
-
getControl
Control getControl()Returns the column's SWT control.- Returns:
- the column's SWT control
-
getWidth
int getWidth()Returns the width of this column's control.- Returns:
- the width of this column's control
-
setFont
Sets the font of this ruler column.- Parameters:
font- the new font of the ruler column
-