📄 paragraph.html
字号:
<A NAME="getGlyphsCount()"><!-- --></A><H3>
getGlyphsCount</H3>
<PRE>
public int <B>getGlyphsCount</B>()</PRE>
<DL>
<DD>Get the count of the child glyphs.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The count of the child glyphs.</DL>
</DD>
</DL>
<HR>
<A NAME="split(int)"><!-- --></A><H3>
split</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>split</B>(int index_of_from)</PRE>
<DL>
<DD>Break this paragraph into 2 paragraphs. The first one is this paragraph itself but is been modified. The second one is returned and should be inserted into the document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index_of_from</CODE> - Where to break this paragraph.<DT><B>Returns:</B><DD>The second paragraph.</DL>
</DD>
</DL>
<HR>
<A NAME="clearAllRows()"><!-- --></A><H3>
clearAllRows</H3>
<PRE>
public void <B>clearAllRows</B>()</PRE>
<DL>
<DD>This method is called by ParagraphCompositor to reset all rows. (To make all rows unavailable)
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="appendRow(jexi.core.Row)"><!-- --></A><H3>
appendRow</H3>
<PRE>
public void <B>appendRow</B>(<A HREF="../../jexi/core/Row.html" title="class in jexi.core">Row</A> row)</PRE>
<DL>
<DD>This method is called by ParagraphCompositor to append a Row.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>row</CODE> - The row object to append.</DL>
</DD>
</DL>
<HR>
<A NAME="getRows()"><!-- --></A><H3>
getRows</H3>
<PRE>
public java.util.ArrayList <B>getRows</B>()</PRE>
<DL>
<DD>Once the paragraph was formatted by a compositor, view can get the formatted rows to display.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRowsCount()"><!-- --></A><H3>
getRowsCount</H3>
<PRE>
public int <B>getRowsCount</B>()</PRE>
<DL>
<DD>Get the count of the rows.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>How many rows in this paragraph.</DL>
</DD>
</DL>
<HR>
<A NAME="getRow(int)"><!-- --></A><H3>
getRow</H3>
<PRE>
public <A HREF="../../jexi/core/Row.html" title="class in jexi.core">Row</A> <B>getRow</B>(int index)</PRE>
<DL>
<DD>Get the specified row.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the row.<DT><B>Returns:</B><DD>The row object.</DL>
</DD>
</DL>
<HR>
<A NAME="getRowIndex(jexi.core.Row)"><!-- --></A><H3>
getRowIndex</H3>
<PRE>
public int <B>getRowIndex</B>(<A HREF="../../jexi/core/Row.html" title="class in jexi.core">Row</A> row)</PRE>
<DL>
<DD>Get the index of the row.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>row</CODE> - The row object.<DT><B>Returns:</B><DD>The index of the row, or (-1) if not found.</DL>
</DD>
</DL>
<HR>
<A NAME="getRowSpace()"><!-- --></A><H3>
getRowSpace</H3>
<PRE>
public int <B>getRowSpace</B>()</PRE>
<DL>
<DD>Get the row space.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The row space.</DL>
</DD>
</DL>
<HR>
<A NAME="scaleWidth(boolean)"><!-- --></A><H3>
scaleWidth</H3>
<PRE>
public float <B>scaleWidth</B>(boolean firstRow)</PRE>
<DL>
<DD>Get the available width for layout rows. <br> <b>NOTE</b>: the scale width of the first row may be less because a "firstIndent" may not be ZERO.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>firstRow</CODE> - If this is the first row.<DT><B>Returns:</B><DD>The available width.</DL>
</DD>
</DL>
<HR>
<A NAME="scaleWidth(jexi.core.Row)"><!-- --></A><H3>
scaleWidth</H3>
<PRE>
public int <B>scaleWidth</B>(<A HREF="../../jexi/core/Row.html" title="class in jexi.core">Row</A> row)</PRE>
<DL>
<DD>Get the available width for layout rows. <br> <b>NOTE</b>: the scale width of the first row may be less because a "firstIndent" may not be ZERO.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>row</CODE> - The current row.<DT><B>Returns:</B><DD>The available width.</DL>
</DD>
</DL>
<HR>
<A NAME="width()"><!-- --></A><H3>
width</H3>
<PRE>
public int <B>width</B>()</PRE>
<DL>
<DD>Get the total width of the paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../jexi/core/Glyph.html#width()"><CODE>Glyph.width()</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="draw(jexi.ui.Graphics)"><!-- --></A><H3>
draw</H3>
<PRE>
public void <B>draw</B>(<A HREF="../../jexi/ui/Graphics.html" title="interface in jexi.ui">Graphics</A> g)</PRE>
<DL>
<DD>Unsupported operation.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>See Also:</B><DD><A HREF="../../jexi/core/Glyph.html#draw(jexi.ui.Graphics)"><CODE>Glyph.draw(jexi.ui.Graphics)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isFirstRow(jexi.core.Row)"><!-- --></A><H3>
isFirstRow</H3>
<PRE>
public boolean <B>isFirstRow</B>(<A HREF="../../jexi/core/Row.html" title="class in jexi.core">Row</A> row)</PRE>
<DL>
<DD>Check if this row is the first row.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>row</CODE> - The row to be tested.<DT><B>Returns:</B><DD>True if this row is the first row.</DL>
</DD>
</DL>
<HR>
<A NAME="debug()"><!-- --></A><H3>
debug</H3>
<PRE>
public void <B>debug</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="intersects(int, int)"><!-- --></A><H3>
intersects</H3>
<PRE>
public boolean <B>intersects</B>(int x, int y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Paragraph.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../jexi/core/Page.html" title="class in jexi.core"><B>PREV CLASS</B></A>
<A HREF="../../jexi/core/ParagraphCompositor.html" title="class in jexi.core"><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>
<A HREF="Paragraph.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -