/[classpath]/classpath/javax/swing/text/PasswordView.java
ViewVC logotype

Diff of /classpath/javax/swing/text/PasswordView.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by mkoch, Fri Oct 22 12:44:01 2004 UTC revision 1.3 by mkoch, Fri Dec 24 11:57:07 2004 UTC
# Line 56  public class PasswordView extends FieldV Line 56  public class PasswordView extends FieldV
56      super(elem);      super(elem);
57    }    }
58    
59      /**
60       * Draws one echo character at a given position.
61       *
62       * @param g the <code>Graphics</code> object to draw to
63       * @param x the x-position
64       * @param y the y-position
65       * @param ch the echo character
66       *
67       * @return the next x position right of the drawn character
68       */
69    protected int drawEchoCharacter(Graphics g, int x, int y, char ch)    protected int drawEchoCharacter(Graphics g, int x, int y, char ch)
70    {    {
71      // Update font metrics.      // Update font metrics.
# Line 79  public class PasswordView extends FieldV Line 89  public class PasswordView extends FieldV
89      return ch;      return ch;
90    }    }
91    
92      /**
93       * Draws selected text at a given position.
94       *
95       * @param g the <code>Graphics</code> object to draw to
96       * @param x the x-position
97       * @param y the y-position
98       * @param p0 the position of the first character to draw
99       * @param p1 the position of the first character not to draw
100       *
101       * @return the next x position right of the drawn character
102       */
103    protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1)    protected int drawSelectedText(Graphics g, int x, int y, int p0, int p1)
104      throws BadLocationException      throws BadLocationException
105    {    {
# Line 107  public class PasswordView extends FieldV Line 128  public class PasswordView extends FieldV
128      return x + len * metrics.charWidth(ch);      return x + len * metrics.charWidth(ch);
129    }    }
130    
131      /**
132       * Draws unselected text at a given position.
133       *
134       * @param g the <code>Graphics</code> object to draw to
135       * @param x the x-position
136       * @param y the y-position
137       * @param p0 the position of the first character to draw
138       * @param p1 the position of the first character not to draw
139       *
140       * @return the next x position right of the drawn character
141       */
142    protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)    protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
143      throws BadLocationException      throws BadLocationException
144    {    {

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26