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

📄 boxview.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="childAllocation(int, java.awt.Rectangle)"><!-- --></A><H3>childAllocation</H3><PRE>protected void <B>childAllocation</B>(int&nbsp;index,                               <A HREF="../../../java/awt/Rectangle.html">Rectangle</A>&nbsp;alloc)</PRE><DL><DD>Allocates a region for a child view.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#childAllocation(int, java.awt.Rectangle)">childAllocation</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>index</CODE> - the index of the child view to   allocate, >= 0 && < getViewCount()<DD><CODE>alloc</CODE> - the allocated region</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 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 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 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 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><B>Description copied from class: <CODE><A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></CODE></B></DD><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>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)">flipEastAndWestAtEnds</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/CompositeView.html">CompositeView</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.text.CompositeView</CODE></DD><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/BoxView.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/AsyncBoxView.ChildState.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" CLASS="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" 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 + -