|
Eclipse Platform 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.PaintManager
Manages the IPainter
object registered with an
ITextViewer
.
Clients usually instantiate and configure objects of this type.
Constructor Summary | |
PaintManager(ITextViewer textViewer)
Creates a new paint manager for the given text viewer. |
Method Summary | |
void |
addPainter(IPainter painter)
Adds the given painter to the list of painters managed by this paint manager. |
void |
dispose()
Disposes this paint manager. |
void |
inputDocumentAboutToBeChanged(IDocument oldInput,
IDocument newInput)
Called before the input document is replaced. |
void |
inputDocumentChanged(IDocument oldInput,
IDocument newInput)
Called after the input document has been replaced. |
void |
keyPressed(KeyEvent e)
Sent when a key is pressed on the system keyboard. |
void |
keyReleased(KeyEvent e)
Sent when a key is released on the system keyboard. |
void |
mouseDoubleClick(MouseEvent e)
Sent when a mouse button is pressed twice within the (operating system specified) double click period. |
void |
mouseDown(MouseEvent e)
Sent when a mouse button is pressed. |
void |
mouseUp(MouseEvent e)
Sent when a mouse button is released. |
void |
removePainter(IPainter painter)
Removes the given painter from the list of painters managed by this paint manager. |
void |
selectionChanged(SelectionChangedEvent event)
Notifies that the selection has changed. |
void |
textChanged(TextEvent event)
The visual representation of a text viewer this listener is registered with has been changed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PaintManager(ITextViewer textViewer)
textViewer
- the text viewer associated to this newly created paint managerMethod Detail |
public void addPainter(IPainter painter)
painter
- the painter to be addedpublic void removePainter(IPainter painter)
painter
- the painter to be removedpublic void dispose()
public void keyPressed(KeyEvent e)
KeyListener
keyPressed
in interface KeyListener
e
- an event containing information about the key presspublic void keyReleased(KeyEvent e)
KeyListener
keyReleased
in interface KeyListener
e
- an event containing information about the key releasepublic void mouseDoubleClick(MouseEvent e)
MouseListener
mouseDoubleClick
in interface MouseListener
e
- an event containing information about the mouse double clickDisplay.getDoubleClickTime()
public void mouseDown(MouseEvent e)
MouseListener
mouseDown
in interface MouseListener
e
- an event containing information about the mouse button presspublic void mouseUp(MouseEvent e)
MouseListener
mouseUp
in interface MouseListener
e
- an event containing information about the mouse button releasepublic void selectionChanged(SelectionChangedEvent event)
ISelectionChangedListener
selectionChanged
in interface ISelectionChangedListener
event
- event object describing the changepublic void textChanged(TextEvent event)
ITextListener
textChanged
in interface ITextListener
event
- the description of the changepublic void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput)
ITextInputListener
inputDocumentAboutToBeChanged
in interface ITextInputListener
oldInput
- the text viewer's previous input documentnewInput
- the text viewer's new input documentpublic void inputDocumentChanged(IDocument oldInput, IDocument newInput)
ITextInputListener
inputDocumentChanged
in interface ITextInputListener
oldInput
- the text viewer's previous input documentnewInput
- the text viewer's new input document
|
Eclipse Platform Release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.