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

📄 blockview.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</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>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/BoxView.html#layoutMinorAxis(int, int, int[], int[])">layoutMinorAxis</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>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="paint(java.awt.Graphics, java.awt.Shape)"><!-- --></A><H3>paint</H3><PRE>public void <B>paint</B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A>&nbsp;g,                  <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;allocation)</PRE><DL><DD>Renders using the given rendering surface and area on that surface.  This is implemented to delegate to the css box painter to paint the border and background prior to the interior.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/BoxView.html#paint(java.awt.Graphics, java.awt.Shape)">paint</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>g</CODE> - the rendering surface to use<DD><CODE>allocation</CODE> - the allocated region to render into<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/text/View.html#paint(java.awt.Graphics, java.awt.Shape)"><CODE>View.paint(java.awt.Graphics, java.awt.Shape)</CODE></A></DL></DD></DL><HR><A NAME="getAttributes()"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> <B>getAttributes</B>()</PRE><DL><DD>Fetches the attributes to use when rendering.  This is implemented to multiplex the attributes specified in the model with a StyleSheet.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/View.html#getAttributes()">getAttributes</A></CODE> in class <CODE><A HREF="../../../../javax/swing/text/View.html">View</A></CODE></DL></DD></DL><HR><A NAME="getResizeWeight(int)"><!-- --></A><H3>getResizeWeight</H3><PRE>public int <B>getResizeWeight</B>(int&nbsp;axis)</PRE><DL><DD>Gets the resize weight.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/BoxView.html#getResizeWeight(int)">getResizeWeight</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>axis</CODE> - may be either X_AXIS or Y_AXIS<DT><B>Returns:</B><DD>the weight<DT><B>Throws:</B><DD><CODE><A HREF="../../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - for an invalid axis</DL></DD></DL><HR><A NAME="getAlignment(int)"><!-- --></A><H3>getAlignment</H3><PRE>public float <B>getAlignment</B>(int&nbsp;axis)</PRE><DL><DD>Gets the alignment.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../../javax/swing/text/BoxView.html#getAlignment(int)">getAlignment</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>axis</CODE> - may be either X_AXIS or Y_AXIS<DT><B>Returns:</B><DD>the alignment</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>&nbsp;changes,                          <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;a,                          <A HREF="../../../../javax/swing/text/ViewFactory.html">ViewFactory</A>&nbsp;f)</PRE><DL><DD><B>Description copied from class: <CODE><A HREF="../../../../javax/swing/text/View.html">View</A></CODE></B></DD><DD>Gives notification from the document that attributes were changed in a location that this view is responsible for. To reduce the burden to subclasses, this functionality is spread out into the following calls that subclasses can reimplement: <ol> <li><a href="#updateChildren">updateChildren</a> is called if there were any changes to the element this view is responsible for.  If this view has child views that are represent the child elements, then this method should do whatever is necessary to make sure the child views correctly represent the model. <li><a href="#forwardUpdate">forwardUpdate</a> is called to forward the DocumentEvent to the appropriate child views. <li><a href="#updateLayout">updateLayout</a> is called to give the view a chance to either repair it's layout, to reschedule layout, or do nothing. </ol><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>Following copied from class: <CODE>javax.swing.text.View</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>e</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="setPropertiesFromAttributes()"><!-- --></A><H3>setPropertiesFromAttributes</H3><PRE>protected void <B>setPropertiesFromAttributes</B>()</PRE><DL><DD>Update any cached values that come from attributes.</DL><HR><A NAME="getStyleSheet()"><!-- --></A><H3>getStyleSheet</H3><PRE>protected <A HREF="../../../../javax/swing/text/html/StyleSheet.html">StyleSheet</A> <B>getStyleSheet</B>()</PRE><DL></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/BlockView.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;PREV CLASS&nbsp;&nbsp;<A HREF="../../../../javax/swing/text/html/CSS.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="BlockView.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 + -