LPEX
4.4.0

com.ibm.lpex.alef
Class AnnotationColumn

java.lang.Object
  extended by AbstractContributedRulerColumn
      extended by com.ibm.lpex.alef.AnnotationColumn

public final class AnnotationColumn
extends AbstractContributedRulerColumn

The annotation ruler contribution. Encapsulates an LpexAnnotationRulerColumn as a contribution to the rulerColumns extension point. Instead of instantiating the delegate itself, LpexAbstractDecoratedTextEditor creates it using its createAnnotationRulerColumn() method, and sets it via setDelegate(IVerticalRulerColumn).


Field Summary
static String ID
          The contribution id of the annotation ruler.
 
Constructor Summary
AnnotationColumn()
           
 
Method Summary
 void addVerticalRulerListener(IVerticalRulerListener listener)
           
 void columnRemoved()
           
 Control createControl(CompositeRuler parentRuler, Composite parentControl)
           
 Control getControl()
           
 IAnnotationHover getHover()
           
 int getLineOfLastMouseButtonActivity()
           
 IAnnotationModel getModel()
           
 int getWidth()
           
 void redraw()
           
 void removeVerticalRulerListener(IVerticalRulerListener listener)
           
 void setDelegate(IVerticalRulerColumn column)
          Sets the compatibility delegate.
 void setFont(Font font)
           
 void setModel(IAnnotationModel model)
           
 int toDocumentLineNumber(int y_coordinate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static final String ID
The contribution id of the annotation ruler.

See Also:
Constant Field Values
Constructor Detail

AnnotationColumn

public AnnotationColumn()
Method Detail

createControl

public Control createControl(CompositeRuler parentRuler,
                             Composite parentControl)

getControl

public Control getControl()

getWidth

public int getWidth()

redraw

public void redraw()

setFont

public void setFont(Font font)

setModel

public void setModel(IAnnotationModel model)

columnRemoved

public void columnRemoved()

setDelegate

public void setDelegate(IVerticalRulerColumn column)
Sets the compatibility delegate. Called by LpexAbstractDecoratedTextEditor.

Parameters:
column - the delegate column implementation (an LpexAnnotationRulerColumn)

addVerticalRulerListener

public void addVerticalRulerListener(IVerticalRulerListener listener)

getHover

public IAnnotationHover getHover()

getModel

public IAnnotationModel getModel()

removeVerticalRulerListener

public void removeVerticalRulerListener(IVerticalRulerListener listener)

getLineOfLastMouseButtonActivity

public int getLineOfLastMouseButtonActivity()

toDocumentLineNumber

public int toDocumentLineNumber(int y_coordinate)

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.