📄 document.html
字号:
<DT><B>Returns:</B><DD>The last page.</DL>
</DD>
</DL>
<HR>
<A NAME="firstPage()"><!-- --></A><H3>
firstPage</H3>
<PRE>
public <A HREF="../../jexi/core/Page.html" title="class in jexi.core">Page</A> <B>firstPage</B>()</PRE>
<DL>
<DD>Get the first page.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The first page.</DL>
</DD>
</DL>
<HR>
<A NAME="addPage(int, jexi.core.Page)"><!-- --></A><H3>
addPage</H3>
<PRE>
public void <B>addPage</B>(int index, <A HREF="../../jexi/core/Page.html" title="class in jexi.core">Page</A> page)</PRE>
<DL>
<DD>Add page to page list.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - Where to insert.<DD><CODE>page</CODE> - The page object.</DL>
</DD>
</DL>
<HR>
<A NAME="addPage(jexi.core.Page)"><!-- --></A><H3>
addPage</H3>
<PRE>
public void <B>addPage</B>(<A HREF="../../jexi/core/Page.html" title="class in jexi.core">Page</A> page)</PRE>
<DL>
<DD>Add page to the end of the page list.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>page</CODE> - The page object.</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 document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The total width.</DL>
</DD>
</DL>
<HR>
<A NAME="height()"><!-- --></A><H3>
height</H3>
<PRE>
public int <B>height</B>()</PRE>
<DL>
<DD>Get the total height of the document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The total height.</DL>
</DD>
</DL>
<HR>
<A NAME="clearAllPages()"><!-- --></A><H3>
clearAllPages</H3>
<PRE>
public void <B>clearAllPages</B>()</PRE>
<DL>
<DD>Clear all pages.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="draw(jexi.ui.Graphics, int, int, int, int)"><!-- --></A><H3>
draw</H3>
<PRE>
public void <B>draw</B>(<A HREF="../../jexi/ui/Graphics.html" title="interface in jexi.ui">Graphics</A> g, int x, int y, int viewWidth, int viewHeight)</PRE>
<DL>
<DD>Draw the document. This is called by View. Document should draw from it's (x, y).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>g</CODE> - The graphics object for drawing.<DD><CODE>x</CODE> - The start position of x.<DD><CODE>y</CODE> - The start position of y.<DD><CODE>viewWidth</CODE> - The total width of the view.<DD><CODE>viewHeight</CODE> - The total height of the view.</DL>
</DD>
</DL>
<HR>
<A NAME="isEditRegion(int, int)"><!-- --></A><H3>
isEditRegion</H3>
<PRE>
public boolean <B>isEditRegion</B>(int x, int y)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="addParagraph(int, jexi.core.Paragraph)"><!-- --></A><H3>
addParagraph</H3>
<PRE>
public void <B>addParagraph</B>(int index, <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> p)</PRE>
<DL>
<DD>Add a paragraph into the document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="removeParagraph(int)"><!-- --></A><H3>
removeParagraph</H3>
<PRE>
public void <B>removeParagraph</B>(int index)</PRE>
<DL>
<DD>Remove the specified paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>index</CODE> - The index of the paragraph.</DL>
</DD>
</DL>
<HR>
<A NAME="removeParagraph(jexi.core.Paragraph)"><!-- --></A><H3>
removeParagraph</H3>
<PRE>
public void <B>removeParagraph</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> p)</PRE>
<DL>
<DD>Remove the specified paragraph.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>p</CODE> - The paragraph object.</DL>
</DD>
</DL>
<HR>
<A NAME="addParagraph(jexi.core.Paragraph)"><!-- --></A><H3>
addParagraph</H3>
<PRE>
public void <B>addParagraph</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> p)</PRE>
<DL>
<DD>Add a paragraph into the end of the document.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>p</CODE> - The paragraph.</DL>
</DD>
</DL>
<HR>
<A NAME="child(int)"><!-- --></A><H3>
child</H3>
<PRE>
public <A HREF="../../jexi/core/Glyph.html" title="interface in jexi.core">Glyph</A> <B>child</B>(int index)</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>
<HR>
<A NAME="updateView()"><!-- --></A><H3>
updateView</H3>
<PRE>
public void <B>updateView</B>()</PRE>
<DL>
<DD>Update the view.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="updateCaret()"><!-- --></A><H3>
updateCaret</H3>
<PRE>
public void <B>updateCaret</B>()</PRE>
<DL>
<DD>Update the caret, to make the caret in the proprate position.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getCaret()"><!-- --></A><H3>
getCaret</H3>
<PRE>
public <A HREF="../../jexi/core/Caret.html" title="class in jexi.core">Caret</A> <B>getCaret</B>()</PRE>
<DL>
<DD>Get the caret.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The Caret2.</DL>
</DD>
</DL>
<HR>
<A NAME="getSelection()"><!-- --></A><H3>
getSelection</H3>
<PRE>
public <A HREF="../../jexi/core/Selection.html" title="class in jexi.core">Selection</A> <B>getSelection</B>()</PRE>
<DL>
<DD>Get the selection.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:</B><DD>The selection.</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/Document.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/Compositor.html" title="interface in jexi.core"><B>PREV CLASS</B></A>
<A HREF="../../jexi/core/DocumentCompositor.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="Document.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 | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <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 + -