|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.ibm.lpex.alef.LpexVerticalRuler
The class implements a vertical ruler which is connected to an LpexTextViewer.
ITextViewer,
IVerticalRuler| Constructor Summary | |
LpexVerticalRuler(int width)
Constructs a vertical ruler with the given width. |
|
| Method Summary | |
org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.text.ITextViewer textViewer)
Create the vertical ruler's SWT control, a Canvas, for the LpexTextViewer specified. |
org.eclipse.swt.widgets.Control |
getControl()
Return the vertical ruler's SWT control, if any was created yet. |
int |
getLineOfLastMouseButtonActivity()
Return the document line number in LpexTextViewer corresponding to the last mouse-button activity inside the ruler. |
org.eclipse.jface.text.source.IAnnotationModel |
getModel()
Return the current annotation model of this ruler, or null
if the ruler has no model. |
int |
getWidth()
|
void |
setModel(org.eclipse.jface.text.source.IAnnotationModel model)
Associate an annotation model with this vertical ruler. |
int |
toDocumentLineNumber(int y_coordinate)
Translate a y-coordinate of the vertical ruler's SWT Control into the corresponding ZERO-based line number of the input document section of the connected LpexTextViewer. |
void |
update()
Force the vertical ruler to update. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LpexVerticalRuler(int width)
width - the width of the vertical ruler| Method Detail |
public org.eclipse.swt.widgets.Control getControl()
getControl in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.getControl()public int getWidth()
getWidth in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.getWidth()
public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.text.ITextViewer textViewer)
createControl in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.createControl(org.eclipse.swt.widgets.Composite, org.eclipse.jface.text.ITextViewer)public void update()
update in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.update()public void setModel(org.eclipse.jface.text.source.IAnnotationModel model)
null value clears the ruler.setModel in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.setModel(org.eclipse.jface.text.source.IAnnotationModel)public org.eclipse.jface.text.source.IAnnotationModel getModel()
null
if the ruler has no model.getModel in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.getModel()public int getLineOfLastMouseButtonActivity()
getLineOfLastMouseButtonActivity in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.getLineOfLastMouseButtonActivity()public int toDocumentLineNumber(int y_coordinate)
toDocumentLineNumber in interface org.eclipse.jface.text.source.IVerticalRulerIVerticalRuler.toDocumentLineNumber(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||