📄 selection.html
字号:
</TABLE>
<A NAME="Selection(jexi.core.Document)"><!-- --></A><H3>
Selection</H3>
<PRE>
public <B>Selection</B>(<A HREF="../../jexi/core/Document.html" title="class in jexi.core">Document</A> document)</PRE>
<DL>
<DD>Create a non-select selection.
<P>
</DL>
<!-- ============ 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="getStartPosition()"><!-- --></A><H3>
getStartPosition</H3>
<PRE>
public <A HREF="../../jexi/core/Position.html" title="class in jexi.core">Position</A> <B>getStartPosition</B>()</PRE>
<DL>
<DD>Get the start position.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The start position.</DL>
</DD>
</DL>
<HR>
<A NAME="getEndPosition()"><!-- --></A><H3>
getEndPosition</H3>
<PRE>
public <A HREF="../../jexi/core/Position.html" title="class in jexi.core">Position</A> <B>getEndPosition</B>()</PRE>
<DL>
<DD>Get the end position.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The end position.</DL>
</DD>
</DL>
<HR>
<A NAME="isSelected()"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>()</PRE>
<DL>
<DD>Test if the selection is 'non-select' or 'selected'.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>True if the selection has contains a range.</DL>
</DD>
</DL>
<HR>
<A NAME="select(jexi.core.Position, jexi.core.Position)"><!-- --></A><H3>
select</H3>
<PRE>
public void <B>select</B>(<A HREF="../../jexi/core/Position.html" title="class in jexi.core">Position</A> start, <A HREF="../../jexi/core/Position.html" title="class in jexi.core">Position</A> end)</PRE>
<DL>
<DD>Make the section selected between start and end.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>start</CODE> - The start position.<DD><CODE>end</CODE> - The end position.</DL>
</DD>
</DL>
<HR>
<A NAME="unselect()"><!-- --></A><H3>
unselect</H3>
<PRE>
public void <B>unselect</B>()</PRE>
<DL>
<DD>Cancel the selected section.
<P>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="isSelected(int)"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>(int pageIndex)</PRE>
<DL>
<DD>Check if the page is in the selection.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageIndex</CODE> - The page index.<DT><B>Returns:</B><DD>True if this page is in the selection.</DL>
</DD>
</DL>
<HR>
<A NAME="isSelected(int, int)"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>(int pageIndex, int rowIndex)</PRE>
<DL>
<DD>Check if the page and row is in the selection.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageIndex</CODE> - The page index.<DD><CODE>rowIndex</CODE> - The row index.<DT><B>Returns:</B><DD>True if this row in this page is in the selection.</DL>
</DD>
</DL>
<HR>
<A NAME="isSelected(int, int, int)"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>(int pageIndex, int rowIndex, int columnIndex)</PRE>
<DL>
<DD>Check if the page and row and column is in the selection.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>pageIndex</CODE> - The page index.<DD><CODE>rowIndex</CODE> - The row index.<DD><CODE>columnIndex</CODE> - The column index.<DT><B>Returns:</B><DD>True if this row in this page is in the selection.</DL>
</DD>
</DL>
<HR>
<A NAME="isSelected(jexi.core.Paragraph)"><!-- --></A><H3>
isSelected</H3>
<PRE>
public boolean <B>isSelected</B>(<A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> p)</PRE>
<DL>
<DD>Check if the paragraph is in the selection.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>p</CODE> - The paragraph object.<DT><B>Returns:</B><DD>True if this paragraph is in the selection.</DL>
</DD>
</DL>
<HR>
<A NAME="getFirstSelectedParagraph()"><!-- --></A><H3>
getFirstSelectedParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>getFirstSelectedParagraph</B>()</PRE>
<DL>
<DD>Get the first paragarph that is in the selection. If no text is selected, null will be returned.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The first selected paragraph, or null if none selected.</DL>
</DD>
</DL>
<HR>
<A NAME="getFirstSelectedIndex()"><!-- --></A><H3>
getFirstSelectedIndex</H3>
<PRE>
public int <B>getFirstSelectedIndex</B>()</PRE>
<DL>
<DD>Get the first index of glyph in the first paragraph that is in the selection. If no text is selected, (-1) will be returned.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The first index of the glyph in the first paragraph, or (-1) if none selected.</DL>
</DD>
</DL>
<HR>
<A NAME="getLastSelectedIndex()"><!-- --></A><H3>
getLastSelectedIndex</H3>
<PRE>
public int <B>getLastSelectedIndex</B>()</PRE>
<DL>
<DD>Get the last index of glyph in the last paragraph that is in the selection. If no text is selected, (-1) will be returned. <br> <b>NOTE</b>: This index is not selected, the select range is [firstIndex, lastIndex).
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The last index of the glyph in the last paragraph, or (-1) if none selected.</DL>
</DD>
</DL>
<HR>
<A NAME="getLastSelectedParagraph()"><!-- --></A><H3>
getLastSelectedParagraph</H3>
<PRE>
public <A HREF="../../jexi/core/Paragraph.html" title="class in jexi.core">Paragraph</A> <B>getLastSelectedParagraph</B>()</PRE>
<DL>
<DD>Get the last paragarph that is in the selection. If no text is selected, null will be returned.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>The last selected paragraph, or null if none selected.</DL>
</DD>
</DL>
<HR>
<A NAME="debug()"><!-- --></A><H3>
debug</H3>
<PRE>
public void <B>debug</B>()</PRE>
<DL>
<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/Selection.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/Row.html" title="class in jexi.core"><B>PREV CLASS</B></A>
NEXT CLASS</FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="Selection.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 + -