|
SWT LPEX v3.0.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.lpex.alef.LpexVerticalRuler
A vertical ruler which is connected to an LpexTextViewer. This is a single-column standard implementation of IVerticalRuler for LPEX. The same can be achieved by using a CompositeRuler configured with an AnnotationRulerColumn.
Eclipse's org.eclipse.jface.text.source.VerticalRuler assumes StyledText as the viewer's text widget. LPEX currently uses its own text widget.
| Constructor Summary | |
|---|---|
| LpexVerticalRuler(int width)
Constructs a vertical ruler with the given width. | |
| LpexVerticalRuler(int width,
org.eclipse.jface.text.source.IAnnotationAccess annotationAcccess)
Constructs a vertical ruler with the given width and the given annotation access. | |
| Method Summary | |
|---|---|
| void | addMouseListener(org.eclipse.swt.events.MouseListener listener)
Deprecated. will be removed (as per Eclipse's VerticalRuler). |
| 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. |
| protected void | doPaint(org.eclipse.swt.graphics.GC gc)
Draws the vertical ruler annotations (without drawing the Canvas background). |
| 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()
Returns the width of this ruler's control. |
| void | removeMouseListener(org.eclipse.swt.events.MouseListener listener)
Deprecated. will be removed (as per Eclipse's VerticalRuler). |
| void | setFont(org.eclipse.swt.graphics.Font font)
Set the font of this vertical ruler. |
| void | setLocationOfLastMouseButtonActivity(int x,
int y)
Set the location of the last mouse button activity. |
| void | setModel(org.eclipse.jface.text.source.IAnnotationModel model)
Associate an annotation model with this vertical ruler. |
| int | toDocumentLineNumber(int y_coordinate)
Translates 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. |
| protected static int | widgetLine2ModelLine(LpexTextViewer viewer,
int widgetRow)
Returns the line of the viewer's document that corresponds to the given row number in the LPEX text widget edit area. |
| Methods inherited from class java.lang.Object |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LpexVerticalRuler(int width)
public LpexVerticalRuler(int width,
org.eclipse.jface.text.source.IAnnotationAccess annotationAcccess)
| Method Detail |
public org.eclipse.swt.widgets.Control getControl()
public org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent,
org.eclipse.jface.text.ITextViewer textViewer)
protected void doPaint(org.eclipse.swt.graphics.GC gc)
public void update()
public void setModel(org.eclipse.jface.text.source.IAnnotationModel model)
public org.eclipse.jface.text.source.IAnnotationModel getModel()
public int getWidth()
public int getLineOfLastMouseButtonActivity()
public int toDocumentLineNumber(int y_coordinate)
protected static final int widgetLine2ModelLine(LpexTextViewer viewer,
int widgetRow)
public void setFont(org.eclipse.swt.graphics.Font font)
public void setLocationOfLastMouseButtonActivity(int x,
int y)
public void addMouseListener(org.eclipse.swt.events.MouseListener listener)
public void removeMouseListener(org.eclipse.swt.events.MouseListener listener)
|
SWT LPEX v3.0.0 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||