java.lang.Object
javax.swing.text.View
javax.swing.text.PlainView
javax.swing.text.FieldView
javax.swing.text.PasswordView
- All Implemented Interfaces:
SwingConstants
,TabExpander
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).
- See Also:
-
Field Summary
Fields declared in class javax.swing.text.View
BadBreakWeight, ExcellentBreakWeight, ForcedBreakWeight, GoodBreakWeight, X_AXIS, Y_AXIS
Fields declared in interface javax.swing.SwingConstants
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected float
drawEchoCharacter
(Graphics2D g, float x, float y, char c) Renders the echo character, or whatever graphic should be used to display the password characters.protected int
drawEchoCharacter
(Graphics g, int x, int y, char c) Deprecated.protected int
drawSelectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.protected int
drawUnselectedText
(Graphics g, int x, int y, int p0, int p1) Deprecated.float
getPreferredSpan
(int axis) Determines the preferred span for this view along an axis.
drawEchoCharacter(Graphics2D, float, float, char)