View
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| pack-priv static char[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected int | Returns: the updated X position >= 0the graphics context g, int the starting X coordinate >= 0 x, int the starting Y coordinate >= 0 y, char the echo character c)
Deprecated
since 9. replaced by
drawEchoCharacter(Graphics2D, float, float, char)
Renders the echo character, or whatever graphic should be used to display the password characters. |
| protected float | Returns: the updated X position>= 0the graphics context g, float the starting X coordinate x, float >= 0the starting Y coordinate y, char >= 0the echo character c)Renders the echo character, or whatever graphic should be used to display the password characters. |
| private float | |
| protected int | Returns: the X location of the end of the range >= 0the graphics context g, int the starting X coordinate >= 0 x, int the starting Y coordinate >= 0 y, int the starting offset in the model >= 0 p0, int the ending offset in the model >= p0 p1)Overrides javax.
Deprecated
since 9. replaced by
drawSelectedText(Graphics2D, float, float, int, int)
Renders the given range in the model as selected text. |
| protected float | drawSelectedText(Graphics2D g, float x, float y, int p0, int p1)
Overrides javax. Renders the given range in the model as selected text. |
| private float | drawSelectedTextImpl(Graphics g, float x, float y, int p0, int p1, boolean useFPAPI)
Hides javax.
|
| protected int | Returns: the X location of the end of the range >= 0the graphics context g, int the starting X coordinate >= 0 x, int the starting Y coordinate >= 0 y, int the starting offset in the model >= 0 p0, int the ending offset in the model >= p0 p1)Overrides javax.
Deprecated
since 9. replaced by
drawUnselectedText(Graphics2D, float, float, int, int)
Renders the given range in the model as normal unselected text. |
| protected float | drawUnselectedText(Graphics2D g, float x, float y, int p0, int p1)
Overrides javax. Renders the given range in the model as normal unselected text. |
| private float | drawUnselectedTextImpl(Graphics g, float x, float y, int p0, int p1, boolean useFPAPI)
Hides javax.
|
| public float | Returns: the span the view would like to be rendered into >= 0. Typically the view is told to render into the span that is returned, although there is no guarantee. The parent may choose to resize or break the view.may be either View.X_AXIS or View.Y_AXIS axis)Overrides javax. Determines the preferred span for this view along an axis. |
| public Shape | Returns: the bounding box of the given positionthe position to convert >= 0 pos, Shape the allocated region to render into a, Position.Overrides javax. Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it. |
| public int | Returns: the location within the model that best represents the given point in the viewthe X coordinate >= 0.0f fx, float the Y coordinate >= 0.0f fy, Shape the allocated region to render into a, Position.Overrides javax. Provides a mapping from the view coordinate space to the logical coordinate space of the model. |
| drawEchoCharacterOverridden | back to summary |
|---|---|
| private final boolean drawEchoCharacterOverridden | |
| ONE | back to summary |
|---|---|
| pack-priv static char[] ONE | |
| PasswordView | back to summary |
|---|---|
| public PasswordView(Element elem) Constructs a new view wrapped on an element.
| |
| drawEchoCharacter | back to summary |
|---|---|
| protected int drawEchoCharacter(Graphics g, int x, int y, char c)
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.
| |
| drawEchoCharacter | back to summary |
|---|---|
| protected 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. The color in the Graphics object is set to the appropriate foreground color for selected or unselected text.
| |
| drawEchoCharacterImpl | back to summary |
|---|---|
| private float drawEchoCharacterImpl(Graphics g, float x, float y, char c, boolean useFPAPI) | |
| drawSelectedText | back to summary |
|---|---|
| protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException Overrides javax. 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.
| |
| drawSelectedText | back to summary |
|---|---|
| protected float drawSelectedText(Graphics2D g, float x, float y, int p0, int p1) throws BadLocationException Overrides javax. Doc from javax. 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.
| |
| drawSelectedTextImpl | back to summary |
|---|---|
| private float drawSelectedTextImpl(Graphics g, float x, float y, int p0, int p1, boolean useFPAPI) throws BadLocationException Hides javax.
| |
| drawUnselectedText | back to summary |
|---|---|
| protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1) throws BadLocationException Overrides javax. 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().
| |
| drawUnselectedText | back to summary |
|---|---|
| protected float drawUnselectedText(Graphics2D g, float x, float y, int p0, int p1) throws BadLocationException Overrides javax. Doc from javax. Renders the given range in the model as normal unselected text. Uses the foreground or disabled color to render the text.
| |
| drawUnselectedTextImpl | back to summary |
|---|---|
| private float drawUnselectedTextImpl(Graphics g, float x, float y, int p0, int p1, boolean useFPAPI) throws BadLocationException Hides javax.
| |
| getPreferredSpan | back to summary |
|---|---|
| public float getPreferredSpan(int axis) Overrides javax. Determines the preferred span for this view along an axis.
| |
| modelToView | back to summary |
|---|---|
| public Shape modelToView(int pos, Shape a, Position. Overrides javax. Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.
| |
| viewToModel | back to summary |
|---|---|
| public int viewToModel(float fx, float fy, Shape a, Position. Overrides javax. Provides a mapping from the view coordinate space to the logical coordinate space of the model.
| |