|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.jface.text.source.ChangeRulerColumn
A vertical ruler column displaying line numbers and serving as a UI for quick diff. Clients usually instantiate and configure object of this class.
| Field Summary |
| Fields inherited from interface org.eclipse.jface.text.source.IChangeRulerColumn |
QUICK_DIFF_MODEL_ID |
| Constructor Summary | |
ChangeRulerColumn()
|
|
| Method Summary | |
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. |
IAnnotationHover |
getHover()
Returns the hover for this vertical ruler (column). |
int |
getLineOfLastMouseButtonActivity()
Returns the line number of the last mouse button activity. |
IAnnotationModel |
getModel()
Returns the model currently used by the receiver. |
protected CompositeRuler |
getParentRuler()
Returns the parent (composite) ruler of this ruler column. |
protected int |
getVisibleLinesInViewport()
Returns the viewport height in lines. |
int |
getWidth()
Returns the width of this column's control. |
protected void |
handleDispose()
Disposes the column's resources. |
protected void |
paintLine(int line,
int y,
int lineheight,
GC gc,
Display display)
|
protected void |
postRedraw()
Triggers a redraw in the display thread. |
void |
redraw()
Redraws this column. |
void |
setAddedColor(Color addedColor)
Sets the background color for added lines. |
void |
setBackground(Color background)
Sets the background color for normal lines. |
void |
setChangedColor(Color changedColor)
Sets the background color for changed lines. |
void |
setDeletedColor(Color deletedColor)
Sets the color for the deleted lines indicator. |
void |
setFont(Font font)
Sets the font of this ruler column. |
void |
setHover(IAnnotationHover hover)
Sets the hover of this ruler column. |
void |
setModel(IAnnotationModel model)
Associates an annotation model with this ruler column. |
int |
toDocumentLineNumber(int y_coordinate)
Translates a y-coordinate of the ruler's SWT control into the according line number of the document of the connected text viewer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ChangeRulerColumn()
| Method Detail |
protected Color getBackground(Display display)
display - the display the drawing occurs on
public Control createControl(CompositeRuler parentRuler,
Composite parentControl)
IVerticalRulerColumn
createControl in interface IVerticalRulerColumnparentRuler - the parent ruler of this columnparentControl - the control of the parent ruler
protected void handleDispose()
protected int getVisibleLinesInViewport()
public void redraw()
IVerticalRulerColumn
redraw in interface IVerticalRulerColumnpublic void setFont(Font font)
IVerticalRulerColumn
setFont in interface IVerticalRulerColumnfont - the new font of the ruler columnprotected CompositeRuler getParentRuler()
protected void paintLine(int line,
int y,
int lineheight,
GC gc,
Display display)
public int getLineOfLastMouseButtonActivity()
IVerticalRulerInfo0.
getLineOfLastMouseButtonActivity in interface IVerticalRulerInfopublic int toDocumentLineNumber(int y_coordinate)
IVerticalRulerInfo
toDocumentLineNumber in interface IVerticalRulerInfoy_coordinate - a y-coordinate of the ruler's SWT control
-1 if that
coordinate does not correspond to a valid document linepublic IAnnotationHover getHover()
IVerticalRulerInfoExtension
getHover in interface IVerticalRulerInfoExtensionpublic void setHover(IAnnotationHover hover)
IChangeRulerColumn
setHover in interface IChangeRulerColumnhover - the hover that will produce hover information text for this ruler columnpublic void setModel(IAnnotationModel model)
IVerticalRulerColumnnull is acceptable and clears the ruler.
setModel in interface IVerticalRulerColumnmodel - the new annotation model, may be nullpublic void setBackground(Color background)
IChangeRulerColumn
setBackground in interface IChangeRulerColumnbackground - the new color to be used as standard line backgroundpublic void setAddedColor(Color addedColor)
IChangeRulerColumn
setAddedColor in interface IChangeRulerColumnaddedColor - the new color to be used for the added lines backgroundpublic void setChangedColor(Color changedColor)
IChangeRulerColumn
setChangedColor in interface IChangeRulerColumnchangedColor - the new color to be used for the changed lines backgroundpublic void setDeletedColor(Color deletedColor)
IChangeRulerColumn
setDeletedColor in interface IChangeRulerColumndeletedColor - the new color to be used for the deleted lines indicator.public IAnnotationModel getModel()
IVerticalRulerInfoExtension
getModel in interface IVerticalRulerInfoExtensionnull if no model is installed.public Control getControl()
IVerticalRulerColumn
getControl in interface IVerticalRulerColumnpublic int getWidth()
IVerticalRulerColumn
getWidth in interface IVerticalRulerColumnprotected final void postRedraw()
|
Eclipse Platform Pre-release 3.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||