public class WhitespaceCharacterPainter extends Object implements IPainter, PaintListener
CONFIGURATION, INTERNAL, KEY_STROKE, MOUSE_BUTTON, SELECTION, TEXT_CHANGE| Constructor and Description |
|---|
WhitespaceCharacterPainter(ITextViewer textViewer)
Creates a new painter for the given text viewer.
|
WhitespaceCharacterPainter(ITextViewer viewer,
boolean showLeadingSpaces,
boolean showEnclosedSpaces,
boolean showTrailingSpaces,
boolean showLeadingIdeographicSpaces,
boolean showEnclosedIdeographicSpaces,
boolean showTrailingIdeographicSpace,
boolean showLeadingTabs,
boolean showEnclosedTabs,
boolean showTrailingTabs,
boolean showCarriageReturn,
boolean showLineFeed,
int alpha)
Creates a new painter for the given text viewer and the painter options.
|
| Modifier and Type | Method and Description |
|---|---|
void |
deactivate(boolean redraw)
Deactivates this painter.
|
void |
dispose()
Disposes this painter.
|
void |
paint(int reason)
Requests this painter to repaint because of the given reason.
|
void |
paintControl(PaintEvent event)
Sent when a paint event occurs for the control.
|
void |
setPositionManager(IPaintPositionManager manager)
Sets the paint position manager that can be used by this painter or removes any previously
set paint position manager.
|
public WhitespaceCharacterPainter(ITextViewer textViewer)
textViewer - the text viewer the painter should be attached topublic WhitespaceCharacterPainter(ITextViewer viewer, boolean showLeadingSpaces, boolean showEnclosedSpaces, boolean showTrailingSpaces, boolean showLeadingIdeographicSpaces, boolean showEnclosedIdeographicSpaces, boolean showTrailingIdeographicSpace, boolean showLeadingTabs, boolean showEnclosedTabs, boolean showTrailingTabs, boolean showCarriageReturn, boolean showLineFeed, int alpha)
viewer - the text viewer the painter should be attached toshowLeadingSpaces - if true, show leading SpacesshowEnclosedSpaces - if true, show enclosed SpacesshowTrailingSpaces - if true, show trailing SpacesshowLeadingIdeographicSpaces - if true, show leading Ideographic SpacesshowEnclosedIdeographicSpaces - if true, show enclosed Ideographic SpacesshowTrailingIdeographicSpace - if true, show trailing Ideographic SpacesshowLeadingTabs - if true, show leading TabsshowEnclosedTabs - if true, show enclosed TabsshowTrailingTabs - if true, show trailing TabsshowCarriageReturn - if true, show Carriage ReturnsshowLineFeed - if true, show Line Feedsalpha - the alpha valuepublic void dispose()
IPainterdispose in interface IPainterIPainter.deactivate(boolean)public void paint(int reason)
IPainterpublic void deactivate(boolean redraw)
IPainterredraw indicates whether the painter
should remove any decoration it previously applied. A deactivated painter
can be reactivated by calling paint.deactivate in interface IPainterredraw - true if any previously applied decoration
should be removedIPainter.paint(int)public void setPositionManager(IPaintPositionManager manager)
IPaintersetPositionManager in interface IPaintermanager - the paint position manager or nullpublic void paintControl(PaintEvent event)
PaintListenerpaintControl in interface PaintListenerevent - an event containing information about the paint
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.