Class orion.editor.LineNumberRuler
Extends
orion.editor.Ruler.
This objects implements a line numbering ruler.
See:
orion.editor.Ruler
Defined in: </shared/eclipse/e4/orion/I201404012230/bundles/org.eclipse.orion.client.editor/web/orion/editor/rulers.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
orion.editor.LineNumberRuler(annotationModel, rulerLocation, rulerStyle, oddStyle, evenStyle)
Constructs a new line numbering ruler.
|
- Methods borrowed from class orion.editor.Ruler:
- addAnnotationType, getAnnotationModel, getAnnotations, getAnnotationsByType, getAnnotationTypePriority, getLocation, getOverview, getRulerStyle, getView, getWidestAnnotation, isAnnotationTypeVisible, removeAnnotationType, setAnnotationModel, setMultiAnnotation, setMultiAnnotationOverlay, setView
- Events borrowed from class orion.editor.Ruler:
- onClick, onDblClick, onMouseMove, onMouseOut, onMouseOver
Class Detail
orion.editor.LineNumberRuler(annotationModel, rulerLocation, rulerStyle, oddStyle, evenStyle)
Constructs a new line numbering ruler.
- Parameters:
- {orion.editor.AnnotationModel} annotationModel
- the annotation model for the ruler.
- {String} rulerLocation Optional, Default: "left"
- the location for the ruler.
- {orion.editor.Style} rulerStyle Optional, Default: undefined
- the style for the ruler.
- {orion.editor.Style} oddStyle Optional, Default: {style: {backgroundColor: "white"}
- the style for lines with odd line index.
- {orion.editor.Style} evenStyle Optional, Default: {backgroundColor: "white"}
- the style for lines with even line index.