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

📄 document.html

📁 Java开发图文混排的编辑器文档
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the next paragraph, or null if the current is the last.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../jexi/core/Document.html#previousParagraph(jexi.core.Paragraph)">previousParagraph</A></B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A>&nbsp;current)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the previous paragraph, or null if the current is the first.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../jexi/core/Document.html#removeParagraph(int)">removeParagraph</A></B>(int&nbsp;index)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the specified paragraph.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../jexi/core/Document.html#removeParagraph(jexi.core.Paragraph)">removeParagraph</A></B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A>&nbsp;p)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove the specified paragraph.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../jexi/core/Document.html#updateCaret()">updateCaret</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the caret, to make the caret in the proprate position.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../jexi/core/Document.html#updateView()">updateView</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the view.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../jexi/core/Document.html#width()">width</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the total width of the document.</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>

<!-- ============ FIELD DETAIL =========== -->


<!-- ========= CONSTRUCTOR DETAIL ======== -->


<!-- ============ METHOD DETAIL ========== -->

<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>

<A NAME="createEmptyDocument(jexi.ui.View)"><!-- --></A><H3>
createEmptyDocument</H3>
<PRE>
public static <A HREF="../../jexi/core/Document.html" title="class in jexi.core">Document</A> <B>createEmptyDocument</B>(<A HREF="../../jexi/ui/View.html" title="interface in jexi.ui">View</A>&nbsp;view)</PRE>
<DL>
<DD>Create an empty document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>view</CODE> - The view reference.<DT><B>Returns:</B><DD>The Document object.</DL>
</DD>
</DL>
<HR>

<A NAME="createDocument(jexi.ui.View, java.lang.String)"><!-- --></A><H3>
createDocument</H3>
<PRE>
public static <A HREF="../../jexi/core/Document.html" title="class in jexi.core">Document</A> <B>createDocument</B>(<A HREF="../../jexi/ui/View.html" title="interface in jexi.ui">View</A>&nbsp;view,                                      java.lang.String&nbsp;filename)                               throws java.io.IOException,                                      java.io.FileNotFoundException</PRE>
<DL>
<DD>Create a document from an existing file.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>filename</CODE> - The full path of the file.<DT><B>Returns:</B><DD>The Document object.<DT><B>Throws:</B><DD><CODE>java.io.IOException</CODE> - If there is any IO error.<DD><CODE>java.io.FileNotFoundException</CODE> - If the file is not existing.</DL>
</DD>
</DL>
<HR>

<A NAME="compose()"><!-- --></A><H3>
compose</H3>
<PRE>
public void <B>compose</B>()</PRE>
<DL>
<DD>Compose the document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getView()"><!-- --></A><H3>
getView</H3>
<PRE>
public <A HREF="../../jexi/ui/View.html" title="interface in jexi.ui">View</A> <B>getView</B>()</PRE>
<DL>
<DD>Get the view of this document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The view object.</DL>
</DD>
</DL>
<HR>

<A NAME="nextParagraph(jexi.core.Paragraph)"><!-- --></A><H3>
nextParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>nextParagraph</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A>&nbsp;current)</PRE>
<DL>
<DD>Get the next paragraph, or null if the current is the last.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>current</CODE> - The current paragraph.<DT><B>Returns:</B><DD>The next paragraph, or null if no next paragraph.</DL>
</DD>
</DL>
<HR>

<A NAME="previousParagraph(jexi.core.Paragraph)"><!-- --></A><H3>
previousParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>previousParagraph</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A>&nbsp;current)</PRE>
<DL>
<DD>Get the previous paragraph, or null if the current is the first.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>current</CODE> - The current paragraph.<DT><B>Returns:</B><DD>The previous paragraph, or null if no previous paragraph.</DL>
</DD>
</DL>
<HR>

<A NAME="firstParagraph()"><!-- --></A><H3>
firstParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>firstParagraph</B>()</PRE>
<DL>
<DD>Get the first paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The first paragraph.</DL>
</DD>
</DL>
<HR>

<A NAME="lastParagraph()"><!-- --></A><H3>
lastParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>lastParagraph</B>()</PRE>
<DL>
<DD>Get the last paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The last paragraph.</DL>
</DD>
</DL>
<HR>

<A NAME="getParagraphCount()"><!-- --></A><H3>
getParagraphCount</H3>
<PRE>
public int <B>getParagraphCount</B>()</PRE>
<DL>
<DD>Get the count of the paragraphs.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>How many paragraphs.</DL>
</DD>
</DL>
<HR>

<A NAME="getParagraph(int)"><!-- --></A><H3>
getParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>getParagraph</B>(int&nbsp;index)</PRE>
<DL>
<DD>Get the specified paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the paragraph.<DT><B>Returns:</B><DD>The specified paragraph.</DL>
</DD>
</DL>
<HR>

<A NAME="getParagraphIndex(jexi.core.Paragraph)"><!-- --></A><H3>
getParagraphIndex</H3>
<PRE>
public int <B>getParagraphIndex</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A>&nbsp;p)</PRE>
<DL>
<DD>Get the index of the specified paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>p</CODE> - The specified paragraph.<DT><B>Returns:</B><DD>The index of this paragraph.</DL>
</DD>
</DL>
<HR>

<A NAME="getParagraphs()"><!-- --></A><H3>
getParagraphs</H3>
<PRE>
public java.util.List <B>getParagraphs</B>()</PRE>
<DL>
<DD>Get all paragraphs.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>List that contains all paragraphs.</DL>
</DD>
</DL>
<HR>

<A NAME="getPageCount()"><!-- --></A><H3>
getPageCount</H3>
<PRE>
public int <B>getPageCount</B>()</PRE>
<DL>
<DD>Get the count of the pages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>How many pages.</DL>
</DD>
</DL>
<HR>

<A NAME="getPageFormat()"><!-- --></A><H3>
getPageFormat</H3>
<PRE>
public <A HREF="../../jexi/core/format/PageFormat.html" title="class in jexi.core.format">PageFormat</A> <B>getPageFormat</B>()</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>

<A NAME="getPage(int)"><!-- --></A><H3>
getPage</H3>
<PRE>
public <A HREF="../../jexi/core/Page.html" title="class in jexi.core">Page</A> <B>getPage</B>(int&nbsp;index)</PRE>
<DL>
<DD>Get the specified page.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the page.<DT><B>Returns:</B><DD>The specified page.</DL>
</DD>
</DL>
<HR>

<A NAME="getPages()"><!-- --></A><H3>
getPages</H3>
<PRE>
public java.util.List <B>getPages</B>()</PRE>
<DL>
<DD>Get pages of the document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The pages array list.</DL>
</DD>
</DL>
<HR>

<A NAME="lastPage()"><!-- --></A><H3>
lastPage</H3>
<PRE>
public <A HREF="../../jexi/core/Page.html" title="class in jexi.core">Page</A> <B>lastPage</B>()</PRE>
<DL>
<DD>Get the last page.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>

⌨️ 快捷键说明

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