public class PasswordTextPainter extends TextPainter
TextPainter that will paint the text that should be showed within
a cell anonymized. Like in PasswordCellEditor every character will be replaced
with another echo character. The echo character can be configured by setting the
attribute CellStyleAttributes.PASSWORD_ECHO_CHAR to the cell style to use.
If no echo character is configured, the bullet character will be used as echo character.PasswordCellEditorcalculateByTextHeight, calculateByTextLength, DOT, EMPTY, LINE_SEPARATOR, NEW_LINE_REGEX, paintBg, paintFg, spacing, wrapText| Constructor and Description |
|---|
PasswordTextPainter() |
PasswordTextPainter(boolean wrapText,
boolean paintBg) |
PasswordTextPainter(boolean wrapText,
boolean paintBg,
boolean calculate) |
PasswordTextPainter(boolean wrapText,
boolean paintBg,
int spacing) |
PasswordTextPainter(boolean wrapText,
boolean paintBg,
int spacing,
boolean calculate) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getTextToDisplay(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
int availableLength,
String text)
Computes dependent on the configuration of the TextPainter the text to display.
|
void |
paintCell(ILayerCell cell,
org.eclipse.swt.graphics.GC gc,
org.eclipse.swt.graphics.Rectangle rectangle,
IConfigRegistry configRegistry) |
calculatePadding, getPreferredHeight, getPreferredWidth, performRowResize, setNewMinLengthconvertDataType, getLengthFromCache, getNumberOfNewLines, renderStrikethrough, renderUnderlined, setStrikethrough, setUnderline, setupGCFromConfiggetBackgroundColourgetCellPainterAt, getWrappedPainter, getWrappedPainterBounds, setWrappedPainterpublic PasswordTextPainter()
public PasswordTextPainter(boolean wrapText,
boolean paintBg)
public PasswordTextPainter(boolean wrapText,
boolean paintBg,
int spacing)
public PasswordTextPainter(boolean wrapText,
boolean paintBg,
boolean calculate)
public PasswordTextPainter(boolean wrapText,
boolean paintBg,
int spacing,
boolean calculate)
public void paintCell(ILayerCell cell, org.eclipse.swt.graphics.GC gc, org.eclipse.swt.graphics.Rectangle rectangle, IConfigRegistry configRegistry)
paintCell in interface ICellPainterpaintCell in class TextPainterprotected String getTextToDisplay(ILayerCell cell, org.eclipse.swt.graphics.GC gc, int availableLength, String text)
AbstractTextPaintergetTextToDisplay in class AbstractTextPaintercell - the current cell to paintgc - the current GCavailableLength - the available space for the text to displaytext - the text that should be modified for displayCopyright © 2013. All Rights Reserved.