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

📄 paragraphview.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="ParagraphView(javax.swing.text.Element)"><!-- --></A><H3>ParagraphView</H3><PRE>public <B>ParagraphView</B>(<A HREF="../../../javax/swing/text/Element.html">Element</A>&nbsp;elem)</PRE><DL><DD>Constructs a ParagraphView for the given element.<DD><DL><DT><B>Parameters:</B><DD><CODE>elem</CODE> - the element that this view is responsible for</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="setJustification(int)"><!-- --></A><H3>setJustification</H3><PRE>protected void <B>setJustification</B>(int&nbsp;j)</PRE><DL><DD>Set the type of justification.<DD><DL></DL></DD></DL><HR><A NAME="setLineSpacing(float)"><!-- --></A><H3>setLineSpacing</H3><PRE>protected void <B>setLineSpacing</B>(float&nbsp;ls)</PRE><DL><DD>Set the line spacing.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ls</CODE> - the value in points</DL></DD></DL><HR><A NAME="setFirstLineIndent(float)"><!-- --></A><H3>setFirstLineIndent</H3><PRE>protected void <B>setFirstLineIndent</B>(float&nbsp;fi)</PRE><DL><DD>Set the indent on the first line<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ls</CODE> - the value in points</DL></DD></DL><HR><A NAME="setPropertiesFromAttributes()"><!-- --></A><H3>setPropertiesFromAttributes</H3><PRE>protected void <B>setPropertiesFromAttributes</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="getLayoutViewCount()"><!-- --></A><H3>getLayoutViewCount</H3><PRE>protected int <B>getLayoutViewCount</B>()</PRE><DL><DD>The child views of the paragraph are rows which have been used to arrange pieces of the Views that represent the child elements.  This is the number  of views that have been tiled in two dimensions, and should be equivalent to the number of child elements to the element this view is responsible for.<DD><DL></DL></DD></DL><HR><A NAME="getLayoutView(int)"><!-- --></A><H3>getLayoutView</H3><PRE>protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>getLayoutView</B>(int&nbsp;index)</PRE><DL><DD>The child views of the paragraph are rows which have been used to arrange pieces of the Views that represent the child elements.  This methods returns the view responsible for the child element index (prior to breaking).  These are the Views that were produced from a factory (to represent the child elements) and used for layout.<DD><DL></DL></DD></DL><HR><A NAME="adjustRow(javax.swing.text.ParagraphView.Row, int, int)"><!-- --></A><H3>adjustRow</H3><PRE>protected void <B>adjustRow</B>(javax.swing.text.ParagraphView.Row&nbsp;r,                         int&nbsp;desiredSpan,                         int&nbsp;x)</PRE><DL><DD>Adjusts the given row if possible to fit within the layout span.  By default this will try to find the  highest break weight possible nearest the end of the row.  If a forced break is encountered, the break will be positioned there.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>r</CODE> - the row to adjust to the current layout  span.<DD><CODE>desiredSpan</CODE> - the current layout span >= 0<DD><CODE>x</CODE> - the location r starts at.</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>Overriden from CompositeView.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/CompositeView.html#getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextNorthSouthVisualPositionFrom</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>next position west of the passed in position.</DL></DD></DL><HR><A NAME="getClosestPositionTo(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[], int, int)"><!-- --></A><H3>getClosestPositionTo</H3><PRE>protected int <B>getClosestPositionTo</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,                                   int&nbsp;rowIndex,                                   int&nbsp;x)                            throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Returns the closest model position to <code>x</code>. <code>rowIndex</code> gives the index of the view that corresponds that should be looked in.<DD><DL></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><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/BoxView.html#flipEastAndWestAtEnds(int, javax.swing.text.Position.Bias)">flipEastAndWestAtEnds</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/BoxView.html">BoxView</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><HR><A NAME="getFlowSpan(int)"><!-- --></A><H3>getFlowSpan</H3><PRE>public int <B>getFlowSpan</B>(int&nbsp;index)</PRE><DL><DD>Fetch the constraining span to flow against for the given child index.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/FlowView.html#getFlowSpan(int)">getFlowSpan</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/FlowView.html">FlowView</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.text.FlowView</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the row being updated.   This should be a value >= 0 and < getViewCount().<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/FlowView.html#getFlowStart(int)"><CODE>FlowView.getFlowStart(int)</CODE></A></DL></DD></DL><HR><A NAME="getFlowStart(int)"><!-- --></A><H3>getFlowStart</H3><PRE>public int <B>getFlowStart</B>(int&nbsp;index)</PRE><DL><DD>Fetch the location along the flow axis that the flow span will start at.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/FlowView.html#getFlowStart(int)">getFlowStart</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/FlowView.html">FlowView</A></CODE></DL></DD><DD>Following copied from class: <CODE>javax.swing.text.FlowView</CODE></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>index</CODE> - the index of the row being updated.   This should be a value >= 0 and < getViewCount().<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/FlowView.html#getFlowSpan(int)"><CODE>FlowView.getFlowSpan(int)</CODE></A></DL></DD></DL><HR><A NAME="createRow()"><!-- --></A><H3>createRow</H3><PRE>protected <A HREF="../../../javax/swing/text/View.html">View</A> <B>createRow</B>()</PRE><DL><DD>Create a View that should be used to hold a  a rows worth of children in a flow.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/swing/text/FlowView.html#createRow()">createRow</A></CODE> in class <CODE><A HREF="../../../javax/swing/text/FlowView.html">FlowView</A></CODE></DL></DD></DL><HR>

⌨️ 快捷键说明

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