com.jgoodies.looks.common

Class ExtPasswordView

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.9 $

Author: Karsten Lentzsch

Constructor Summary
ExtPasswordView(Element element)
Method Summary
protected intdrawEchoCharacter(Graphics g, int x, int y, char c)
Overrides the superclass behavior to draw the Windows dot, not the star ("*") character.
floatgetPreferredSpan(int axis)
ShapemodelToView(int pos, Shape a, Bias b)
intviewToModel(float fx, float fy, Shape a, Bias[] bias)

Constructor Detail

ExtPasswordView

public ExtPasswordView(Element element)

Method Detail

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.

Parameters: g the graphics context x the starting X coordinate >= 0 y the starting Y coordinate >= 0 c the echo character

Returns: the updated X position >= 0

getPreferredSpan

public float getPreferredSpan(int axis)

modelToView

public Shape modelToView(int pos, Shape a, Bias b)

viewToModel

public int viewToModel(float fx, float fy, Shape a, Bias[] bias)
Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.