<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:25 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  PasswordView
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/PasswordView.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/swing/text/ParagraphView.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/PlainDocument.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="PasswordView.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.PlainView">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
javax.swing.text</FONT>
<BR>
Class  PasswordView</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../javax/swing/text/View.html">javax.swing.text.View</A>
        |
        +--<A HREF="../../../javax/swing/text/PlainView.html">javax.swing.text.PlainView</A>
              |
              +--<A HREF="../../../javax/swing/text/FieldView.html">javax.swing.text.FieldView</A>
                    |
                    +--<B>javax.swing.text.PasswordView</B>
</PRE>
<HR>
<DL>
<DT>public class <B>PasswordView</B><DT>extends <A HREF="../../../javax/swing/text/FieldView.html">FieldView</A></DL>

<P>
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).
<P>
<DL>
<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html"><CODE>View</CODE></A></DL>
<HR>

<P>
<!-- ======== INNER CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->

<A NAME="fields_inherited_from_class_javax.swing.text.PlainView"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/PlainView.html">PlainView</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/PlainView.html#metrics">metrics</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_javax.swing.text.View"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Fields inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/View.html">View</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/View.html#BadBreakWeight">BadBreakWeight</A>,  
<A HREF="../../../javax/swing/text/View.html#ExcellentBreakWeight">ExcellentBreakWeight</A>,  
<A HREF="../../../javax/swing/text/View.html#ForcedBreakWeight">ForcedBreakWeight</A>,  
<A HREF="../../../javax/swing/text/View.html#GoodBreakWeight">GoodBreakWeight</A>,  
<A HREF="../../../javax/swing/text/View.html#X_AXIS">X_AXIS</A>,  
<A HREF="../../../javax/swing/text/View.html#Y_AXIS">Y_AXIS</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../../../javax/swing/text/PasswordView.html#PasswordView(javax.swing.text.Element)">PasswordView</A></B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a new view wrapped on an element.</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/PasswordView.html#drawEchoCharacter(java.awt.Graphics, int, int, char)">drawEchoCharacter</A></B>(java.awt.Graphics&nbsp;g,
                  int&nbsp;x,
                  int&nbsp;y,
                  char&nbsp;c)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renders the echo character, or whatever graphic should be used
 to display the password characters.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/PasswordView.html#drawSelectedText(java.awt.Graphics, int, int, int, int)">drawSelectedText</A></B>(java.awt.Graphics&nbsp;g,
                 int&nbsp;x,
                 int&nbsp;y,
                 int&nbsp;p0,
                 int&nbsp;p1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renders the given range in the model as selected text.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/PasswordView.html#drawUnselectedText(java.awt.Graphics, int, int, int, int)">drawUnselectedText</A></B>(java.awt.Graphics&nbsp;g,
                   int&nbsp;x,
                   int&nbsp;y,
                   int&nbsp;p0,
                   int&nbsp;p1)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renders the given range in the model as normal unselected
 text.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.awt.Shape</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/PasswordView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A></B>(int&nbsp;pos,
            java.awt.Shape&nbsp;a,
            <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a mapping from the document model coordinate space
 to the coordinate space of the view mapped to it.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/PasswordView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A></B>(float&nbsp;fx,
            float&nbsp;fy,
            java.awt.Shape&nbsp;a,
            <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;bias)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Provides a mapping from the view coordinate space to the logical
 coordinate space of the model.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.FieldView"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/FieldView.html">FieldView</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/FieldView.html#adjustAllocation(java.awt.Shape)">adjustAllocation</A>, 
<A HREF="../../../javax/swing/text/FieldView.html#getFontMetrics()">getFontMetrics</A>, 
<A HREF="../../../javax/swing/text/FieldView.html#getPreferredSpan(int)">getPreferredSpan</A>, 
<A HREF="../../../javax/swing/text/FieldView.html#getResizeWeight(int)">getResizeWeight</A>, 
<A HREF="../../../javax/swing/text/FieldView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A>, 
<A HREF="../../../javax/swing/text/FieldView.html#paint(java.awt.Graphics, java.awt.Shape)">paint</A>, 
<A HREF="../../../javax/swing/text/FieldView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.PlainView"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/PlainView.html">PlainView</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/PlainView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A>, 
<A HREF="../../../javax/swing/text/PlainView.html#drawLine(int, java.awt.Graphics, int, int)">drawLine</A>, 
<A HREF="../../../javax/swing/text/PlainView.html#getLineBuffer()">getLineBuffer</A>, 
<A HREF="../../../javax/swing/text/PlainView.html#getTabSize()">getTabSize</A>, 
<A HREF="../../../javax/swing/text/PlainView.html#nextTabStop(float, int)">nextTabStop</A>, 
<A HREF="../../../javax/swing/text/PlainView.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.View"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class javax.swing.text.<A HREF="../../../javax/swing/text/View.html">View</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/View.html#breakView(int, int, float, float)">breakView</A>, 
<A HREF="../../../javax/swing/text/View.html#createFragment(int, int)">createFragment</A>, 
<A HREF="../../../javax/swing/text/View.html#getAlignment(int)">getAlignment</A>, 
<A HREF="../../../javax/swing/text/View.html#getAttributes()">getAttributes</A>, 
<A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)">getBreakWeight</A>, 
<A HREF="../../../javax/swing/text/View.html#getChildAllocation(int, java.awt.Shape)">getChildAllocation</A>, 
<A HREF="../../../javax/swing/text/View.html#getContainer()">getContainer</A>, 
<A HREF="../../../javax/swing/text/View.html#getDocument()">getDocument</A>, 
<A HREF="../../../javax/swing/text/View.html#getElement()">getElement</A>, 
<A HREF="../../../javax/swing/text/View.html#getEndOffset()">getEndOffset</A>, 
<A HREF="../../../javax/swing/text/View.html#getMaximumSpan(int)">getMaximumSpan</A>, 
<A HREF="../../../javax/swing/text/View.html#getMinimumSpan(int)">getMinimumSpan</A>, 
<A HREF="../../../javax/swing/text/View.html#getNextVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextVisualPositionFrom</A>, 
<A HREF="../../../javax/swing/text/View.html#getParent()">getParent</A>, 
<A HREF="../../../javax/swing/text/View.html#getStartOffset()">getStartOffset</A>, 
<A HREF="../../../javax/swing/text/View.html#getView(int)">getView</A>, 
<A HREF="../../../javax/swing/text/View.html#getViewCount()">getViewCount</A>, 
<A HREF="../../../javax/swing/text/View.html#getViewFactory()">getViewFactory</A>, 
<A HREF="../../../javax/swing/text/View.html#isVisible()">isVisible</A>, 
<A HREF="../../../javax/swing/text/View.html#modelToView(int, javax.swing.text.Position.Bias, int, javax.swing.text.Position.Bias, java.awt.Shape)">modelToView</A>, 
<A HREF="../../../javax/swing/text/View.html#modelToView(int, java.awt.Shape)">modelToView</A>, 
<A HREF="../../../javax/swing/text/View.html#setParent(javax.swing.text.View)">setParent</A>, 
<A HREF="../../../javax/swing/text/View.html#setSize(float, float)">setSize</A>, 
<A HREF="../../../javax/swing/text/View.html#viewToModel(float, float, java.awt.Shape)">viewToModel</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->

<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="PasswordView(javax.swing.text.Element)"><!-- --></A><H3>
PasswordView</H3>
<PRE>
public <B>PasswordView</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE>
<DL>
<DD>Constructs a new view wrapped on an element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element</DL>
</DD>
</DL>

<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="drawUnselectedText(java.awt.Graphics, int, int, int, int)"><!-- --></A><H3>
drawUnselectedText</H3>
<PRE>
protected int <B>drawUnselectedText</B>(java.awt.Graphics&nbsp;g,
                                 int&nbsp;x,
                                 int&nbsp;y,
                                 int&nbsp;p0,
                                 int&nbsp;p1)
                          throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>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().<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context<DD><CODE>x</CODE> - the starting X coordinate >= 0<DD><CODE>y</CODE> - the starting Y coordinate >= 0<DD><CODE>p0</CODE> - the starting offset in the model >= 0<DD><CODE>p1</CODE> - the ending offset in the model >= p0<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if p0 or p1 are out of range<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/PlainView.html#drawUnselectedText(java.awt.Graphics, int, int, int, int)">drawUnselectedText</A> in class <A HREF="../../../javax/swing/text/PlainView.html">PlainView</A></DL>
</DD>
</DL>
<HR>

<A NAME="drawSelectedText(java.awt.Graphics, int, int, int, int)"><!-- --></A><H3>
drawSelectedText</H3>
<PRE>
protected int <B>drawSelectedText</B>(java.awt.Graphics&nbsp;g,
                               int&nbsp;x,
                               int&nbsp;y,
                               int&nbsp;p0,
                               int&nbsp;p1)
                        throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>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.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context<DD><CODE>x</CODE> - the starting X coordinate >= 0<DD><CODE>y</CODE> - the starting Y coordinate >= 0<DD><CODE>p0</CODE> - the starting offset in the model >= 0<DD><CODE>p1</CODE> - the ending offset in the model >= p0<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if p0 or p1 are out of range<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/PlainView.html#drawSelectedText(java.awt.Graphics, int, int, int, int)">drawSelectedText</A> in class <A HREF="../../../javax/swing/text/PlainView.html">PlainView</A></DL>
</DD>
</DL>
<HR>

<A NAME="drawEchoCharacter(java.awt.Graphics, int, int, char)"><!-- --></A><H3>
drawEchoCharacter</H3>
<PRE>
protected int <B>drawEchoCharacter</B>(java.awt.Graphics&nbsp;g,
                                int&nbsp;x,
                                int&nbsp;y,
                                char&nbsp;c)</PRE>
<DL>
<DD>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.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context<DD><CODE>x</CODE> - the starting X coordinate >= 0<DD><CODE>y</CODE> - the starting Y coordinate >= 0<DD><CODE>c</CODE> - the echo character<DT><B>Returns:</B><DD>the updated X position >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)"><!-- --></A><H3>
modelToView</H3>
<PRE>
public java.awt.Shape <B>modelToView</B>(int&nbsp;pos,
                                  java.awt.Shape&nbsp;a,
                                  <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b)
                           throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Provides a mapping from the document model coordinate space
 to the coordinate space of the view mapped to it.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position to convert >= 0<DD><CODE>a</CODE> - the allocated region to render into<DT><B>Returns:</B><DD>the bounding box of the given position<DT><B>Throws:</B><DD><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A> - if the given position does not
   represent a valid location in the associated document<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/FieldView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A> in class <A HREF="../../../javax/swing/text/FieldView.html">FieldView</A><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)"><CODE>View.modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])"><!-- --></A><H3>
viewToModel</H3>
<PRE>
public int <B>viewToModel</B>(float&nbsp;fx,
                       float&nbsp;fy,
                       java.awt.Shape&nbsp;a,
                       <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;bias)</PRE>
<DL>
<DD>Provides a mapping from the view coordinate space to the logical
 coordinate space of the model.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>fx</CODE> - the X coordinate >= 0.0f<DD><CODE>fy</CODE> - the Y coordinate >= 0.0f<DD><CODE>a</CODE> - the allocated region to render into<DT><B>Returns:</B><DD>the location within the model that best represents the
  given point in the view<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/FieldView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A> in class <A HREF="../../../javax/swing/text/FieldView.html">FieldView</A><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])"><CODE>View.viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])</CODE></A></DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="class-use/PasswordView.html"><FONT ID="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
Swing 1.1</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../javax/swing/text/ParagraphView.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/PlainDocument.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="PasswordView.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_javax.swing.text.PlainView">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>Java is a trademark or registered trademark of Sun Microsystems,  Inc. in the US and other countries.<br>Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font>
</BODY>
</HTML>
