|Constructor and Description|
Creates a new painter for the given text viewer.
Creates a new painter for the given text viewer and the painter options.
|Modifier and Type||Method and Description|
Deactivates this painter.
Disposes this painter.
Requests this painter to repaint because of the given reason.
Sent when a paint event occurs for the control.
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 to
public 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 to
true, show leading Spaces
true, show enclosed Spaces
true, show trailing Spaces
true, show leading Ideographic Spaces
true, show enclosed Ideographic Spaces
true, show trailing Ideographic Spaces
true, show leading Tabs
true, show enclosed Tabs
true, show trailing Tabs
true, show Carriage Returns
true, show Line Feeds
alpha- the alpha value
public void dispose()
public void paint(int reason)
public void deactivate(boolean redraw)
redrawindicates whether the painter should remove any decoration it previously applied. A deactivated painter can be reactivated by calling
public void setPositionManager(IPaintPositionManager manager)
Copyright (c) 2000, 2018 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.