<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Tue Jun 29 06:01:02 GMT+01:00 1999 -->
<TITLE>
Swing 1.1 API Specification: Class  BoxView
</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/BoxView.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/AbstractWriter.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/ComponentView.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="BoxView.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.View">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  BoxView</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>
              |
              +--<B>javax.swing.text.BoxView</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../javax/swing/text/html/BlockView.html">BlockView</A>, <A HREF="../../../javax/swing/text/ParagraphView.html">ParagraphView</A>, <A HREF="../../../javax/swing/text/TableView.html">TableView</A>, <A HREF="../../../javax/swing/text/TableView.TableCell.html">TableView.TableCell</A>, <A HREF="../../../javax/swing/text/TableView.TableRow.html">TableView.TableRow</A>, <A HREF="../../../javax/swing/text/WrappedPlainView.html">WrappedPlainView</A></DD>
</DL>
<HR>
<DL>
<DT>public class <B>BoxView</B><DT>extends <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>

<P>
A view of a text model that arranges its children into a
 box.  It might be useful to represent something like a 
 collection of lines, paragraphs, list items, chunks of text,
 etc.  The box is somewhat like that found in TeX where
 there is alignment of the children, flexibility of the
 children is considered, etc.
<P>
<HR>

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


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

<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/BoxView.html#BoxView(javax.swing.text.Element, int)">BoxView</A></B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem,
        int&nbsp;axis)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a BoxView.</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/BoxView.html#baselineLayout(int, int, int[], int[])">baselineLayout</A></B>(int&nbsp;targetSpan,
               int&nbsp;axis,
               int[]&nbsp;offsets,
               int[]&nbsp;spans)</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/SizeRequirements.html">SizeRequirements</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#baselineRequirements(int, javax.swing.SizeRequirements)">baselineRequirements</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>protected &nbsp;<A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#calculateMajorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMajorAxisRequirements</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>protected &nbsp;<A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.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/BoxView.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;e,
              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;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#childAllocation(int, java.awt.Rectangle)">childAllocation</A></B>(int&nbsp;index,
                java.awt.Rectangle&nbsp;alloc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Allocates a region for a child view.</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/BoxView.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/BoxView.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/BoxView.html#getHeight()">getHeight</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The current height of the box.</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/BoxView.html#getMaximumSpan(int)">getMaximumSpan</A></B>(int&nbsp;axis)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the maximum span 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;float</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#getMinimumSpan(int)">getMinimumSpan</A></B>(int&nbsp;axis)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the minimum span for this view along an
 axis.</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/BoxView.html#getOffset(int, int)">getOffset</A></B>(int&nbsp;axis,
          int&nbsp;childIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch the offset of a particular childs current layout</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/BoxView.html#getPreferredSpan(int)">getPreferredSpan</A></B>(int&nbsp;axis)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines the preferred span 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/BoxView.html#getResizeWeight(int)">getResizeWeight</A></B>(int&nbsp;axis)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the resize weight.</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/BoxView.html#getSpan(int, int)">getSpan</A></B>(int&nbsp;axis,
        int&nbsp;childIndex)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetch the span of a particular childs current layout</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/BoxView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A></B>(int&nbsp;x,
               int&nbsp;y,
               java.awt.Rectangle&nbsp;alloc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fetches the child view at the given point.</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/BoxView.html#getWidth()">getWidth</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The current width of the box.</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/BoxView.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;e,
             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;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#isAfter(int, int, java.awt.Rectangle)">isAfter</A></B>(int&nbsp;x,
        int&nbsp;y,
        java.awt.Rectangle&nbsp;innerAlloc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if a point falls after an allocated region.</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/BoxView.html#isAllocationValid()">isAllocationValid</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Are the allocations for the children still
 valid?</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/BoxView.html#isBefore(int, int, java.awt.Rectangle)">isBefore</A></B>(int&nbsp;x,
         int&nbsp;y,
         java.awt.Rectangle&nbsp;innerAlloc)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Determines if a point falls before an allocated region.</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/BoxView.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;Performs layout of 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/BoxView.html#layoutMajorAxis(int, int, int[], int[])">layoutMajorAxis</A></B>(int&nbsp;targetSpan,
                int&nbsp;axis,
                int[]&nbsp;offsets,
                int[]&nbsp;spans)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform layout for the major axis of the box (i.e.</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/BoxView.html#layoutMinorAxis(int, int, int[], int[])">layoutMinorAxis</A></B>(int&nbsp;targetSpan,
                int&nbsp;axis,
                int[]&nbsp;offsets,
                int[]&nbsp;spans)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Perform layout for the minor axis of the box (i.e.</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/BoxView.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;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#paint(java.awt.Graphics, java.awt.Shape)">paint</A></B>(java.awt.Graphics&nbsp;g,
      java.awt.Shape&nbsp;allocation)</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>protected &nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#paintChild(java.awt.Graphics, java.awt.Rectangle, int)">paintChild</A></B>(java.awt.Graphics&nbsp;g,
           java.awt.Rectangle&nbsp;alloc,
           int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints a child.</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/BoxView.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A></B>(<A HREF="../../../javax/swing/text/View.html">View</A>&nbsp;child,
                  boolean&nbsp;width,
                  boolean&nbsp;height)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This is called by a child to indicated its 
 preferred span has changed.</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/BoxView.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;e,
             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>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../javax/swing/text/BoxView.html#replace(int, int, javax.swing.text.View[])">replace</A></B>(int&nbsp;offset,
        int&nbsp;length,
        <A HREF="../../../javax/swing/text/View.html">View</A>[]&nbsp;elems)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invalidates the layout and resizes the cache of requests/allocations.</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/BoxView.html#setSize(float, float)">setSize</A></B>(float&nbsp;width,
        float&nbsp;height)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the size of the view.</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/BoxView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A></B>(float&nbsp;x,
            float&nbsp;y,
            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.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#getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextNorthSouthVisualPositionFrom</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#getViewAtPosition(int, java.awt.Rectangle)">getViewAtPosition</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getViewCount()">getViewCount</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#getViewIndexAtPosition(int)">getViewIndexAtPosition</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#insert(int, javax.swing.text.View)">insert</A>, 
<A HREF="../../../javax/swing/text/CompositeView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</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 =========== -->


<!-- ========= 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="BoxView(javax.swing.text.Element, int)"><!-- --></A><H3>
BoxView</H3>
<PRE>
public <B>BoxView</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem,
               int&nbsp;axis)</PRE>
<DL>
<DD>Constructs a BoxView.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element this view is responsible for<DD><CODE>axis</CODE> - either View.X_AXIS or View.Y_AXIS</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="paintChild(java.awt.Graphics, java.awt.Rectangle, int)"><!-- --></A><H3>
paintChild</H3>
<PRE>
protected void <B>paintChild</B>(java.awt.Graphics&nbsp;g,
                          java.awt.Rectangle&nbsp;alloc,
                          int&nbsp;index)</PRE>
<DL>
<DD>Paints a child.  By default
 that is all it does, but a subclass can use this to paint 
 things relative to the child.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context<DD><CODE>alloc</CODE> - the allocated region to paint into<DD><CODE>index</CODE> - the child index, >= 0 && < getViewCount()</DL>
</DD>
</DL>
<HR>

<A NAME="replace(int, int, javax.swing.text.View[])"><!-- --></A><H3>
replace</H3>
<PRE>
public void <B>replace</B>(int&nbsp;offset,
                    int&nbsp;length,
                    <A HREF="../../../javax/swing/text/View.html">View</A>[]&nbsp;elems)</PRE>
<DL>
<DD>Invalidates the layout and resizes the cache of requests/allocations.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>offset</CODE> - the starting offset into the child views >= 0<DD><CODE>length</CODE> - the number of existing views to replace >= 0<DD><CODE>elems</CODE> - the child views to insert<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#replace(int, int, javax.swing.text.View[])">replace</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="preferenceChanged(javax.swing.text.View, boolean, boolean)"><!-- --></A><H3>
preferenceChanged</H3>
<PRE>
public void <B>preferenceChanged</B>(<A HREF="../../../javax/swing/text/View.html">View</A>&nbsp;child,
                              boolean&nbsp;width,
                              boolean&nbsp;height)</PRE>
<DL>
<DD>This is called by a child to indicated its 
 preferred span has changed.  This is implemented to
 throw away cached layout information so that new
 calculations will be done the next time the children
 need an allocation.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>child</CODE> - the child view<DD><CODE>width</CODE> - true if the width preference should change<DD><CODE>height</CODE> - true if the height preference should change<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#preferenceChanged(javax.swing.text.View, boolean, boolean)">preferenceChanged</A> in class <A HREF="../../../javax/swing/text/View.html">View</A></DL>
</DD>
</DL>
<HR>

<A NAME="getResizeWeight(int)"><!-- --></A><H3>
getResizeWeight</H3>
<PRE>
public int <B>getResizeWeight</B>(int&nbsp;axis)</PRE>
<DL>
<DD>Gets the resize weight.  A value of 0 or less is not resizable.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>Returns:</B><DD>the weight<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid axis<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#getResizeWeight(int)">getResizeWeight</A> in class <A HREF="../../../javax/swing/text/View.html">View</A></DL>
</DD>
</DL>
<HR>

<A NAME="setSize(float, float)"><!-- --></A><H3>
setSize</H3>
<PRE>
public void <B>setSize</B>(float&nbsp;width,
                    float&nbsp;height)</PRE>
<DL>
<DD>Sets the size of the view.  If the size has changed, layout
 is redone.  The size is the full size of the view including
 the inset areas.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>width</CODE> - the width >= 0<DD><CODE>height</CODE> - the height >= 0<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#setSize(float, float)">setSize</A> in class <A HREF="../../../javax/swing/text/View.html">View</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;allocation)</PRE>
<DL>
<DD>Renders using the given rendering surface and area on that
 surface.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - the rendering surface to use<DD><CODE>allocation</CODE> - the allocated region to render into<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#paint(java.awt.Graphics, java.awt.Shape)">paint</A> in class <A HREF="../../../javax/swing/text/View.html">View</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="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.  This makes
 sure the allocation is valid before letting the superclass
 do its thing.<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/CompositeView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</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;x,
                       float&nbsp;y,
                       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>x</CODE> - x coordinate of the view location to convert >= 0<DD><CODE>y</CODE> - y coordinate of the view location to convert >= 0<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 >= 0<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#viewToModel(float, float, java.awt.Shape, javax.swing.text.Position.Bias[])">viewToModel</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</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>
<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 total alignment
 needed to position the children with the alignment points
 lined up along the axis orthoginal to the axis that is
 being tiled.  The axis being tiled will request to be
 centered (i.e. 0.5f).<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid axis<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#getAlignment(int)">getAlignment</A> in class <A HREF="../../../javax/swing/text/View.html">View</A></DL>
</DD>
</DL>
<HR>

<A NAME="getPreferredSpan(int)"><!-- --></A><H3>
getPreferredSpan</H3>
<PRE>
public float <B>getPreferredSpan</B>(int&nbsp;axis)</PRE>
<DL>
<DD>Determines the preferred span for this view along an
 axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid axis type<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#getPreferredSpan(int)">getPreferredSpan</A> in class <A HREF="../../../javax/swing/text/View.html">View</A></DL>
</DD>
</DL>
<HR>

<A NAME="getMinimumSpan(int)"><!-- --></A><H3>
getMinimumSpan</H3>
<PRE>
public float <B>getMinimumSpan</B>(int&nbsp;axis)</PRE>
<DL>
<DD>Determines the minimum span for this view along an
 axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid axis type<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#getMinimumSpan(int)">getMinimumSpan</A> in class <A HREF="../../../javax/swing/text/View.html">View</A></DL>
</DD>
</DL>
<HR>

<A NAME="getMaximumSpan(int)"><!-- --></A><H3>
getMaximumSpan</H3>
<PRE>
public float <B>getMaximumSpan</B>(int&nbsp;axis)</PRE>
<DL>
<DD>Determines the maximum span for this view along an
 axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>Throws:</B><DD>java.lang.IllegalArgumentException - for an invalid axis type<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/View.html#getMaximumSpan(int)">getMaximumSpan</A> in class <A HREF="../../../javax/swing/text/View.html">View</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;e,
                         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>e</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/View.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A> in class <A HREF="../../../javax/swing/text/View.html">View</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;e,
                         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>e</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/View.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A> in class <A HREF="../../../javax/swing/text/View.html">View</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;e,
                          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>e</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/View.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A> in class <A HREF="../../../javax/swing/text/View.html">View</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="isAllocationValid()"><!-- --></A><H3>
isAllocationValid</H3>
<PRE>
protected boolean <B>isAllocationValid</B>()</PRE>
<DL>
<DD>Are the allocations for the children still
 valid?<DD><DL>
<DT><B>Returns:</B><DD>true if allocations still valid</DL>
</DD>
</DL>
<HR>

<A NAME="isBefore(int, int, java.awt.Rectangle)"><!-- --></A><H3>
isBefore</H3>
<PRE>
protected boolean <B>isBefore</B>(int&nbsp;x,
                           int&nbsp;y,
                           java.awt.Rectangle&nbsp;innerAlloc)</PRE>
<DL>
<DD>Determines if a point falls before an allocated region.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the X coordinate >= 0<DD><CODE>y</CODE> - the Y coordinate >= 0<DD><CODE>innerAlloc</CODE> - the allocated region.  This is the area
   inside of the insets.<DT><B>Returns:</B><DD>true if the point lies before the region else false<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#isBefore(int, int, java.awt.Rectangle)">isBefore</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="isAfter(int, int, java.awt.Rectangle)"><!-- --></A><H3>
isAfter</H3>
<PRE>
protected boolean <B>isAfter</B>(int&nbsp;x,
                          int&nbsp;y,
                          java.awt.Rectangle&nbsp;innerAlloc)</PRE>
<DL>
<DD>Determines if a point falls after an allocated region.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the X coordinate >= 0<DD><CODE>y</CODE> - the Y coordinate >= 0<DD><CODE>innerAlloc</CODE> - the allocated region.  This is the area
   inside of the insets.<DT><B>Returns:</B><DD>true if the point lies after the region else false<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#isAfter(int, int, java.awt.Rectangle)">isAfter</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="getViewAtPoint(int, int, java.awt.Rectangle)"><!-- --></A><H3>
getViewAtPoint</H3>
<PRE>
protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>getViewAtPoint</B>(int&nbsp;x,
                              int&nbsp;y,
                              java.awt.Rectangle&nbsp;alloc)</PRE>
<DL>
<DD>Fetches the child view at the given point.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>x</CODE> - the X coordinate >= 0<DD><CODE>y</CODE> - the Y coordinate >= 0<DD><CODE>alloc</CODE> - the parents inner allocation on entry, which should
   be changed to the childs allocation on exit.<DT><B>Returns:</B><DD>the view<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#getViewAtPoint(int, int, java.awt.Rectangle)">getViewAtPoint</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></DL>
</DD>
</DL>
<HR>

<A NAME="childAllocation(int, java.awt.Rectangle)"><!-- --></A><H3>
childAllocation</H3>
<PRE>
protected void <B>childAllocation</B>(int&nbsp;index,
                               java.awt.Rectangle&nbsp;alloc)</PRE>
<DL>
<DD>Allocates a region for a child view.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the child view to
   allocate, >= 0 && < getViewCount()<DD><CODE>alloc</CODE> - the allocated region<DT><B>Overrides:</B><DD><A HREF="../../../javax/swing/text/CompositeView.html#childAllocation(int, java.awt.Rectangle)">childAllocation</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>Performs layout of the children.  The size is the
 area inside of the insets.  This method calls
 the methods 
 <a href="#layoutMajorAxis">layoutMajorAxis</a> and
 <a href="#layoutMinorAxis">layoutMinorAxis</a> as
 needed.  To change how layout is done those methods
 should be reimplemented.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>width</CODE> - the width >= 0<DD><CODE>height</CODE> - the height >= 0</DL>
</DD>
</DL>
<HR>

<A NAME="getWidth()"><!-- --></A><H3>
getWidth</H3>
<PRE>
public final int <B>getWidth</B>()</PRE>
<DL>
<DD>The current width of the box.  This is the width that
 it was last allocated.</DL>
<HR>

<A NAME="getHeight()"><!-- --></A><H3>
getHeight</H3>
<PRE>
public final int <B>getHeight</B>()</PRE>
<DL>
<DD>The current height of the box.  This is the height that
 it was last allocated.</DL>
<HR>

<A NAME="layoutMajorAxis(int, int, int[], int[])"><!-- --></A><H3>
layoutMajorAxis</H3>
<PRE>
protected void <B>layoutMajorAxis</B>(int&nbsp;targetSpan,
                               int&nbsp;axis,
                               int[]&nbsp;offsets,
                               int[]&nbsp;spans)</PRE>
<DL>
<DD>Perform layout for the major axis of the box (i.e. the
 axis that it represents).  The results of the layout should
 be placed in the given arrays which represent the allocations
 to the children along the major axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>targetSpan</CODE> - the total span given to the view, which
  whould be used to layout the children.<DD><CODE>axis</CODE> - the axis being layed out.<DD><CODE>offsets</CODE> - the offsets from the origin of the view for
  each of the child views.  This is a return value and is
  filled in by the implementation of this method.<DD><CODE>spans</CODE> - the span of each child view.  This is a return
  value and is filled in by the implementation of this method.</DL>
</DD>
</DL>
<HR>

<A NAME="layoutMinorAxis(int, int, int[], int[])"><!-- --></A><H3>
layoutMinorAxis</H3>
<PRE>
protected void <B>layoutMinorAxis</B>(int&nbsp;targetSpan,
                               int&nbsp;axis,
                               int[]&nbsp;offsets,
                               int[]&nbsp;spans)</PRE>
<DL>
<DD>Perform layout for the minor axis of the box (i.e. the
 axis orthoginal to the axis that it represents).  The results 
 of the layout should be placed in the given arrays which represent 
 the allocations to the children along the minor axis.<DD><DL>
<DT><B>Parameters:</B><DD><CODE>targetSpan</CODE> - the total span given to the view, which
  whould be used to layout the children.<DD><CODE>axis</CODE> - the axis being layed out.<DD><CODE>offsets</CODE> - the offsets from the origin of the view for
  each of the child views.  This is a return value and is
  filled in by the implementation of this method.<DD><CODE>spans</CODE> - the span of each child view.  This is a return
  value and is filled in by the implementation of this method.</DL>
</DD>
</DL>
<HR>

<A NAME="calculateMajorAxisRequirements(int, javax.swing.SizeRequirements)"><!-- --></A><H3>
calculateMajorAxisRequirements</H3>
<PRE>
protected <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A> <B>calculateMajorAxisRequirements</B>(int&nbsp;axis,
                                                          <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A>&nbsp;r)</PRE>
<DL>
</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>
</DL>
<HR>

<A NAME="baselineLayout(int, int, int[], int[])"><!-- --></A><H3>
baselineLayout</H3>
<PRE>
protected void <B>baselineLayout</B>(int&nbsp;targetSpan,
                              int&nbsp;axis,
                              int[]&nbsp;offsets,
                              int[]&nbsp;spans)</PRE>
<DL>
</DL>
<HR>

<A NAME="baselineRequirements(int, javax.swing.SizeRequirements)"><!-- --></A><H3>
baselineRequirements</H3>
<PRE>
protected <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A> <B>baselineRequirements</B>(int&nbsp;axis,
                                                <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A>&nbsp;r)</PRE>
<DL>
</DL>
<HR>

<A NAME="getOffset(int, int)"><!-- --></A><H3>
getOffset</H3>
<PRE>
protected final int <B>getOffset</B>(int&nbsp;axis,
                              int&nbsp;childIndex)</PRE>
<DL>
<DD>Fetch the offset of a particular childs current layout</DL>
<HR>

<A NAME="getSpan(int, int)"><!-- --></A><H3>
getSpan</H3>
<PRE>
protected final int <B>getSpan</B>(int&nbsp;axis,
                            int&nbsp;childIndex)</PRE>
<DL>
<DD>Fetch the span of a particular childs current layout</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/CompositeView.html#flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)">flipEastAndWestAtEnds</A> in class <A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</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/BoxView.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/AbstractWriter.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../javax/swing/text/ComponentView.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="BoxView.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.View">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>
