⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 flowview.flowstrategy.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
</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" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="FlowView.FlowStrategy()"><!-- --></A><H3>FlowView.FlowStrategy</H3><PRE>public <B>FlowView.FlowStrategy</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="insertUpdate(javax.swing.text.FlowView, javax.swing.event.DocumentEvent, java.awt.Rectangle)"><!-- --></A><H3>insertUpdate</H3><PRE>public void <B>insertUpdate</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,                         <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,                         <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</PRE><DL><DD>Gives notification that something was inserted into the document in a location that the given flow view is responsible for.  The strategy should update the appropriate changed region (which depends upon the strategy used for repair).<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the change information from the associated document<DD><CODE>alloc</CODE> - the current allocation of the view inside of the insets.   This value will be null if the view has not yet been displayed.<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.text.FlowView, javax.swing.event.DocumentEvent, java.awt.Rectangle)"><!-- --></A><H3>removeUpdate</H3><PRE>public void <B>removeUpdate</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,                         <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,                         <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</PRE><DL><DD>Gives notification that something was removed from the document in a location that the given flow view is responsible for.<DD><DL><DT><B>Parameters:</B><DD><CODE>e</CODE> - the change information from the associated document<DD><CODE>alloc</CODE> - the current allocation of the view inside of the insets.<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.text.FlowView, javax.swing.event.DocumentEvent, java.awt.Rectangle)"><!-- --></A><H3>changedUpdate</H3><PRE>public void <B>changedUpdate</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,                          <A HREF="../../../javax/swing/event/DocumentEvent.html">DocumentEvent</A>&nbsp;e,                          <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</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>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="getLogicalView(javax.swing.text.FlowView)"><!-- --></A><H3>getLogicalView</H3><PRE>protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>getLogicalView</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv)</PRE><DL><DD>This method gives flow strategies access to the logical view of the FlowView.</DL><HR><A NAME="layout(javax.swing.text.FlowView)"><!-- --></A><H3>layout</H3><PRE>public void <B>layout</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv)</PRE><DL><DD>Update the flow on the given FlowView.  By default, this causes  all of the rows (child views) to be rebuilt to match the given  constraints for each row.  This is called by a FlowView.layout  to update the child views in the flow.<DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the view to reflow</DL></DD></DL><HR><A NAME="layoutRow(javax.swing.text.FlowView, int, int)"><!-- --></A><H3>layoutRow</H3><PRE>protected int <B>layoutRow</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,                        int&nbsp;rowIndex,                        int&nbsp;pos)</PRE><DL><DD>Creates a row of views that will fit within the  layout span of the row.  This is called by the layout method. This is implemented to fill the row by repeatedly calling the createView method until the available span has been exhausted, a forced break was encountered, or the createView method returned null.  If the remaining span was exhaused,  the adjustRow method will be called to perform adjustments to the row to try and make it fit into the given span.<DD><DL><DT><B>Parameters:</B><DD><CODE>rowIndex</CODE> - the index of the row to fill in with views.  The   row is assumed to be empty on entry.<DD><CODE>pos</CODE> - The current position in the children of   this views element from which to start.</DL></DD></DL><HR><A NAME="adjustRow(javax.swing.text.FlowView, int, int, int)"><!-- --></A><H3>adjustRow</H3><PRE>protected void <B>adjustRow</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,                         int&nbsp;rowIndex,                         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="createView(javax.swing.text.FlowView, int, int, int)"><!-- --></A><H3>createView</H3><PRE>protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>createView</B>(<A HREF="../../../javax/swing/text/FlowView.html">FlowView</A>&nbsp;fv,                          int&nbsp;startOffset,                          int&nbsp;spanLeft,                          int&nbsp;rowIndex)</PRE><DL><DD>Creates a view that can be used to represent the current piece of the flow.  This can be either an entire view from the logical view, or a fragment of the logical view.<DD><DL><DT><B>Parameters:</B><DD><CODE>fv</CODE> - the view holding the flow<DD><CODE>startOffset</CODE> - the start location for the view being created<DD><CODE>spanLeft</CODE> - the about of span left to fill in the row<DD><CODE>rowIndex</CODE> - the row the view will be placed into</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>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/FlowView.FlowStrategy.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/swing/text/FlowView.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/GapContent.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>  &nbsp;&nbsp;<A HREF="FlowView.FlowStrategy.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="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>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 + -