📄 flowview.html
字号:
public int <B>getFlowSpan</B>(int index)</PRE><DL><DD>Fetch the constraining span to flow against for the given child index. This is called by the FlowStrategy while it is updating the flow. A flow can be shaped by providing different values for the row constraints. By default, the entire span inside of the insets along the flow axis is returned.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the row being updated. This should be a value >= 0 and < getViewCount().<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/FlowView.html#getFlowStart(int)"><CODE>getFlowStart(int)</CODE></A></DL></DD></DL><HR><A NAME="getFlowStart(int)"><!-- --></A><H3>getFlowStart</H3><PRE>public int <B>getFlowStart</B>(int index)</PRE><DL><DD>Fetch the location along the flow axis that the flow span will start at. This is called by the FlowStrategy while it is updating the flow. A flow can be shaped by providing different values for the row constraints.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the row being updated. This should be a value >= 0 and < getViewCount().<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/FlowView.html#getFlowSpan(int)"><CODE>getFlowSpan(int)</CODE></A></DL></DD></DL><HR><A NAME="createRow()"><!-- --></A><H3>createRow</H3><PRE>protected abstract <A HREF="../../../javax/swing/text/View.html">View</A> <B>createRow</B>()</PRE><DL><DD>Create a View that should be used to hold a a rows worth of children in a flow. This is called by the FlowStrategy when new children are added or removed (i.e. rows are added or removed) in the process of updating the flow.</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> 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). If the layoutPool variable is null, an instance of LogicalView is created to represent the logical view that is used in the process of formatting.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#loadChildren(javax.swing.text.ViewFactory)">loadChildren</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>f</CODE> - the view factory</DL></DD></DL><HR><A NAME="getViewIndexAtPosition(int)"><!-- --></A><H3>getViewIndexAtPosition</H3><PRE>protected int <B>getViewIndexAtPosition</B>(int pos)</PRE><DL><DD>Fetches the child view index representing the given position in the model.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#getViewIndexAtPosition(int)">getViewIndexAtPosition</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position >= 0</DL></DD></DL><HR><A NAME="layout(int, int)"><!-- --></A><H3>layout</H3><PRE>protected void <B>layout</B>(int width, int height)</PRE><DL><DD>Lays out the children. If the span along the flow axis has changed, layout is marked as invalid which which will cause the superclass behavior to recalculate the layout along the box axis. If the FlowStrategy reports that a layout is needed, the FlowStrategy.layout method will be called to rebuild the flow rows as appropriate. If the height of this view changes (determined by the perferred size along the box axis), a preferenceChanged is messaged. Following all of that, the normal box layout of the superclass is performed.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/BoxView.html#layout(int, int)">layout</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></DL></DD><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 This is the height inside of the inset area.</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 axis, <A HREF="../../../javax/swing/SizeRequirements.html">SizeRequirements</A> r)</PRE><DL><DD>Calculate equirements along the minor axis. This is implemented to forward the request to the logical view by calling getMinimumSpan, getPreferredSpan, and getMaximumSpan on it.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/BoxView.html#calculateMinorAxisRequirements(int, javax.swing.SizeRequirements)">calculateMinorAxisRequirements</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</A></CODE></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> changes, <A HREF="../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> 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>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/View.html#insertUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">insertUpdate</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/View.html">View</A></CODE></DL></DD><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>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> changes, <A HREF="../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> 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>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/View.html#removeUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">removeUpdate</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/View.html">View</A></CODE></DL></DD><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>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> changes, <A HREF="../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../javax/swing/text/ViewFactory.html">ViewFactory</A> 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>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/View.html#changedUpdate(javax.swing.event.DocumentEvent, java.awt.Shape, javax.swing.text.ViewFactory)">changedUpdate</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/View.html">View</A></CODE></DL></DD><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>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><!-- ========= 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" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3"> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FlowView.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/swing/text/FieldView.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/text/FlowView.FlowStrategy.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="FlowView.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <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>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A. All Rights Reserved.</font></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -