|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.alef.LpexOverviewRuler
public class LpexOverviewRuler
A vertical ruler displayed next to an LpexSourceViewer showing all annotations of the viewer's annotation model in a compact format. The ruler has the same height as the source viewer. Clients usually instantiate and configure objects of this class.
Eclipse's org.eclipse.jface.text.source.OverviewRuler assumes StyledText as the viewer's text widget. LPEX currently uses its own text widget.
Constructor Summary | |
---|---|
LpexOverviewRuler(IAnnotationAccess annotationAccess,
int width,
ISharedTextColors sharedColors)
Constructs a overview ruler of the given width using the given annotation access and color manager. |
|
LpexOverviewRuler(IAnnotationAccess annotationAccess,
int width,
ISharedTextColors sharedColors,
boolean discolorTemporaryAnnotation)
Constructs a overview ruler of the given width using the given annotation access and color manager. |
Method Summary | |
---|---|
void |
addAnnotationType(Object annotationType)
|
void |
addHeaderAnnotationType(Object annotationType)
|
Control |
createControl(Composite parent,
ITextViewer textViewer)
Creates the overview ruler's SWT control, a Canvas, for the LpexTextViewer specified. |
int |
getAnnotationHeight()
|
Control |
getControl()
|
Control |
getHeaderControl()
|
int |
getLineOfLastMouseButtonActivity()
|
IAnnotationModel |
getModel()
|
int |
getWidth()
|
boolean |
hasAnnotation(int y)
|
void |
removeAnnotationType(Object annotationType)
|
void |
removeHeaderAnnotationType(Object annotationType)
|
void |
setAnnotationTypeColor(Object annotationType,
Color color)
|
void |
setAnnotationTypeLayer(Object annotationType,
int layer)
|
void |
setModel(IAnnotationModel model)
Associates an annotation model with this overview ruler. |
void |
setUseSaturatedColors(boolean useSaturatedColor)
|
int |
toDocumentLineNumber(int y_coordinate)
|
void |
update()
Forces the overview ruler to update. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LpexOverviewRuler(IAnnotationAccess annotationAccess, int width, ISharedTextColors sharedColors)
Note: As of 3.4, temporary annotations are no longer discolored. Use
LpexOverviewRuler(IAnnotationAccess, int, ISharedTextColors, boolean)
if you want to keep the old behavior.
annotationAccess
- the annotation accesswidth
- the width of the vertical rulersharedColors
- the color managerpublic LpexOverviewRuler(IAnnotationAccess annotationAccess, int width, ISharedTextColors sharedColors, boolean discolorTemporaryAnnotation)
annotationAccess
- the annotation accesswidth
- the width of the vertical rulersharedColors
- the color managerdiscolorTemporaryAnnotation
- true
if temporary annotations should be discoloredMethod Detail |
---|
public Control getControl()
public int getWidth()
public void setModel(IAnnotationModel model)
null
value clears the ruler.
IVerticalRuler
public Control createControl(Composite parent, ITextViewer textViewer)
textViewer
- the LpexTextViewer associated with this rulerIVerticalRuler
public void update()
IVerticalRuler
public void addAnnotationType(Object annotationType)
public void removeAnnotationType(Object annotationType)
public void setAnnotationTypeLayer(Object annotationType, int layer)
public void setAnnotationTypeColor(Object annotationType, Color color)
public int getLineOfLastMouseButtonActivity()
public int toDocumentLineNumber(int y_coordinate)
public IAnnotationModel getModel()
public int getAnnotationHeight()
public boolean hasAnnotation(int y)
public Control getHeaderControl()
public void addHeaderAnnotationType(Object annotationType)
public void removeHeaderAnnotationType(Object annotationType)
public void setUseSaturatedColors(boolean useSaturatedColor)
IOverviewRulerExtension
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |