📄 asyncboxview.childlocator.html
字号:
used to store the current allocation.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="lastValidOffset"><!-- --></A><H3>lastValidOffset</H3><PRE>protected <A HREF="../../../javax/swing/text/AsyncBoxView.ChildState.html">AsyncBoxView.ChildState</A> <B>lastValidOffset</B></PRE><DL><DD>The location of the last offset calculation that is valid.</DL><HR><A NAME="lastAlloc"><!-- --></A><H3>lastAlloc</H3><PRE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>lastAlloc</B></PRE><DL><DD>The last seen allocation (for repainting when changes are flushed upward).</DL><HR><A NAME="childAlloc"><!-- --></A><H3>childAlloc</H3><PRE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>childAlloc</B></PRE><DL><DD>A shape to use for the child allocation to avoid creating a lot of garbage.</DL><!-- ========= 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="AsyncBoxView.ChildLocator(javax.swing.text.AsyncBoxView)"><!-- --></A><H3>AsyncBoxView.ChildLocator</H3><PRE>public <B>AsyncBoxView.ChildLocator</B>()</PRE><DL><DD>construct a child locator.</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="childChanged(javax.swing.text.AsyncBoxView.ChildState)"><!-- --></A><H3>childChanged</H3><PRE>public void <B>childChanged</B>(<A HREF="../../../javax/swing/text/AsyncBoxView.ChildState.html">AsyncBoxView.ChildState</A> cs)</PRE><DL><DD>Notification that a child changed. This can effect whether or not new offset calculations are needed. This is called by a ChildState object that has changed it's major span. This can therefore be called by multiple threads.</DL><HR><A NAME="paintChildren(java.awt.Graphics)"><!-- --></A><H3>paintChildren</H3><PRE>public void <B>paintChildren</B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</PRE><DL><DD>Paint the children that intersect the clip area.</DL><HR><A NAME="getChildAllocation(int, java.awt.Shape)"><!-- --></A><H3>getChildAllocation</H3><PRE>public <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getChildAllocation</B>(int index, <A HREF="../../../java/awt/Shape.html">Shape</A> a)</PRE><DL><DD>Fetch the allocation to use for a child view. This will update the offsets for all children not yet updated before the given index.</DL><HR><A NAME="getViewIndexAtPoint(float, float, java.awt.Shape)"><!-- --></A><H3>getViewIndexAtPoint</H3><PRE>public int <B>getViewIndexAtPoint</B>(float x, float y, <A HREF="../../../java/awt/Shape.html">Shape</A> a)</PRE><DL><DD>Fetches the child view index at the given point. This is called by the various View methods that need to calculate which child to forward a message to. This should be called by a block synchronized on this object, and would typically be followed with one or more calls to getChildAllocation that should also be in the synchronized block.<DD><DL><DT><B>Parameters:</B><DD><CODE>x</CODE> - the X coordinate >= 0<DD><CODE>y</CODE> - the Y coordinate >= 0<DD><CODE>a</CODE> - the allocation to the View<DT><B>Returns:</B><DD>the nearest child index</DL></DD></DL><HR><A NAME="getChildAllocation(int)"><!-- --></A><H3>getChildAllocation</H3><PRE>protected <A HREF="../../../java/awt/Shape.html">Shape</A> <B>getChildAllocation</B>(int index)</PRE><DL><DD>Fetch the allocation to use for a child view. <em>This does not update the offsets in the ChildState records.</em></DL><HR><A NAME="setAllocation(java.awt.Shape)"><!-- --></A><H3>setAllocation</H3><PRE>protected void <B>setAllocation</B>(<A HREF="../../../java/awt/Shape.html">Shape</A> a)</PRE><DL><DD>Copy the currently allocated shape into the Rectangle used to store the current allocation. This would be a floating point rectangle in a Java2D-specific implmentation.</DL><HR><A NAME="getViewIndexAtVisualOffset(float)"><!-- --></A><H3>getViewIndexAtVisualOffset</H3><PRE>protected int <B>getViewIndexAtVisualOffset</B>(float targetOffset)</PRE><DL><DD>Locate the view responsible for an offset into the box along the major axis. Make sure that offsets are set on the ChildState objects up to the given target span past the desired offset.</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/AsyncBoxView.ChildLocator.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/AsyncBoxView.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/text/AsyncBoxView.ChildState.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="AsyncBoxView.ChildLocator.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <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 + -