Eclipse Platform
2.1

org.eclipse.jface.text
Class CursorLinePainter

java.lang.Object
  |
  +--org.eclipse.jface.text.CursorLinePainter
All Implemented Interfaces:
EventListener, IPainter, LineBackgroundListener, org.eclipse.swt.internal.SWTEventListener

public class CursorLinePainter
extends Object
implements IPainter, LineBackgroundListener

Paints the background of the cursor line in the configured color.


Field Summary
 
Fields inherited from interface org.eclipse.jface.text.IPainter
CONFIGURATION, INTERNAL, KEY_STROKE, MOUSE_BUTTON, SELECTION, TEXT_CHANGE
 
Constructor Summary
CursorLinePainter(ISourceViewer sourceViewer)
           
 
Method Summary
 void deactivate(boolean redraw)
          Deactivates the painter.
 void dispose()
          Disposes this painter.
 void lineGetBackground(LineBackgroundEvent event)
          This method is called when a line is about to be drawn in order to get its background color.
 void paint(int reason)
           
 void setHighlightColor(Color highlightColor)
           
 void setPositionManager(IPaintPositionManager manager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorLinePainter

public CursorLinePainter(ISourceViewer sourceViewer)
Method Detail

setHighlightColor

public void setHighlightColor(Color highlightColor)

lineGetBackground

public void lineGetBackground(LineBackgroundEvent event)
Description copied from interface: LineBackgroundListener
This method is called when a line is about to be drawn in order to get its background color.

Specified by:
lineGetBackground in interface LineBackgroundListener

deactivate

public void deactivate(boolean redraw)
Description copied from interface: IPainter
Deactivates the painter.

XXX: The relationship with dispose is not yet defined.

Specified by:
deactivate in interface IPainter

dispose

public void dispose()
Description copied from interface: IPainter
Disposes this painter.

XXX: The relationship with deactivate is not yet defined.

Specified by:
dispose in interface IPainter

paint

public void paint(int reason)
Specified by:
paint in interface IPainter

setPositionManager

public void setPositionManager(IPaintPositionManager manager)
Specified by:
setPositionManager in interface IPainter

Eclipse Platform
2.1

Copyright (c) IBM Corp. and others 2000, 2003. All Rights Reserved.