java.lang.Object | +--javax.swing.text.View | +--javax.swing.text.PlainView | +--javax.swing.text.FieldView | +--javax.swing.text.PasswordView
Safe: Implements a View suitable for use in JPasswordField UI implementations. This is basically a field ui that renders its contents as the echo character specified in the associated component (if it can narrow the component to a JPasswordField).
Viewfont, lineBuffer, longLine, metrics, sel0, sel1, selected, tabBase, tabSize, unselected
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, sharedBiasReturn, X_AXIS, Y_AXIS
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
PasswordView(Element elem)
protected int
drawEchoCharacter(Graphics g,
int x,
int y,
char c)
protected int
drawSelectedText(Graphics g,
int x,
int y,
int p0,
int p1)
protected int
drawUnselectedText(Graphics g,
int x,
int y,
int p0,
int p1)
float
getPreferredSpan(int axis)
Shape
modelToView(int pos,
Shape a,
javax.swing.text.Position.Bias b)
int
viewToModel(float fx,
float fy,
Shape a,
javax.swing.text.Position.Bias[] bias)
adjustAllocation, adjustPaintRegion, getFontMetrics, getResizeWeight, insertUpdate, paint, removeUpdate, updateVisibilityModel
changedUpdate, damageLineRange, drawLine, getLineBuffer, getTabSize, lineToRect, nextTabStop, setSize, updateDamage, updateMetrics
append, breakView, createFragment, forwardUpdate, forwardUpdateToView, getAlignment, getAttributes, getBreakWeight, getChildAllocation, getContainer, getDocument, getElement, getEndOffset, getGraphics, getMaximumSpan, getMinimumSpan, getNextVisualPositionFrom, getParent, getStartOffset, getToolTipText, getView, getViewCount, getViewFactory, getViewIndex, getViewIndex, insert, isVisible, modelToView, modelToView, preferenceChanged, remove, removeAll, replace, setParent, updateChildren, updateLayout, viewToModel
static char[] ONE
public PasswordView(Element elem)
elem - the elementprotected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
drawUnselectedText in class PlainViewg - the graphics contextx - the starting X coordinate>= 0y - the starting Y coordinate>= 0p0 - the starting offset in the model>= 0p1 - the ending offset in the model>= p0
BadLocationExceptionprotected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException
drawSelectedText in class PlainViewg - the graphics contextx - the starting X coordinate>= 0y - the starting Y coordinate>= 0p0 - the starting offset in the model>= 0p1 - the ending offset in the model>= p0
BadLocationExceptionprotected int drawEchoCharacter(Graphics g, int x, int y, char c)
g - the graphics contextx - the starting X coordinate>= 0y - the starting Y coordinate>= 0c - the echo character
public Shape modelToView(int pos, Shape a, javax.swing.text.Position.Bias b) throws BadLocationException
modelToView in class FieldViewpos - the position to convert>= 0a - the allocated region to render into
BadLocationExceptionView.modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)public int viewToModel(float fx, float fy, Shape a, javax.swing.text.Position.Bias[] bias)
viewToModel in class FieldViewfx - the X coordinate>= 0.0ffy - the Y coordinate>= 0.0fa - the allocated region to render into
View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])public float getPreferredSpan(int axis)
getPreferredSpan in class FieldViewaxis - may be either View.X_AXIS or View.Y_AXIS