java.lang.Object | ||||
↳ | javax.swing.text.View | |||
↳ | javax.swing.text.PlainView | |||
↳ | javax.swing.text.FieldView | |||
↳ | javax.swing.text.PasswordView |
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).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new view wrapped on an element.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Determines the preferred span for this view along an
axis.
| |||||||||||
Provides a mapping from the document model coordinate space
to the coordinate space of the view mapped to it.
| |||||||||||
Provides a mapping from the view coordinate space to the logical
coordinate space of the model.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Renders the echo character, or whatever graphic should be used
to display the password characters.
| |||||||||||
Renders the given range in the model as selected text.
| |||||||||||
Renders the given range in the model as normal unselected
text.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Constructs a new view wrapped on an element.
elem | the element |
---|
Determines the preferred span for this view along an axis.
axis | may be either View.X_AXIS or View.Y_AXIS |
---|
Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.
pos | the position to convert >= 0 |
---|---|
a | the allocated region to render into |
b | the bias toward the previous character or the
next character represented by the offset, in case the
position is a boundary of two views; b will have one
of these values:
|
BadLocationException | if the given position does not represent a valid location in the associated document |
---|
Provides a mapping from the view coordinate space to the logical coordinate space of the model.
fx | the X coordinate >= 0.0f |
---|---|
fy | the Y coordinate >= 0.0f |
a | the allocated region to render into |
Renders the echo character, or whatever graphic should be used to display the password characters. The color in the Graphics object is set to the appropriate foreground color for selected or unselected text.
g | the graphics context |
---|---|
x | the starting X coordinate >= 0 |
y | the starting Y coordinate >= 0 |
c | the echo character |
Renders the given range in the model as selected text. This is implemented to render the text in the color specified in the hosting component. It assumes the highlighter will render the selected background. Uses the result of getEchoChar() to display the characters.
g | the graphics context |
---|---|
x | the starting X coordinate >= 0 |
y | the starting Y coordinate >= 0 |
p0 | the starting offset in the model >= 0 |
p1 | the ending offset in the model >= p0 |
BadLocationException | if p0 or p1 are out of range |
---|
Renders the given range in the model as normal unselected text. This sets the foreground color and echos the characters using the value returned by getEchoChar().
g | the graphics context |
---|---|
x | the starting X coordinate >= 0 |
y | the starting Y coordinate >= 0 |
p0 | the starting offset in the model >= 0 |
p1 | the ending offset in the model >= p0 |
BadLocationException | if p0 or p1 are out of range |
---|