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

📄 compositeview.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
getViewAtPoint</H3><PRE>protected abstract <A HREF="../../../javax/swing/text/View.html">View</A> <B>getViewAtPoint</B>(int&nbsp;x,                                       int&nbsp;y,                                       <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&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 parent's allocation on entry, which should   be changed to the child's allocation on exit<DT><B>Returns:</B><DD>the child view</DL></DD></DL><HR><A NAME="childAllocation(int, java.awt.Rectangle)"><!-- --></A><H3>childAllocation</H3><PRE>protected abstract void <B>childAllocation</B>(int&nbsp;index,                                        <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;a)</PRE><DL><DD>Returns the allocation for a given child.<DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the child, >= 0 && < getViewCount()<DD><CODE>a</CODE> - the allocation to the interior of the box on entry,    and the allocation of the child view at the index on exit.</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,                                 <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;a)</PRE><DL><DD>Fetches the child view that represents the given position in the model.  This is implemented to fetch the view in the case where there is a child view for each child element.<DD><DL><DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position >= 0<DD><CODE>a</CODE> - the allocation to the interior of the box on entry,    and the allocation of the view containing the position on exit</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.  This is implemented to fetch the view in the case where there is a child view for each child element.<DD><DL><DT><B>Parameters:</B><DD><CODE>pos</CODE> - the position >= 0</DL></DD></DL><HR><A NAME="getInsideAllocation(java.awt.Shape)"><!-- --></A><H3>getInsideAllocation</H3><PRE>protected <A HREF="../../../java/awt/Rectangle.html">Rectangle</A> <B>getInsideAllocation</B>(<A HREF="../../../java/awt/Shape.html">Shape</A>&nbsp;a)</PRE><DL><DD>Translates the immutable allocation given to the view  to a mutable allocation that represents the interior allocation (i.e. the bounds of the given allocation with the top, left, bottom, and right insets removed. It is expected that the returned value would be further mutated to represent an allocation to a child view.  This is implemented to reuse an instance variable so it avoids creating excessive Rectangles.  Typically the result of calling this method would be fed to the childAllocation method.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - The allocation given to the view.</DL></DD></DL><HR><A NAME="setParagraphInsets(javax.swing.text.AttributeSet)"><!-- --></A><H3>setParagraphInsets</H3><PRE>protected void <B>setParagraphInsets</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;attr)</PRE><DL><DD>Sets the insets from the paragraph attributes specified in the given attributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - the attributes</DL></DD></DL><HR><A NAME="setInsets(short, short, short, short)"><!-- --></A><H3>setInsets</H3><PRE>protected void <B>setInsets</B>(short&nbsp;top,                         short&nbsp;left,                         short&nbsp;bottom,                         short&nbsp;right)</PRE><DL><DD>Sets the insets for the view.<DD><DL><DT><B>Parameters:</B><DD><CODE>top</CODE> - the top inset >= 0<DD><CODE>left</CODE> - the left inset >= 0<DD><CODE>bottom</CODE> - the bottom inset >= 0<DD><CODE>right</CODE> - the right inset >= 0</DL></DD></DL><HR><A NAME="getLeftInset()"><!-- --></A><H3>getLeftInset</H3><PRE>protected short <B>getLeftInset</B>()</PRE><DL><DD>Gets the left inset.<DD><DL><DT><B>Returns:</B><DD>the inset >= 0</DL></DD></DL><HR><A NAME="getRightInset()"><!-- --></A><H3>getRightInset</H3><PRE>protected short <B>getRightInset</B>()</PRE><DL><DD>Gets the right inset.<DD><DL><DT><B>Returns:</B><DD>the inset >= 0</DL></DD></DL><HR><A NAME="getTopInset()"><!-- --></A><H3>getTopInset</H3><PRE>protected short <B>getTopInset</B>()</PRE><DL><DD>Gets the top inset.<DD><DL><DT><B>Returns:</B><DD>the inset >= 0</DL></DD></DL><HR><A NAME="getBottomInset()"><!-- --></A><H3>getBottomInset</H3><PRE>protected short <B>getBottomInset</B>()</PRE><DL><DD>Gets the bottom inset.<DD><DL><DT><B>Returns:</B><DD>the inset >= 0</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,                                                  <A HREF="../../../java/awt/Shape.html">Shape</A>&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>Returns the next visual position for the cursor, in either the east or west direction.<DD><DL><DT><B>Returns:</B><DD>next position west of the passed in position.</DL></DD></DL><HR><A NAME="getNextEastWestVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])"><!-- --></A><H3>getNextEastWestVisualPositionFrom</H3><PRE>protected int <B>getNextEastWestVisualPositionFrom</B>(int&nbsp;pos,                                                <A HREF="../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,                                                <A HREF="../../../java/awt/Shape.html">Shape</A>&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>Returns the next visual position for the cursor, in either the east or west direction.<DD><DL><DT><B>Returns:</B><DD>next position west of the passed in position.</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>Subclasses may wish to subclass this and conditionally return true based on the position. A return value of true indicates that when a View returns -1 from getNextVisualPositionFrom the next view for east should be the current index offset by -1, and for west it means offset by 1. The normal direction (for left to right text) is to offset east by 1 and west by -1.<DD><DL><DT><B>Returns:</B><DD>false</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/CompositeView.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/ComponentView.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/DefaultCaret.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="CompositeView.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;<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" 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 + -