PageRenderTime 49ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/org/gjt/sp/jedit/textarea/Selection.html

#
HTML | 523 lines | 455 code | 55 blank | 13 comment | 0 complexity | b291b79d81a0b03a51d79aeef10bff95 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:14:14 GMT-08:00 2008 -->
  6. <TITLE>
  7. Selection (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="org.gjt.sp.jedit.textarea.Selection class">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Selection.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/textarea/ScrollListener.html" title="interface in org.gjt.sp.jedit.textarea"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Range.html" title="class in org.gjt.sp.jedit.textarea"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../../../index.html?org/gjt/sp/jedit/textarea/Selection.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="Selection.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. org.gjt.sp.jedit.textarea</FONT>
  66. <BR>
  67. Class Selection</H2>
  68. <PRE>
  69. java.lang.Object
  70. <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.gjt.sp.jedit.textarea.Selection</B>
  71. </PRE>
  72. <DL>
  73. <DT><B>All Implemented Interfaces:</B> <DD>java.lang.Cloneable</DD>
  74. </DL>
  75. <DL>
  76. <DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Range.html" title="class in org.gjt.sp.jedit.textarea">Selection.Range</A>, <A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Rect.html" title="class in org.gjt.sp.jedit.textarea">Selection.Rect</A></DD>
  77. </DL>
  78. <HR>
  79. <DL>
  80. <DT><PRE>public abstract class <B>Selection</B><DT>extends java.lang.Object<DT>implements java.lang.Cloneable</DL>
  81. </PRE>
  82. <P>
  83. An abstract class that holds data on a region of selected text.
  84. As an abstract class, it cannot be used
  85. directly, but instead serves as a parent class for two specific types
  86. of selection structures:
  87. <ul>
  88. <li><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Range.html" title="class in org.gjt.sp.jedit.textarea"><CODE>Selection.Range</CODE></A> - represents an ordinary range of selected text.</li>
  89. <li><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Rect.html" title="class in org.gjt.sp.jedit.textarea"><CODE>Selection.Rect</CODE></A> - represents a rectangular selection.</li>
  90. </ul>
  91. <P>
  92. <P>
  93. <DL>
  94. <DT><B>Since:</B></DT>
  95. <DD>jEdit 3.2pre1</DD>
  96. </DL>
  97. <HR>
  98. <P>
  99. <!-- ======== NESTED CLASS SUMMARY ======== -->
  100. <A NAME="nested_class_summary"><!-- --></A>
  101. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  102. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  103. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  104. <B>Nested Class Summary</B></FONT></TH>
  105. </TR>
  106. <TR BGCOLOR="white" CLASS="TableRowColor">
  107. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  108. <CODE>static&nbsp;class</CODE></FONT></TD>
  109. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Range.html" title="class in org.gjt.sp.jedit.textarea">Selection.Range</A></B></CODE>
  110. <BR>
  111. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An ordinary range selection.</TD>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  115. <CODE>static&nbsp;class</CODE></FONT></TD>
  116. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Rect.html" title="class in org.gjt.sp.jedit.textarea">Selection.Rect</A></B></CODE>
  117. <BR>
  118. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A rectangular selection.</TD>
  119. </TR>
  120. </TABLE>
  121. &nbsp;
  122. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  123. <A NAME="constructor_summary"><!-- --></A>
  124. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  125. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  126. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  127. <B>Constructor Summary</B></FONT></TH>
  128. </TR>
  129. <TR BGCOLOR="white" CLASS="TableRowColor">
  130. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  131. <CODE>protected </CODE></FONT></TD>
  132. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#Selection()">Selection</A></B>()</CODE>
  133. <BR>
  134. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  135. </TR>
  136. <TR BGCOLOR="white" CLASS="TableRowColor">
  137. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  138. <CODE>protected </CODE></FONT></TD>
  139. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#Selection(int, int)">Selection</A></B>(int&nbsp;start,
  140. int&nbsp;end)</CODE>
  141. <BR>
  142. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  143. </TR>
  144. <TR BGCOLOR="white" CLASS="TableRowColor">
  145. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  146. <CODE>protected </CODE></FONT></TD>
  147. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#Selection(org.gjt.sp.jedit.textarea.Selection)">Selection</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html" title="class in org.gjt.sp.jedit.textarea">Selection</A>&nbsp;sel)</CODE>
  148. <BR>
  149. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  150. </TR>
  151. </TABLE>
  152. &nbsp;
  153. <!-- ========== METHOD SUMMARY =========== -->
  154. <A NAME="method_summary"><!-- --></A>
  155. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  156. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  157. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  158. <B>Method Summary</B></FONT></TH>
  159. </TR>
  160. <TR BGCOLOR="white" CLASS="TableRowColor">
  161. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  162. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  163. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#clone()">clone</A></B>()</CODE>
  164. <BR>
  165. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  166. </TR>
  167. <TR BGCOLOR="white" CLASS="TableRowColor">
  168. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  169. <CODE>&nbsp;int</CODE></FONT></TD>
  170. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#getEnd()">getEnd</A></B>()</CODE>
  171. <BR>
  172. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the end offset of this selection.</TD>
  173. </TR>
  174. <TR BGCOLOR="white" CLASS="TableRowColor">
  175. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  176. <CODE>abstract &nbsp;int</CODE></FONT></TD>
  177. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#getEnd(org.gjt.sp.jedit.buffer.JEditBuffer, int)">getEnd</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
  178. int&nbsp;line)</CODE>
  179. <BR>
  180. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the end of the portion of the selection
  181. falling on the specified line.</TD>
  182. </TR>
  183. <TR BGCOLOR="white" CLASS="TableRowColor">
  184. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  185. <CODE>&nbsp;int</CODE></FONT></TD>
  186. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#getEndLine()">getEndLine</A></B>()</CODE>
  187. <BR>
  188. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the ending line number of this selection.</TD>
  189. </TR>
  190. <TR BGCOLOR="white" CLASS="TableRowColor">
  191. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  192. <CODE>&nbsp;int</CODE></FONT></TD>
  193. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#getStart()">getStart</A></B>()</CODE>
  194. <BR>
  195. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the start offset of this selection.</TD>
  196. </TR>
  197. <TR BGCOLOR="white" CLASS="TableRowColor">
  198. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  199. <CODE>abstract &nbsp;int</CODE></FONT></TD>
  200. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#getStart(org.gjt.sp.jedit.buffer.JEditBuffer, int)">getStart</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
  201. int&nbsp;line)</CODE>
  202. <BR>
  203. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the beginning of the portion of the selection
  204. falling on the specified line.</TD>
  205. </TR>
  206. <TR BGCOLOR="white" CLASS="TableRowColor">
  207. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  208. <CODE>&nbsp;int</CODE></FONT></TD>
  209. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#getStartLine()">getStartLine</A></B>()</CODE>
  210. <BR>
  211. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the starting line number of this selection.</TD>
  212. </TR>
  213. <TR BGCOLOR="white" CLASS="TableRowColor">
  214. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  215. <CODE>&nbsp;boolean</CODE></FONT></TD>
  216. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#overlaps(org.gjt.sp.jedit.textarea.Selection)">overlaps</A></B>(<A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html" title="class in org.gjt.sp.jedit.textarea">Selection</A>&nbsp;s)</CODE>
  217. <BR>
  218. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns if this selection and the specified selection overlap.</TD>
  219. </TR>
  220. <TR BGCOLOR="white" CLASS="TableRowColor">
  221. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  222. <CODE>&nbsp;java.lang.String</CODE></FONT></TD>
  223. <TD><CODE><B><A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html#toString()">toString</A></B>()</CODE>
  224. <BR>
  225. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  226. </TR>
  227. </TABLE>
  228. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  229. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  230. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  231. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  232. </TR>
  233. <TR BGCOLOR="white" CLASS="TableRowColor">
  234. <TD><CODE>equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
  235. </TR>
  236. </TABLE>
  237. &nbsp;
  238. <P>
  239. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  240. <A NAME="constructor_detail"><!-- --></A>
  241. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  242. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  243. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  244. <B>Constructor Detail</B></FONT></TH>
  245. </TR>
  246. </TABLE>
  247. <A NAME="Selection()"><!-- --></A><H3>
  248. Selection</H3>
  249. <PRE>
  250. protected <B>Selection</B>()</PRE>
  251. <DL>
  252. </DL>
  253. <HR>
  254. <A NAME="Selection(org.gjt.sp.jedit.textarea.Selection)"><!-- --></A><H3>
  255. Selection</H3>
  256. <PRE>
  257. protected <B>Selection</B>(<A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html" title="class in org.gjt.sp.jedit.textarea">Selection</A>&nbsp;sel)</PRE>
  258. <DL>
  259. </DL>
  260. <HR>
  261. <A NAME="Selection(int, int)"><!-- --></A><H3>
  262. Selection</H3>
  263. <PRE>
  264. protected <B>Selection</B>(int&nbsp;start,
  265. int&nbsp;end)</PRE>
  266. <DL>
  267. </DL>
  268. <!-- ============ METHOD DETAIL ========== -->
  269. <A NAME="method_detail"><!-- --></A>
  270. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  271. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  272. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  273. <B>Method Detail</B></FONT></TH>
  274. </TR>
  275. </TABLE>
  276. <A NAME="getStart()"><!-- --></A><H3>
  277. getStart</H3>
  278. <PRE>
  279. public int <B>getStart</B>()</PRE>
  280. <DL>
  281. <DD>Returns the start offset of this selection.
  282. <P>
  283. <DD><DL>
  284. </DL>
  285. </DD>
  286. <DD><DL>
  287. </DL>
  288. </DD>
  289. </DL>
  290. <HR>
  291. <A NAME="getEnd()"><!-- --></A><H3>
  292. getEnd</H3>
  293. <PRE>
  294. public int <B>getEnd</B>()</PRE>
  295. <DL>
  296. <DD>Returns the end offset of this selection.
  297. <P>
  298. <DD><DL>
  299. </DL>
  300. </DD>
  301. <DD><DL>
  302. </DL>
  303. </DD>
  304. </DL>
  305. <HR>
  306. <A NAME="getStart(org.gjt.sp.jedit.buffer.JEditBuffer, int)"><!-- --></A><H3>
  307. getStart</H3>
  308. <PRE>
  309. public abstract int <B>getStart</B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
  310. int&nbsp;line)</PRE>
  311. <DL>
  312. <DD>Returns the beginning of the portion of the selection
  313. falling on the specified line. Used to manipulate
  314. selection text on a line-by-line basis.
  315. <P>
  316. <DD><DL>
  317. </DL>
  318. </DD>
  319. <DD><DL>
  320. <DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The buffer<DD><CODE>line</CODE> - The line number<DT><B>Since:</B></DT>
  321. <DD>jEdit 4.1pre1</DD>
  322. </DL>
  323. </DD>
  324. </DL>
  325. <HR>
  326. <A NAME="getEnd(org.gjt.sp.jedit.buffer.JEditBuffer, int)"><!-- --></A><H3>
  327. getEnd</H3>
  328. <PRE>
  329. public abstract int <B>getEnd</B>(<A HREF="../../../../../org/gjt/sp/jedit/buffer/JEditBuffer.html" title="class in org.gjt.sp.jedit.buffer">JEditBuffer</A>&nbsp;buffer,
  330. int&nbsp;line)</PRE>
  331. <DL>
  332. <DD>Returns the end of the portion of the selection
  333. falling on the specified line. Used to manipulate
  334. selection text on a line-by-line basis.
  335. <P>
  336. <DD><DL>
  337. </DL>
  338. </DD>
  339. <DD><DL>
  340. <DT><B>Parameters:</B><DD><CODE>buffer</CODE> - The buffer<DD><CODE>line</CODE> - The line number<DT><B>Since:</B></DT>
  341. <DD>jEdit 4.1pre1</DD>
  342. </DL>
  343. </DD>
  344. </DL>
  345. <HR>
  346. <A NAME="getStartLine()"><!-- --></A><H3>
  347. getStartLine</H3>
  348. <PRE>
  349. public int <B>getStartLine</B>()</PRE>
  350. <DL>
  351. <DD>Returns the starting line number of this selection.
  352. <P>
  353. <DD><DL>
  354. </DL>
  355. </DD>
  356. <DD><DL>
  357. </DL>
  358. </DD>
  359. </DL>
  360. <HR>
  361. <A NAME="getEndLine()"><!-- --></A><H3>
  362. getEndLine</H3>
  363. <PRE>
  364. public int <B>getEndLine</B>()</PRE>
  365. <DL>
  366. <DD>Returns the ending line number of this selection.
  367. <P>
  368. <DD><DL>
  369. </DL>
  370. </DD>
  371. <DD><DL>
  372. </DL>
  373. </DD>
  374. </DL>
  375. <HR>
  376. <A NAME="overlaps(org.gjt.sp.jedit.textarea.Selection)"><!-- --></A><H3>
  377. overlaps</H3>
  378. <PRE>
  379. public boolean <B>overlaps</B>(<A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.html" title="class in org.gjt.sp.jedit.textarea">Selection</A>&nbsp;s)</PRE>
  380. <DL>
  381. <DD>Returns if this selection and the specified selection overlap.
  382. <P>
  383. <DD><DL>
  384. </DL>
  385. </DD>
  386. <DD><DL>
  387. <DT><B>Parameters:</B><DD><CODE>s</CODE> - The other selection<DT><B>Since:</B></DT>
  388. <DD>jEdit 4.1pre1</DD>
  389. </DL>
  390. </DD>
  391. </DL>
  392. <HR>
  393. <A NAME="toString()"><!-- --></A><H3>
  394. toString</H3>
  395. <PRE>
  396. public java.lang.String <B>toString</B>()</PRE>
  397. <DL>
  398. <DD><DL>
  399. <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL>
  400. </DD>
  401. <DD><DL>
  402. </DL>
  403. </DD>
  404. </DL>
  405. <HR>
  406. <A NAME="clone()"><!-- --></A><H3>
  407. clone</H3>
  408. <PRE>
  409. public java.lang.Object <B>clone</B>()</PRE>
  410. <DL>
  411. <DD><DL>
  412. <DT><B>Overrides:</B><DD><CODE>clone</CODE> in class <CODE>java.lang.Object</CODE></DL>
  413. </DD>
  414. <DD><DL>
  415. </DL>
  416. </DD>
  417. </DL>
  418. <!-- ========= END OF CLASS DATA ========= -->
  419. <HR>
  420. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  421. <A NAME="navbar_bottom"><!-- --></A>
  422. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  423. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  424. <TR>
  425. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  426. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  427. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  428. <TR ALIGN="center" VALIGN="top">
  429. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  430. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  431. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  432. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Selection.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  433. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  434. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  435. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  436. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  437. </TR>
  438. </TABLE>
  439. </TD>
  440. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  441. </EM>
  442. </TD>
  443. </TR>
  444. <TR>
  445. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  446. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/textarea/ScrollListener.html" title="interface in org.gjt.sp.jedit.textarea"><B>PREV CLASS</B></A>&nbsp;
  447. &nbsp;<A HREF="../../../../../org/gjt/sp/jedit/textarea/Selection.Range.html" title="class in org.gjt.sp.jedit.textarea"><B>NEXT CLASS</B></A></FONT></TD>
  448. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  449. <A HREF="../../../../../index.html?org/gjt/sp/jedit/textarea/Selection.html" target="_top"><B>FRAMES</B></A> &nbsp;
  450. &nbsp;<A HREF="Selection.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  451. &nbsp;
  452. <NOSCRIPT>
  453. <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
  454. </NOSCRIPT>
  455. </FONT></TD>
  456. </TR>
  457. <TR>
  458. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  459. SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  460. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  461. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  462. </TR>
  463. </TABLE>
  464. <A NAME="skip-navbar_bottom"></A>
  465. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  466. <HR>
  467. </BODY>
  468. </HTML>