Eclipse Platform
2.1

org.eclipse.jface.text
Class MarginPainter

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

public class MarginPainter
extends Object
implements IPainter, PaintListener

Paints a vertical line at a given column.


Field Summary
 
Fields inherited from interface org.eclipse.jface.text.IPainter
CONFIGURATION, INTERNAL, KEY_STROKE, MOUSE_BUTTON, SELECTION, TEXT_CHANGE
 
Constructor Summary
MarginPainter(ISourceViewer sourceViewer)
           
 
Method Summary
 void deactivate(boolean redraw)
          Deactivates the painter.
 void dispose()
          Disposes this painter.
 void initialize()
          Must be called explicitly when font of text widget changes.
 void paint(int reason)
           
 void paintControl(PaintEvent e)
          Sent when a paint event occurs for the control.
 void setMarginRulerColor(Color color)
          Must be called before paint is called the first time.
 void setMarginRulerColumn(int width)
           
 void setMarginRulerStyle(int lineStyle)
           
 void setMarginRulerWidth(int lineWidth)
           
 void setPositionManager(IPaintPositionManager manager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarginPainter

public MarginPainter(ISourceViewer sourceViewer)
Method Detail

setMarginRulerColumn

public void setMarginRulerColumn(int width)

setMarginRulerStyle

public void setMarginRulerStyle(int lineStyle)

setMarginRulerWidth

public void setMarginRulerWidth(int lineWidth)

setMarginRulerColor

public void setMarginRulerColor(Color color)
Must be called before paint is called the first time.


initialize

public void initialize()
Must be called explicitly when font of text widget changes.


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

paintControl

public void paintControl(PaintEvent e)
Description copied from interface: PaintListener
Sent when a paint event occurs for the control.

Specified by:
paintControl in interface PaintListener
Parameters:
e - an event containing information about the paint

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.