<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:24 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  ParagraphView
</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/ParagraphView.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/LayeredHighlighter.LayerPainter.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/PasswordView.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="ParagraphView.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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  ParagraphView</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../javax/swing/text/View.html">javax.swing.text.View</A>
        |
        +--<A HREF="../../../javax/swing/text/CompositeView.html">javax.swing.text.CompositeView</A>
              |
              +--<A HREF="../../../javax/swing/text/BoxView.html">javax.swing.text.BoxView</A>
                    |
                    +--<B>javax.swing.text.ParagraphView</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/swing/text/html/ParagraphView.html">ParagraphView</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>ParagraphView</B><DT>extends <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A><DT>implements <A HREF="../../../javax/swing/text/TabExpander.html">TabExpander</A></DL>

<P>
View of a simple line-wrapping paragraph that supports
 multiple fonts, colors, components, icons, etc.  It is
 basically a vertical box with a margin around it.  The 
 contents of the box are a bunch of rows which are special 
 horizontal boxes.  This view creates a collection of
 views that represent the child elements of the paragraph 
 element.  Each of these views are placed into a row 
 directly if they will fit, otherwise the <code>breakView</code>
 method is called to try and carve the view into pieces
 that fit.
<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="field_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field 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/ParagraphView.html#firstLineIndent">firstLineIndent</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indentation for the first line, from the left inset.</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/ParagraphView.html#ParagraphView(javax.swing.text.Element)">ParagraphView</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 ParagraphView for the given 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;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#adjustRow(javax.swing.text.ParagraphView.Row, int, int)">adjustRow</A></B>(javax.swing.text.ParagraphView.Row&nbsp;r,
          int&nbsp;desiredSpan,
          int&nbsp;x)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Adjusts the given row if possible to fit within the
 layout span.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#breakView(int, float, java.awt.Shape)">breakView</A></B>(int&nbsp;axis,
          float&nbsp;len,
          java.awt.Shape&nbsp;a)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Breaks this view on the given axis at the given length.
 ParagraphView instances are breakable along the Y_AXIS only, and only if
 <code>len</code> is after the first line.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#calculateMinorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMinorAxisRequirements</A></B>(int&nbsp;axis,
                               <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A>&nbsp;r)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,
              java.awt.Shape&nbsp;a,
              <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification from the document that attributes were changed
 in a location that this view is responsible for.</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/ParagraphView.html#findOffsetToCharactersInString(char[], int)">findOffsetToCharactersInString</A></B>(char[]&nbsp;string,
                               int&nbsp;start)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds the next character in the document with a character in
 <code>string</code>, starting at offset <code>start</code>.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)">flipEastAndWestAtEnds</A></B>(int&nbsp;position,
                      <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;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#getAlignment(int)">getAlignment</A></B>(int&nbsp;axis)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the desired alignment for this view along an
 axis.</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/ParagraphView.html#getBreakWeight(int, float)">getBreakWeight</A></B>(int&nbsp;axis,
               float&nbsp;len)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the break weight for a given location.</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/ParagraphView.html#getClosestPositionTo(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[], int, int)">getClosestPositionTo</A></B>(int&nbsp;pos,
                     <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,
                     java.awt.Shape&nbsp;a,
                     int&nbsp;direction,
                     <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet,
                     int&nbsp;rowIndex,
                     int&nbsp;x)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the closest model position to <code>x</code>.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#getLayoutView(int)">getLayoutView</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The child views of the paragraph are rows which
 have been used to arrange pieces of the Views that
 represent the child elements.</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/ParagraphView.html#getLayoutViewCount()">getLayoutViewCount</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The child views of the paragraph are rows which
 have been used to arrange pieces of the Views that
 represent the child elements.</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/ParagraphView.html#getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextNorthSouthVisualPositionFrom</A></B>(int&nbsp;pos,
                                    <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,
                                    java.awt.Shape&nbsp;a,
                                    int&nbsp;direction,
                                    <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Overriden from CompositeView.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#getPartialSize(int, int)">getPartialSize</A></B>(int&nbsp;startOffset,
               int&nbsp;endOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the size used by the views between <code>startOffset</code>
 and <code>endOffset</code>.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#getTabBase()">getTabBase</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../javax/swing/text/TabSet.html">TabSet</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#getTabSet()">getTabSet</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the Tabset to be used in calculating tabs.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;<A HREF="../../../javax/swing/text/View.html">View</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#getViewAtPosition(int, java.awt.Rectangle)">getViewAtPosition</A></B>(int&nbsp;pos,
                  java.awt.Rectangle&nbsp;a)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the child view that represents the given position in
 the model.</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/ParagraphView.html#getViewIndexAtPosition(int)">getViewIndexAtPosition</A></B>(int&nbsp;pos)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the child view index representing the given position in
 the model.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,
             java.awt.Shape&nbsp;a,
             <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was inserted into the document
 in a location that this view is responsible for.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#layout(int, int)">layout</A></B>(int&nbsp;width,
       int&nbsp;height)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Lays out the children.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A></B>(<A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Loads all of the children to initialize the view.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#nextTabStop(float, int)">nextTabStop</A></B>(float&nbsp;x,
            int&nbsp;tabOffset)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the next tab stop position given a reference position.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#paint(java.awt.Graphics, java.awt.Shape)">paint</A></B>(java.awt.Graphics&nbsp;g,
      java.awt.Shape&nbsp;a)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renders using the given rendering surface and area on that
 surface.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,
             java.awt.Shape&nbsp;a,
             <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gives notification that something was removed from the document
 in a location that this view is responsible for.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#setFirstLineIndent(float)">setFirstLineIndent</A></B>(float&nbsp;fi)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the indent on the first line</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#setJustification(int)">setJustification</A></B>(int&nbsp;j)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the type of justification.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#setLineSpacing(float)">setLineSpacing</A></B>(float&nbsp;ls)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the line spacing.</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/ParagraphView.html#setPropertiesFromAttributes()">setPropertiesFromAttributes</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.BoxView"><!-- --></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/BoxView.html">BoxView</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/BoxView.html#baselineLayout(int, int, int[], int[])">baselineLayout</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#baselineRequirements(int, javax.swing.SizeRequirements)">baselineRequirements</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#calculateMajorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMajorAxisRequirements</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#childAllocation(int, java.awt.Rectangle)">childAllocation</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getHeight()">getHeight</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getMaximumSpan(int)">getMaximumSpan</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getMinimumSpan(int)">getMinimumSpan</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getOffset(int, int)">getOffset</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getPreferredSpan(int)">getPreferredSpan</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getResizeWeight(int)">getResizeWeight</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getSpan(int, int)">getSpan</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#getWidth()">getWidth</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#isAfter(int, int, java.awt.Rectangle)">isAfter</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#isAllocationValid()">isAllocationValid</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#isBefore(int, int, java.awt.Rectangle)">isBefore</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#layoutMajorAxis(int, int, int[], int[])">layoutMajorAxis</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#layoutMinorAxis(int, int, int[], int[])">layoutMinorAxis</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#paintChild(java.awt.Graphics, java.awt.Rectangle, int)">paintChild</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#replace(int, int, javax.swing.text.View[])">replace</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#setSize(float, float)">setSize</A>, 
<A HREF="../../../javax/swing/text/BoxView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_javax.swing.text.CompositeView"><!-- --></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/CompositeView.html">CompositeView</A></B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#append(javax.swing.text.View)">append</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getBottomInset()">getBottomInset</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getChildAllocation(int, java.awt.Shape)">getChildAllocation</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getInsideAllocation(java.awt.Shape)">getInsideAllocation</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getLeftInset()">getLeftInset</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getNextEastWestVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextEastWestVisualPositionFrom</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getNextVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextVisualPositionFrom</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getRightInset()">getRightInset</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getTopInset()">getTopInset</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getView(int)">getView</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getViewCount()">getViewCount</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#insert(int, javax.swing.text.View)">insert</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#modelToView(int, javax.swing.text.Position.Bias, int, javax.swing.text.Position.Bias, java.awt.Shape)">modelToView</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#removeAll()">removeAll</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#setInsets(short, short, short, short)">setInsets</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#setParagraphInsets(javax.swing.text.AttributeSet)">setParagraphInsets</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#setParent(javax.swing.text.View)">setParent</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#getAttributes()">getAttributes</A>, 
<A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)">getBreakWeight</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#getParent()">getParent</A>, 
<A HREF="../../../javax/swing/text/View.html#getStartOffset()">getStartOffset</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, java.awt.Shape)">modelToView</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 =========== -->

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

<A NAME="firstLineIndent"><!-- --></A><H3>
firstLineIndent</H3>
<PRE>
protected int <B>firstLineIndent</B></PRE>
<DL>
<DD>Indentation for the first line, from the left inset.</DL>

<!-- ========= 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="ParagraphView(javax.swing.text.Element)"><!-- --></A><H3>
ParagraphView</H3>
<PRE>
public <B>ParagraphView</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE>
<DL>
<DD>Constructs a ParagraphView for the given element.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element that this view is responsible for</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="setJustification(int)"><!-- --></A><H3>
setJustification</H3>
<PRE>
protected void <B>setJustification</B>(int&nbsp;j)</PRE>
<DL>
<DD>Set the type of justification.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="setLineSpacing(float)"><!-- --></A><H3>
setLineSpacing</H3>
<PRE>
protected void <B>setLineSpacing</B>(float&nbsp;ls)</PRE>
<DL>
<DD>Set the line spacing.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ls</CODE> - the value in points</DL>
</DD>
</DL>
<HR>

<A NAME="setFirstLineIndent(float)"><!-- --></A><H3>
setFirstLineIndent</H3>
<PRE>
protected void <B>setFirstLineIndent</B>(float&nbsp;fi)</PRE>
<DL>
<DD>Set the indent on the first line<DD><DL>
<DT><B>Parameters:</B><DD><CODE>ls</CODE> - the value in points</DL>
</DD>
</DL>
<HR>

<A NAME="setPropertiesFromAttributes()"><!-- --></A><H3>
setPropertiesFromAttributes</H3>
<PRE>
protected void <B>setPropertiesFromAttributes</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getLayoutViewCount()"><!-- --></A><H3>
getLayoutViewCount</H3>
<PRE>
protected int <B>getLayoutViewCount</B>()</PRE>
<DL>
<DD>The child views of the paragraph are rows which
 have been used to arrange pieces of the Views that
 represent the child elements.  This is the number 
 of views that have been tiled in two dimensions,
 and should be equivalent to the number of child elements
 to the element this view is responsible for.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getLayoutView(int)"><!-- --></A><H3>
getLayoutView</H3>
<PRE>
protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>getLayoutView</B>(int&nbsp;index)</PRE>
<DL>
<DD>The child views of the paragraph are rows which
 have been used to arrange pieces of the Views that
 represent the child elements.  This methods returns
 the view responsible for the child element index
 (prior to breaking).  These are the Views that were
 produced from a factory (to represent the child
 elements) and used for layout.<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="loadChildren(javax.swing.text.ViewFactory)"><!-- --></A><H3>
loadChildren</H3>
<PRE>
protected void <B>loadChildren</B>(<A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</PRE>
<DL>
<DD>Loads all of the children to initialize the view.
 This is called by the <code>setParent</code> method.
 This is reimplemented to not load any children directly
 (as they are created in the process of formatting).
 This does create views to represent the child elements,
 but they are placed into a pool that is used in the 
 process of formatting.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>f</CODE> - the view factory<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="getViewAtPosition(int, java.awt.Rectangle)"><!-- --></A><H3>
getViewAtPosition</H3>
<PRE>
protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>getViewAtPosition</B>(int&nbsp;pos,
                                 java.awt.Rectangle&nbsp;a)</PRE>
<DL>
<DD>Fetches the child view that represents the given position in
 the model.  This is implemented to walk through the children
 looking for a range that contains the given position.  In this
 view the children do not have a one to one mapping with the
 child elements (i.e. the children are actually rows that
 represent a portion of the element this view represents).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the search position >= 0<DD><CODE>a</CODE> - the allocation to the box on entry, and the
   allocation of the view containing the position on exit<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#getViewAtPosition(int, java.awt.Rectangle)">getViewAtPosition</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="getViewIndexAtPosition(int)"><!-- --></A><H3>
getViewIndexAtPosition</H3>
<PRE>
protected int <B>getViewIndexAtPosition</B>(int&nbsp;pos)</PRE>
<DL>
<DD>Fetches the child view index representing the given position in
 the model.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position >= 0<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#getViewIndexAtPosition(int)">getViewIndexAtPosition</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="layout(int, int)"><!-- --></A><H3>
layout</H3>
<PRE>
protected void <B>layout</B>(int&nbsp;width,
                      int&nbsp;height)</PRE>
<DL>
<DD>Lays out the children.  If the layout span has changed,
 the rows are rebuilt.  The superclass functionality
 is called after checking and possibly rebuilding the
 rows.  If the height has changed, the 
 <code>preferenceChanged</code> method is called
 on the parent since the vertical preference is 
 rigid.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>width</CODE> - the width to lay out against >= 0.  This is
   the width inside of the inset area.<DD><CODE>height</CODE> - the height to lay out against >= 0 (not used
   by paragraph, but used by the superclass).  This
   is the height inside of the inset area.<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#layout(int, int)">layout</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></DL>
</DD>
</DL>
<HR>

<A NAME="adjustRow(javax.swing.text.ParagraphView.Row, int, int)"><!-- --></A><H3>
adjustRow</H3>
<PRE>
protected void <B>adjustRow</B>(javax.swing.text.ParagraphView.Row&nbsp;r,
                         int&nbsp;desiredSpan,
                         int&nbsp;x)</PRE>
<DL>
<DD>Adjusts the given row if possible to fit within the
 layout span.  By default this will try to find the 
 highest break weight possible nearest the end of
 the row.  If a forced break is encountered, the
 break will be positioned there.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>r</CODE> - the row to adjust to the current layout
  span.<DD><CODE>desiredSpan</CODE> - the current layout span >= 0<DD><CODE>x</CODE> - the location r starts at.</DL>
</DD>
</DL>
<HR>

<A NAME="nextTabStop(float, int)"><!-- --></A><H3>
nextTabStop</H3>
<PRE>
public float <B>nextTabStop</B>(float&nbsp;x,
                         int&nbsp;tabOffset)</PRE>
<DL>
<DD>Returns the next tab stop position given a reference position.
 This view implements the tab coordinate system, and calls
 <code>getTabbedSpan</code> on the logical children in the process 
 of layout to determine the desired span of the children.  The
 logical children can delegate their tab expansion upward to
 the paragraph which knows how to expand tabs. 
 <code>LabelView</code> is an example of a view that delegates
 its tab expansion needs upward to the paragraph.
 <p>
 This is implemented to try and locate a <code>TabSet</code>
 in the paragraph element's attribute set.  If one can be
 found, its settings will be used, otherwise a default expansion
 will be provided.  The base location for for tab expansion
 is the left inset from the paragraphs most recent allocation
 (which is what the layout of the children is based upon).<DD><DL>
<DT><B>Specified by: </B><DD><A HREF="../../../javax/swing/text/TabExpander.html#nextTabStop(float, int)">nextTabStop</A> in interface <A HREF="../../../javax/swing/text/TabExpander.html">TabExpander</A><DT><B>Parameters:</B><DD><CODE>x</CODE> - the X reference position<DD><CODE>tabOffset</CODE> - the position within the text stream
   that the tab occurred at >= 0.<DT><B>Returns:</B><DD>the trailing end of the tab expansion >= 0<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/TabSet.html"><CODE>TabSet</CODE></A>, 
<A HREF="../../../javax/swing/text/TabStop.html"><CODE>TabStop</CODE></A>, 
<A HREF="../../../javax/swing/text/LabelView.html"><CODE>LabelView</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getTabSet()"><!-- --></A><H3>
getTabSet</H3>
<PRE>
protected <A HREF="../../../javax/swing/text/TabSet.html">TabSet</A> <B>getTabSet</B>()</PRE>
<DL>
<DD>Gets the Tabset to be used in calculating tabs.<DD><DL>
<DT><B>Returns:</B><DD>the TabSet</DL>
</DD>
</DL>
<HR>

<A NAME="getPartialSize(int, int)"><!-- --></A><H3>
getPartialSize</H3>
<PRE>
protected float <B>getPartialSize</B>(int&nbsp;startOffset,
                               int&nbsp;endOffset)</PRE>
<DL>
<DD>Returns the size used by the views between <code>startOffset</code>
 and <code>endOffset</code>. This uses getPartialView to calculate the
 size if the child view implements the TabableView interface. If a 
 size is needed and a View does not implement the TabableView
 interface, the preferredSpan will be used.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>startOffset</CODE> - the starting document offset >= 0<DD><CODE>endOffset</CODE> - the ending document offset >= startOffset<DT><B>Returns:</B><DD>the size >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="findOffsetToCharactersInString(char[], int)"><!-- --></A><H3>
findOffsetToCharactersInString</H3>
<PRE>
protected int <B>findOffsetToCharactersInString</B>(char[]&nbsp;string,
                                             int&nbsp;start)</PRE>
<DL>
<DD>Finds the next character in the document with a character in
 <code>string</code>, starting at offset <code>start</code>. If
 there are no characters found, -1 will be returned.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>string</CODE> - the string of characters<DD><CODE>start</CODE> - where to start in the model >= 0<DT><B>Returns:</B><DD>the document offset or -1</DL>
</DD>
</DL>
<HR>

<A NAME="getTabBase()"><!-- --></A><H3>
getTabBase</H3>
<PRE>
protected float <B>getTabBase</B>()</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>where tabs are calculated from.</DL>
</DD>
</DL>
<HR>

<A NAME="flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)"><!-- --></A><H3>
flipEastAndWestAtEnds</H3>
<PRE>
protected boolean <B>flipEastAndWestAtEnds</B>(int&nbsp;position,
                                        <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;bias)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)">flipEastAndWestAtEnds</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></DL>
</DD>
</DL>
<HR>

<A NAME="paint(java.awt.Graphics, java.awt.Shape)"><!-- --></A><H3>
paint</H3>
<PRE>
public void <B>paint</B>(java.awt.Graphics&nbsp;g,
                  java.awt.Shape&nbsp;a)</PRE>
<DL>
<DD>Renders using the given rendering surface and area on that
 surface.  This is implemented to delgate to the superclass
 after stashing the base coordinate for tab calculations.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the rendering surface to use<DD><CODE>a</CODE> - the allocated region to render into<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#paint(java.awt.Graphics, java.awt.Shape)">paint</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#paint(java.awt.Graphics, java.awt.Shape)"><CODE>View.paint(java.awt.Graphics, java.awt.Shape)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="calculateMinorAxisRequirements(int, javax.swing.SizeRequirements)"><!-- --></A><H3>
calculateMinorAxisRequirements</H3>
<PRE>
protected <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A> <B>calculateMinorAxisRequirements</B>(int&nbsp;axis,
                                                          <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A>&nbsp;r)</PRE>
<DL>
<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#calculateMinorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMinorAxisRequirements</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></DL>
</DD>
</DL>
<HR>

<A NAME="getAlignment(int)"><!-- --></A><H3>
getAlignment</H3>
<PRE>
public float <B>getAlignment</B>(int&nbsp;axis)</PRE>
<DL>
<DD>Determines the desired alignment for this view along an
 axis.  This is implemented to give the alignment to the
 center of the first row along the y axis, and the default
 along the x axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#getAlignment(int)">getAlignment</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></DL>
</DD>
</DL>
<HR>

<A NAME="breakView(int, float, java.awt.Shape)"><!-- --></A><H3>
breakView</H3>
<PRE>
public <A HREF="../../../javax/swing/text/View.html">View</A> <B>breakView</B>(int&nbsp;axis,
                      float&nbsp;len,
                      java.awt.Shape&nbsp;a)</PRE>
<DL>
<DD>Breaks this view on the given axis at the given length.<p>
 ParagraphView instances are breakable along the Y_AXIS only, and only if
 <code>len</code> is after the first line.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DD><CODE>len</CODE> - specifies where a potential break is desired
  along the given axis >= 0<DD><CODE>a</CODE> - the current allocation of the view<DT><B>Returns:</B><DD>the fragment of the view that represents the
  given span, if the view can be broken.  If the view
  doesn't support breaking behavior, the view itself is
  returned.<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#breakView(int, int, float, float)"><CODE>View.breakView(int, int, float, float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getBreakWeight(int, float)"><!-- --></A><H3>
getBreakWeight</H3>
<PRE>
public int <B>getBreakWeight</B>(int&nbsp;axis,
                          float&nbsp;len)</PRE>
<DL>
<DD>Gets the break weight for a given location.
 ParagraphView instances are breakable along the Y_AXIS only, and 
 only if <code>len</code> is after the first row.  If the length
 is less than one row, a value of BadBreakWeight is returned.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DD><CODE>len</CODE> - specifies where a potential break is desired >= 0<DT><B>Returns:</B><DD>a value indicating the attractiveness of breaking here<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)"><CODE>View.getBreakWeight(int, float, float)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><!-- --></A><H3>
insertUpdate</H3>
<PRE>
public void <B>insertUpdate</B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,
                         java.awt.Shape&nbsp;a,
                         <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</PRE>
<DL>
<DD>Gives notification that something was inserted into the document
 in a location that this view is responsible for.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>changes</CODE> - the change information from the associated document<DD><CODE>a</CODE> - the current allocation of the view<DD><CODE>f</CODE> - the factory to use to rebuild if the view has children<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><!-- --></A><H3>
removeUpdate</H3>
<PRE>
public void <B>removeUpdate</B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,
                         java.awt.Shape&nbsp;a,
                         <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</PRE>
<DL>
<DD>Gives notification that something was removed from the document
 in a location that this view is responsible for.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>changes</CODE> - the change information from the associated document<DD><CODE>a</CODE> - the current allocation of the view<DD><CODE>f</CODE> - the factory to use to rebuild if the view has children<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><!-- --></A><H3>
changedUpdate</H3>
<PRE>
public void <B>changedUpdate</B>(<A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;changes,
                          java.awt.Shape&nbsp;a,
                          <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</PRE>
<DL>
<DD>Gives notification from the document that attributes were changed
 in a location that this view is responsible for.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>changes</CODE> - the change information from the associated document<DD><CODE>a</CODE> - the current allocation of the view<DD><CODE>f</CODE> - the factory to use to rebuild if the view has children<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/BoxView.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A> in class <A HREF="../../../javax/swing/text/BoxView.html">BoxView</A><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)"><CODE>View.changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)</CODE></A></DL>
</DD>
</DL>
<HR>

<A NAME="getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])"><!-- --></A><H3>
getNextNorthSouthVisualPositionFrom</H3>
<PRE>
protected int <B>getNextNorthSouthVisualPositionFrom</B>(int&nbsp;pos,
                                                  <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,
                                                  java.awt.Shape&nbsp;a,
                                                  int&nbsp;direction,
                                                  <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet)
                                           throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Overriden from CompositeView.<DD><DL>
<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextNorthSouthVisualPositionFrom</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="getClosestPositionTo(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[], int, int)"><!-- --></A><H3>
getClosestPositionTo</H3>
<PRE>
protected int <B>getClosestPositionTo</B>(int&nbsp;pos,
                                   <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,
                                   java.awt.Shape&nbsp;a,
                                   int&nbsp;direction,
                                   <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet,
                                   int&nbsp;rowIndex,
                                   int&nbsp;x)
                            throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE>
<DL>
<DD>Returns the closest model position to <code>x</code>.
 <code>rowIndex</code> gives the index of the view that corresponds
 that should be looked in.<DD><DL>
</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/ParagraphView.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/LayeredHighlighter.LayerPainter.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/PasswordView.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="ParagraphView.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="#field_summary">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;<A HREF="#field_detail">FIELD</A>&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>
