com.jgoodies.looks.common
Class ExtPasswordView
java.lang.Object
javax.swing.text.View
javax.swing.text.PlainView
javax.swing.text.FieldView
javax.swing.text.PasswordView
com.jgoodies.looks.common.ExtPasswordView
- All Implemented Interfaces:
- SwingConstants, TabExpander
public final class ExtPasswordView
- extends PasswordView
Differs from its superclass in that it uses the UIManager's echo char,
not a star ("*").
Used in Java 1.4 and Java 5 only.
- Version:
- $Revision: 1.7 $
- Author:
- Karsten Lentzsch
Fields inherited from 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 |
Methods inherited from class javax.swing.text.View |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtPasswordView
public ExtPasswordView(Element element)
getPreferredSpan
public float getPreferredSpan(int axis)
- Overrides:
getPreferredSpan
in class PasswordView
modelToView
public Shape modelToView(int pos,
Shape a,
Position.Bias b)
throws BadLocationException
- Overrides:
modelToView
in class PasswordView
- Throws:
BadLocationException
viewToModel
public int viewToModel(float fx,
float fy,
Shape a,
Position.Bias[] bias)
- Overrides:
viewToModel
in class PasswordView
drawEchoCharacter
protected int drawEchoCharacter(Graphics g,
int x,
int y,
char c)
- Overrides the superclass behavior to draw the Windows dot,
not the star ("*") character.
- Overrides:
drawEchoCharacter
in class PasswordView
- Parameters:
g
- the graphics contextx
- the starting X coordinate >= 0y
- the starting Y coordinate >= 0c
- the echo character
- Returns:
- the updated X position >= 0
Copyright © 2001-2007 JGoodies Karsten Lentzsch. All Rights Reserved.