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

📄 view.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
 break the view into fragments as the view has  not been written to support fragmenting.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)"><CODE>getBreakWeight(int, float, float)</CODE></A>, <A HREF="../../../javax/swing/text/View.html#GoodBreakWeight"><CODE>GoodBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#ExcellentBreakWeight"><CODE>ExcellentBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#ForcedBreakWeight"><CODE>ForcedBreakWeight</CODE></A></DL></DD></DL><HR><A NAME="GoodBreakWeight"><!-- --></A><H3>GoodBreakWeight</H3><PRE>public static final int <B>GoodBreakWeight</B></PRE><DL><DD>The weight to indicate a view supports breaking, but better opportunities probably exist.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)"><CODE>getBreakWeight(int, float, float)</CODE></A>, <A HREF="../../../javax/swing/text/View.html#BadBreakWeight"><CODE>BadBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#ExcellentBreakWeight"><CODE>ExcellentBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#ForcedBreakWeight"><CODE>ForcedBreakWeight</CODE></A></DL></DD></DL><HR><A NAME="ExcellentBreakWeight"><!-- --></A><H3>ExcellentBreakWeight</H3><PRE>public static final int <B>ExcellentBreakWeight</B></PRE><DL><DD>The weight to indicate a view supports breaking, and this represents a very attractive place to break.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)"><CODE>getBreakWeight(int, float, float)</CODE></A>, <A HREF="../../../javax/swing/text/View.html#BadBreakWeight"><CODE>BadBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#GoodBreakWeight"><CODE>GoodBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#ForcedBreakWeight"><CODE>ForcedBreakWeight</CODE></A></DL></DD></DL><HR><A NAME="ForcedBreakWeight"><!-- --></A><H3>ForcedBreakWeight</H3><PRE>public static final int <B>ForcedBreakWeight</B></PRE><DL><DD>The weight to indicate a view supports breaking, and must be broken to be represented properly  when placed in a view that formats it's children by breaking them.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getBreakWeight(int, float, float)"><CODE>getBreakWeight(int, float, float)</CODE></A>, <A HREF="../../../javax/swing/text/View.html#BadBreakWeight"><CODE>BadBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#GoodBreakWeight"><CODE>GoodBreakWeight</CODE></A>, <A HREF="../../../javax/swing/text/View.html#ExcellentBreakWeight"><CODE>ExcellentBreakWeight</CODE></A></DL></DD></DL><HR><A NAME="X_AXIS"><!-- --></A><H3>X_AXIS</H3><PRE>public static final int <B>X_AXIS</B></PRE><DL><DD>Axis for format/break operations.</DL><HR><A NAME="Y_AXIS"><!-- --></A><H3>Y_AXIS</H3><PRE>public static final int <B>Y_AXIS</B></PRE><DL><DD>Axis for format/break operations.</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="View(javax.swing.text.Element)"><!-- --></A><H3>View</H3><PRE>public <B>View</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE><DL><DD>Creates a new View object.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element to represent</DL></DD></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="getParent()"><!-- --></A><H3>getParent</H3><PRE>public <A HREF="../../../javax/swing/text/View.html">View</A> <B>getParent</B>()</PRE><DL><DD>Returns the parent of the view.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the parent, null if none</DL></DD></DL><HR><A NAME="isVisible()"><!-- --></A><H3>isVisible</H3><PRE>public boolean <B>isVisible</B>()</PRE><DL><DD>Returns a boolean that indicates whether  the view is visible or not.  By default  all views are visible.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>boolean value.</DL></DD></DL><HR><A NAME="getPreferredSpan(int)"><!-- --></A><H3>getPreferredSpan</H3><PRE>public abstract float <B>getPreferredSpan</B>(int&nbsp;axis)</PRE><DL><DD>Determines the preferred span for this view along an axis.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getPreferredSpan(int)"><CODE>getPreferredSpan(int)</CODE></A></DL></DD></DL><HR><A NAME="getMinimumSpan(int)"><!-- --></A><H3>getMinimumSpan</H3><PRE>public float <B>getMinimumSpan</B>(int&nbsp;axis)</PRE><DL><DD>Determines the minimum span for this view along an axis.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getPreferredSpan(int)"><CODE>getPreferredSpan(int)</CODE></A></DL></DD></DL><HR><A NAME="getMaximumSpan(int)"><!-- --></A><H3>getMaximumSpan</H3><PRE>public float <B>getMaximumSpan</B>(int&nbsp;axis)</PRE><DL><DD>Determines the maximum span for this view along an axis.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getPreferredSpan(int)"><CODE>getPreferredSpan(int)</CODE></A></DL></DD></DL><HR><A NAME="preferenceChanged(javax.swing.text.View, boolean, boolean)"><!-- --></A><H3>preferenceChanged</H3><PRE>public void <B>preferenceChanged</B>(<A HREF="../../../javax/swing/text/View.html">View</A>&nbsp;child,                              boolean&nbsp;width,                              boolean&nbsp;height)</PRE><DL><DD>Child views can call this on the parent to indicate that the preference has changed and should be reconsidered for layout.  By default this just propagates upward to  the next parent.  The root view will call  <code>revalidate</code> on the associated text component.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>child</CODE> - the child view<DD><CODE>width</CODE> - true if the width preference has changed<DD><CODE>height</CODE> - true if the height preference has changed<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/JComponent.html#revalidate()"><CODE>JComponent.revalidate()</CODE></A></DL></DD></DL><HR><A NAME="getAlignment(int)"><!-- --></A><H3>getAlignment</H3><PRE>public float <B>getAlignment</B>(int&nbsp;axis)</PRE><DL><DD>Determines the desired alignment for this view along an axis.  By default this is simply centered.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>axis</CODE> - may be either View.X_AXIS or View.Y_AXIS</DL></DD></DL><HR><A NAME="paint(java.awt.Graphics, java.awt.Shape)"><!-- --></A><H3>paint</H3><PRE>public abstract 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.  The view may need to do layout and create child views to enable itself to render into the given allocation.<DD><DL></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>paint(java.awt.Graphics, java.awt.Shape)</CODE></A></DL></DD></DL><HR><A NAME="setParent(javax.swing.text.View)"><!-- --></A><H3>setParent</H3><PRE>public void <B>setParent</B>(<A HREF="../../../javax/swing/text/View.html">View</A>&nbsp;parent)</PRE><DL><DD>Establishes the parent view for this view.  This is guaranteed to be called before any other methods if the parent view is functioning properly.  This is also the last method called, since it is called to indicate the view has been removed from the hierarchy as  well.  If this is reimplemented,  <code>super.setParent()</code> should be called.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>parent</CODE> - the new parent, or null if the view is  being removed from a parent it was previously added  to</DL></DD></DL><HR><A NAME="getViewCount()"><!-- --></A><H3>getViewCount</H3><PRE>public int <B>getViewCount</B>()</PRE><DL><DD>Returns the number of views in this view.  Since the default is to not be a composite view this returns 0.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the number of views >= 0<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/View.html#getViewCount()"><CODE>getViewCount()</CODE></A></DL></DD></DL><HR>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -