/usr/share/doc/librsyntaxtextarea-java/api/org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html is in librsyntaxtextarea-java-doc 2.5.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_25) on Sun Oct 20 20:34:47 UTC 2013 -->
<title>RSyntaxDocument (RSyntaxTextArea API)</title>
<meta name="date" content="2013-10-20">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="RSyntaxDocument (RSyntaxTextArea API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/fife/ui/rsyntaxtextarea/PopupWindowDecorator.html" title="class in org.fife.ui.rsyntaxtextarea"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxTextArea.html" title="class in org.fife.ui.rsyntaxtextarea"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html" target="_top">Frames</a></li>
<li><a href="RSyntaxDocument.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_classes_inherited_from_class_javax.swing.text.AbstractDocument">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.fife.ui.rsyntaxtextarea</div>
<h2 title="Class RSyntaxDocument" class="title">Class RSyntaxDocument</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
<li>
<ul class="inheritance">
<li><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true" title="class or interface in javax.swing.text">javax.swing.text.AbstractDocument</a></li>
<li>
<ul class="inheritance">
<li><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true" title="class or interface in javax.swing.text">javax.swing.text.PlainDocument</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../org/fife/ui/rtextarea/RDocument.html" title="class in org.fife.ui.rtextarea">org.fife.ui.rtextarea.RDocument</a></li>
<li>
<ul class="inheritance">
<li>org.fife.ui.rsyntaxtextarea.RSyntaxDocument</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><a href="file:///usr/share/doc/default-jdk-doc/api/java/io/Serializable.html?is-external=true" title="class or interface in java.io">Serializable</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/Document.html?is-external=true" title="class or interface in javax.swing.text">Document</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html" title="interface in org.fife.ui.rsyntaxtextarea">SyntaxConstants</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">RSyntaxDocument</span>
extends <a href="../../../../org/fife/ui/rtextarea/RDocument.html" title="class in org.fife.ui.rtextarea">RDocument</a>
implements <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html" title="interface in org.fife.ui.rsyntaxtextarea">SyntaxConstants</a></pre>
<div class="block">The document used by <a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxTextArea.html" title="class in org.fife.ui.rsyntaxtextarea"><code>RSyntaxTextArea</code></a>.
This document is like <code>javax.swing.text.PlainDocument</code> except that
it also keeps track of syntax highlighting in the document. It has a "style"
attribute associated with it that determines how syntax highlighting is done
(i.e., what language is being highlighted).<p>
Instances of <code>RSyntaxTextArea</code> will only accept instances of
<code>RSyntaxDocument</code>, since it is this document that keeps
track of syntax highlighting. All others will cause an exception to be
thrown.<p>
To change the language being syntax highlighted at any time, you merely have
to call <a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#setSyntaxStyle(java.lang.String)"><code>setSyntaxStyle(java.lang.String)</code></a>. Other than that, this document can be
treated like any other save one caveat: all <code>DocumentEvent</code>s of
type <code>CHANGE</code> use their offset and length values to represent the
first and last lines, respectively, that have had their syntax coloring
change. This is really a hack to increase the speed of the painting code
and should really be corrected, but oh well.</div>
<dl><dt><span class="strong">Version:</span></dt>
<dd>1.0</dd>
<dt><span class="strong">Author:</span></dt>
<dd>Robert Futrell</dd>
<dt><span class="strong">See Also:</span></dt><dd><a href="../../../../serialized-form.html#org.fife.ui.rsyntaxtextarea.RSyntaxDocument">Serialized Form</a></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested_class_summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="nested_classes_inherited_from_class_javax.swing.text.AbstractDocument">
<!-- -->
</a>
<h3>Nested classes/interfaces inherited from class javax.swing.text.<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.AbstractElement.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.AbstractElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.AttributeContext.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.AttributeContext</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.BranchElement.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.BranchElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.Content.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.Content</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.DefaultDocumentEvent.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.DefaultDocumentEvent</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.ElementEdit.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.ElementEdit</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.LeafElement.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument.LeafElement</a></code></li>
</ul>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../org/fife/util/DynamicIntArray.html" title="class in org.fife.util">DynamicIntArray</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#lastTokensOnLines">lastTokensOnLines</a></strong></code>
<div class="block">Array of values representing the "last token type" on each line.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_javax.swing.text.PlainDocument">
<!-- -->
</a>
<h3>Fields inherited from class javax.swing.text.<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true" title="class or interface in javax.swing.text">PlainDocument</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#lineLimitAttribute" title="class or interface in javax.swing.text">lineLimitAttribute</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#tabSizeAttribute" title="class or interface in javax.swing.text">tabSizeAttribute</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_javax.swing.text.AbstractDocument">
<!-- -->
</a>
<h3>Fields inherited from class javax.swing.text.<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#BAD_LOCATION" title="class or interface in javax.swing.text">BAD_LOCATION</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#BidiElementName" title="class or interface in javax.swing.text">BidiElementName</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#ContentElementName" title="class or interface in javax.swing.text">ContentElementName</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#ElementNameAttribute" title="class or interface in javax.swing.text">ElementNameAttribute</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#listenerList" title="class or interface in javax.swing.text">listenerList</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#ParagraphElementName" title="class or interface in javax.swing.text">ParagraphElementName</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#SectionElementName" title="class or interface in javax.swing.text">SectionElementName</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.fife.ui.rsyntaxtextarea.SyntaxConstants">
<!-- -->
</a>
<h3>Fields inherited from interface org.fife.ui.rsyntaxtextarea.<a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html" title="interface in org.fife.ui.rsyntaxtextarea">SyntaxConstants</a></h3>
<code><a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_ACTIONSCRIPT">SYNTAX_STYLE_ACTIONSCRIPT</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_ASSEMBLER_X86">SYNTAX_STYLE_ASSEMBLER_X86</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_BBCODE">SYNTAX_STYLE_BBCODE</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_C">SYNTAX_STYLE_C</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_CLOJURE">SYNTAX_STYLE_CLOJURE</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_CPLUSPLUS">SYNTAX_STYLE_CPLUSPLUS</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_CSHARP">SYNTAX_STYLE_CSHARP</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_CSS">SYNTAX_STYLE_CSS</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_DELPHI">SYNTAX_STYLE_DELPHI</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_DTD">SYNTAX_STYLE_DTD</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_FORTRAN">SYNTAX_STYLE_FORTRAN</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_GROOVY">SYNTAX_STYLE_GROOVY</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_HTACCESS">SYNTAX_STYLE_HTACCESS</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_HTML">SYNTAX_STYLE_HTML</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_JAVA">SYNTAX_STYLE_JAVA</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_JAVASCRIPT">SYNTAX_STYLE_JAVASCRIPT</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_JSON">SYNTAX_STYLE_JSON</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_JSP">SYNTAX_STYLE_JSP</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_LATEX">SYNTAX_STYLE_LATEX</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_LISP">SYNTAX_STYLE_LISP</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_LUA">SYNTAX_STYLE_LUA</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_MAKEFILE">SYNTAX_STYLE_MAKEFILE</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_MXML">SYNTAX_STYLE_MXML</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_NONE">SYNTAX_STYLE_NONE</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_NSIS">SYNTAX_STYLE_NSIS</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_PERL">SYNTAX_STYLE_PERL</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_PHP">SYNTAX_STYLE_PHP</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_PROPERTIES_FILE">SYNTAX_STYLE_PROPERTIES_FILE</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_PYTHON">SYNTAX_STYLE_PYTHON</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_RUBY">SYNTAX_STYLE_RUBY</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_SAS">SYNTAX_STYLE_SAS</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_SCALA">SYNTAX_STYLE_SCALA</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_SQL">SYNTAX_STYLE_SQL</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_TCL">SYNTAX_STYLE_TCL</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_UNIX_SHELL">SYNTAX_STYLE_UNIX_SHELL</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_VISUAL_BASIC">SYNTAX_STYLE_VISUAL_BASIC</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_WINDOWS_BATCH">SYNTAX_STYLE_WINDOWS_BATCH</a>, <a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_XML">SYNTAX_STYLE_XML</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_javax.swing.text.Document">
<!-- -->
</a>
<h3>Fields inherited from interface javax.swing.text.<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/Document.html?is-external=true" title="class or interface in javax.swing.text">Document</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/Document.html?is-external=true#StreamDescriptionProperty" title="class or interface in javax.swing.text">StreamDescriptionProperty</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/Document.html?is-external=true#TitleProperty" title="class or interface in javax.swing.text">TitleProperty</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#RSyntaxDocument(java.lang.String)">RSyntaxDocument</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> syntaxStyle)</code>
<div class="block">Constructs a plain text document.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#RSyntaxDocument(org.fife.ui.rsyntaxtextarea.TokenMakerFactory, java.lang.String)">RSyntaxDocument</a></strong>(<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMakerFactory.html" title="class in org.fife.ui.rsyntaxtextarea">TokenMakerFactory</a> tmf,
<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> syntaxStyle)</code>
<div class="block">Constructs a plain text document.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#fireInsertUpdate(javax.swing.event.DocumentEvent)">fireInsertUpdate</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/event/DocumentEvent.html?is-external=true" title="class or interface in javax.swing.event">DocumentEvent</a> e)</code>
<div class="block">Alerts all listeners to this document of an insertion.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#fireRemoveUpdate(javax.swing.event.DocumentEvent)">fireRemoveUpdate</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/event/DocumentEvent.html?is-external=true" title="class or interface in javax.swing.event">DocumentEvent</a> chng)</code>
<div class="block">This method is called AFTER the content has been inserted into the
document and the element structure has been updated.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getClosestStandardTokenTypeForInternalType(int)">getClosestStandardTokenTypeForInternalType</a></strong>(int type)</code>
<div class="block">Returns the closest <a href="../../../../org/fife/ui/rsyntaxtextarea/TokenTypes.html" title="interface in org.fife.ui.rsyntaxtextarea"><code>"standard" token type</code></a> for a given
"internal" token type (e.g. one whose value is <code>< 0</code>).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getCompleteMarkupCloseTags()">getCompleteMarkupCloseTags</a></strong>()</code>
<div class="block">Returns whether closing markup tags should be automatically completed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getCurlyBracesDenoteCodeBlocks()">getCurlyBracesDenoteCodeBlocks</a></strong>()</code>
<div class="block">Returns whether the current programming language uses curly braces
('<tt>{</tt>' and '<tt>}</tt>') to denote code blocks.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getLanguageIsMarkup()">getLanguageIsMarkup</a></strong>()</code>
<div class="block">Returns whether the current language is a markup language, such as
HTML, XML or PHP.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getLastTokenTypeOnLine(int)">getLastTokenTypeOnLine</a></strong>(int line)</code>
<div class="block">Returns the token type of the last token on the given line.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[]</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getLineCommentStartAndEnd()">getLineCommentStartAndEnd</a></strong>()</code>
<div class="block">Returns the text to place at the beginning and end of a
line to "comment" it in the current programming language.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getShouldIndentNextLine(int)">getShouldIndentNextLine</a></strong>(int line)</code>
<div class="block">This method returns whether auto indentation should be done if Enter
is pressed at the end of the specified line.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../org/fife/ui/rsyntaxtextarea/Token.html" title="interface in org.fife.ui.rsyntaxtextarea">Token</a></code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getTokenListForLine(int)">getTokenListForLine</a></strong>(int line)</code>
<div class="block">Returns a token list for the specified segment of text representing
the specified line number.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#setSyntaxStyle(java.lang.String)">setSyntaxStyle</a></strong>(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> styleKey)</code>
<div class="block">Sets the syntax style being used for syntax highlighting in this
document.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#setSyntaxStyle(org.fife.ui.rsyntaxtextarea.TokenMaker)">setSyntaxStyle</a></strong>(<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMaker.html" title="interface in org.fife.ui.rsyntaxtextarea">TokenMaker</a> tokenMaker)</code>
<div class="block">Sets the syntax style being used for syntax highlighting in this
document.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#setTokenMakerFactory(org.fife.ui.rsyntaxtextarea.TokenMakerFactory)">setTokenMakerFactory</a></strong>(<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMakerFactory.html" title="class in org.fife.ui.rsyntaxtextarea">TokenMakerFactory</a> tmf)</code>
<div class="block">Sets the token maker factory used by this document.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#updateSyntaxHighlightingInformation()">updateSyntaxHighlightingInformation</a></strong>()</code>
<div class="block">Updates internal state information; e.g. the "last tokens on lines"
data.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.fife.ui.rtextarea.RDocument">
<!-- -->
</a>
<h3>Methods inherited from class org.fife.ui.rtextarea.<a href="../../../../org/fife/ui/rtextarea/RDocument.html" title="class in org.fife.ui.rtextarea">RDocument</a></h3>
<code><a href="../../../../org/fife/ui/rtextarea/RDocument.html#charAt(int)">charAt</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_javax.swing.text.PlainDocument">
<!-- -->
</a>
<h3>Methods inherited from class javax.swing.text.<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true" title="class or interface in javax.swing.text">PlainDocument</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#createDefaultRoot()" title="class or interface in javax.swing.text">createDefaultRoot</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#getDefaultRootElement()" title="class or interface in javax.swing.text">getDefaultRootElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#getParagraphElement(int)" title="class or interface in javax.swing.text">getParagraphElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#insertString(int, java.lang.String, javax.swing.text.AttributeSet)" title="class or interface in javax.swing.text">insertString</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AttributeSet)" title="class or interface in javax.swing.text">insertUpdate</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#removeUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)" title="class or interface in javax.swing.text">removeUpdate</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_javax.swing.text.AbstractDocument">
<!-- -->
</a>
<h3>Methods inherited from class javax.swing.text.<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#addDocumentListener(javax.swing.event.DocumentListener)" title="class or interface in javax.swing.text">addDocumentListener</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#addUndoableEditListener(javax.swing.event.UndoableEditListener)" title="class or interface in javax.swing.text">addUndoableEditListener</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#createBranchElement(javax.swing.text.Element, javax.swing.text.AttributeSet)" title="class or interface in javax.swing.text">createBranchElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)" title="class or interface in javax.swing.text">createLeafElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#createPosition(int)" title="class or interface in javax.swing.text">createPosition</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#dump(java.io.PrintStream)" title="class or interface in javax.swing.text">dump</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#fireChangedUpdate(javax.swing.event.DocumentEvent)" title="class or interface in javax.swing.text">fireChangedUpdate</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#fireUndoableEditUpdate(javax.swing.event.UndoableEditEvent)" title="class or interface in javax.swing.text">fireUndoableEditUpdate</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getAsynchronousLoadPriority()" title="class or interface in javax.swing.text">getAsynchronousLoadPriority</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getAttributeContext()" title="class or interface in javax.swing.text">getAttributeContext</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getBidiRootElement()" title="class or interface in javax.swing.text">getBidiRootElement</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getContent()" title="class or interface in javax.swing.text">getContent</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getCurrentWriter()" title="class or interface in javax.swing.text">getCurrentWriter</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getDocumentFilter()" title="class or interface in javax.swing.text">getDocumentFilter</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getDocumentListeners()" title="class or interface in javax.swing.text">getDocumentListeners</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getDocumentProperties()" title="class or interface in javax.swing.text">getDocumentProperties</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getEndPosition()" title="class or interface in javax.swing.text">getEndPosition</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getLength()" title="class or interface in javax.swing.text">getLength</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getListeners(java.lang.Class)" title="class or interface in javax.swing.text">getListeners</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getProperty(java.lang.Object)" title="class or interface in javax.swing.text">getProperty</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getRootElements()" title="class or interface in javax.swing.text">getRootElements</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getStartPosition()" title="class or interface in javax.swing.text">getStartPosition</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getText(int, int)" title="class or interface in javax.swing.text">getText</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getText(int, int, javax.swing.text.Segment)" title="class or interface in javax.swing.text">getText</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#getUndoableEditListeners()" title="class or interface in javax.swing.text">getUndoableEditListeners</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#postRemoveUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)" title="class or interface in javax.swing.text">postRemoveUpdate</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#putProperty(java.lang.Object, java.lang.Object)" title="class or interface in javax.swing.text">putProperty</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#readLock()" title="class or interface in javax.swing.text">readLock</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#readUnlock()" title="class or interface in javax.swing.text">readUnlock</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#remove(int, int)" title="class or interface in javax.swing.text">remove</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#removeDocumentListener(javax.swing.event.DocumentListener)" title="class or interface in javax.swing.text">removeDocumentListener</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#removeUndoableEditListener(javax.swing.event.UndoableEditListener)" title="class or interface in javax.swing.text">removeUndoableEditListener</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#render(java.lang.Runnable)" title="class or interface in javax.swing.text">render</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#replace(int, int, java.lang.String, javax.swing.text.AttributeSet)" title="class or interface in javax.swing.text">replace</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#setAsynchronousLoadPriority(int)" title="class or interface in javax.swing.text">setAsynchronousLoadPriority</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#setDocumentFilter(javax.swing.text.DocumentFilter)" title="class or interface in javax.swing.text">setDocumentFilter</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#setDocumentProperties(java.util.Dictionary)" title="class or interface in javax.swing.text">setDocumentProperties</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#writeLock()" title="class or interface in javax.swing.text">writeLock</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#writeUnlock()" title="class or interface in javax.swing.text">writeUnlock</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class java.lang.<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
<code><a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</a>, <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</a></code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="lastTokensOnLines">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>lastTokensOnLines</h4>
<pre>protected transient <a href="../../../../org/fife/util/DynamicIntArray.html" title="class in org.fife.util">DynamicIntArray</a> lastTokensOnLines</pre>
<div class="block">Array of values representing the "last token type" on each line. This
is used in cases such as multi-line comments: if the previous line
ended with an (unclosed) multi-line comment, we can use this knowledge
and start the current line's syntax highlighting in multi-line comment
state.</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="RSyntaxDocument(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>RSyntaxDocument</h4>
<pre>public RSyntaxDocument(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> syntaxStyle)</pre>
<div class="block">Constructs a plain text document. A default root element is created,
and the tab size set to 5.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>syntaxStyle</code> - The syntax highlighting scheme to use.</dd></dl>
</li>
</ul>
<a name="RSyntaxDocument(org.fife.ui.rsyntaxtextarea.TokenMakerFactory, java.lang.String)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>RSyntaxDocument</h4>
<pre>public RSyntaxDocument(<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMakerFactory.html" title="class in org.fife.ui.rsyntaxtextarea">TokenMakerFactory</a> tmf,
<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> syntaxStyle)</pre>
<div class="block">Constructs a plain text document. A default root element is created,
and the tab size set to 5.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tmf</code> - The <code>TokenMakerFactory</code> for this document. If
this is <code>null</code>, a default factory is used.</dd><dd><code>syntaxStyle</code> - The syntax highlighting scheme to use.</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="fireInsertUpdate(javax.swing.event.DocumentEvent)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireInsertUpdate</h4>
<pre>protected void fireInsertUpdate(<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/event/DocumentEvent.html?is-external=true" title="class or interface in javax.swing.event">DocumentEvent</a> e)</pre>
<div class="block">Alerts all listeners to this document of an insertion. This is
overridden so we can update our syntax highlighting stuff.<p>
The syntax highlighting stuff has to be here instead of in
<code>insertUpdate</code> because <code>insertUpdate</code> is not
called by the undo/redo actions, but this method is.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#fireInsertUpdate(javax.swing.event.DocumentEvent)" title="class or interface in javax.swing.text">fireInsertUpdate</a></code> in class <code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>e</code> - The change.</dd></dl>
</li>
</ul>
<a name="fireRemoveUpdate(javax.swing.event.DocumentEvent)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>fireRemoveUpdate</h4>
<pre>protected void fireRemoveUpdate(<a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/event/DocumentEvent.html?is-external=true" title="class or interface in javax.swing.event">DocumentEvent</a> chng)</pre>
<div class="block">This method is called AFTER the content has been inserted into the
document and the element structure has been updated.<p>
The syntax-highlighting updates need to be done here (as opposed to
an override of <code>postRemoveUpdate</code>) as this method is called
in response to undo/redo events, whereas <code>postRemoveUpdate</code>
is not.<p>
Now that the text is actually inserted into the content and element
structure, we can update our token elements and "last tokens on
lines" structure.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true#fireRemoveUpdate(javax.swing.event.DocumentEvent)" title="class or interface in javax.swing.text">fireRemoveUpdate</a></code> in class <code><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/AbstractDocument.html?is-external=true" title="class or interface in javax.swing.text">AbstractDocument</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>chng</code> - The change that occurred.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="file:///usr/share/doc/default-jdk-doc/api/javax/swing/text/PlainDocument.html?is-external=true#removeUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)" title="class or interface in javax.swing.text"><code>PlainDocument.removeUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent)</code></a></dd></dl>
</li>
</ul>
<a name="getClosestStandardTokenTypeForInternalType(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getClosestStandardTokenTypeForInternalType</h4>
<pre>public int getClosestStandardTokenTypeForInternalType(int type)</pre>
<div class="block">Returns the closest <a href="../../../../org/fife/ui/rsyntaxtextarea/TokenTypes.html" title="interface in org.fife.ui.rsyntaxtextarea"><code>"standard" token type</code></a> for a given
"internal" token type (e.g. one whose value is <code>< 0</code>).</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>type</code> - The token type.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The closest "standard" token type. If a mapping is not defined
for this language, then <code>type</code> is returned.</dd></dl>
</li>
</ul>
<a name="getCompleteMarkupCloseTags()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCompleteMarkupCloseTags</h4>
<pre>public boolean getCompleteMarkupCloseTags()</pre>
<div class="block">Returns whether closing markup tags should be automatically completed.
This method only returns <code>true</code> if
<a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getLanguageIsMarkup()"><code>getLanguageIsMarkup()</code></a> also returns <code>true</code>.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether markup closing tags should be automatically completed.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#getLanguageIsMarkup()"><code>getLanguageIsMarkup()</code></a></dd></dl>
</li>
</ul>
<a name="getCurlyBracesDenoteCodeBlocks()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurlyBracesDenoteCodeBlocks</h4>
<pre>public boolean getCurlyBracesDenoteCodeBlocks()</pre>
<div class="block">Returns whether the current programming language uses curly braces
('<tt>{</tt>' and '<tt>}</tt>') to denote code blocks.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether curly braces denote code blocks.</dd></dl>
</li>
</ul>
<a name="getLanguageIsMarkup()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLanguageIsMarkup</h4>
<pre>public boolean getLanguageIsMarkup()</pre>
<div class="block">Returns whether the current language is a markup language, such as
HTML, XML or PHP.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>Whether the current language is a markup language.</dd></dl>
</li>
</ul>
<a name="getLastTokenTypeOnLine(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLastTokenTypeOnLine</h4>
<pre>public int getLastTokenTypeOnLine(int line)</pre>
<div class="block">Returns the token type of the last token on the given line.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>line</code> - The line to inspect.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The token type of the last token on the specified line. If
the line is invalid, an exception is thrown.</dd></dl>
</li>
</ul>
<a name="getLineCommentStartAndEnd()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getLineCommentStartAndEnd</h4>
<pre>public <a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a>[] getLineCommentStartAndEnd()</pre>
<div class="block">Returns the text to place at the beginning and end of a
line to "comment" it in the current programming language.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>The start and end strings to add to a line to "comment"
it out. A <code>null</code> value for either means there
is no string to add for that part. A value of
<code>null</code> for the array means this language
does not support commenting/uncommenting lines.</dd></dl>
</li>
</ul>
<a name="getShouldIndentNextLine(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShouldIndentNextLine</h4>
<pre>public boolean getShouldIndentNextLine(int line)</pre>
<div class="block">This method returns whether auto indentation should be done if Enter
is pressed at the end of the specified line.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>line</code> - The line to check.</dd>
<dt><span class="strong">Returns:</span></dt><dd>Whether an extra indentation should be done.</dd></dl>
</li>
</ul>
<a name="getTokenListForLine(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTokenListForLine</h4>
<pre>public final <a href="../../../../org/fife/ui/rsyntaxtextarea/Token.html" title="interface in org.fife.ui.rsyntaxtextarea">Token</a> getTokenListForLine(int line)</pre>
<div class="block">Returns a token list for the specified segment of text representing
the specified line number. This method is basically a wrapper for
<code>tokenMaker.getTokenList</code> that takes into account the last
token on the previous line to assure token accuracy.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>line</code> - The line number of <code>text</code> in the document, >= 0.</dd>
<dt><span class="strong">Returns:</span></dt><dd>A token list representing the specified line.</dd></dl>
</li>
</ul>
<a name="setSyntaxStyle(java.lang.String)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSyntaxStyle</h4>
<pre>public void setSyntaxStyle(<a href="file:///usr/share/doc/default-jdk-doc/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> styleKey)</pre>
<div class="block">Sets the syntax style being used for syntax highlighting in this
document. What styles are supported by a document is determined by its
<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMakerFactory.html" title="class in org.fife.ui.rsyntaxtextarea"><code>TokenMakerFactory</code></a>. By default, all <code>RSyntaxDocument</code>s
support all languages built into <code>RSyntaxTextArea</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>styleKey</code> - The new style to use, such as
<a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_JAVA"><code>SyntaxConstants.SYNTAX_STYLE_JAVA</code></a>. If this style is not
known or supported by this document, then
<a href="../../../../org/fife/ui/rsyntaxtextarea/SyntaxConstants.html#SYNTAX_STYLE_NONE"><code>SyntaxConstants.SYNTAX_STYLE_NONE</code></a> is used.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#setSyntaxStyle(org.fife.ui.rsyntaxtextarea.TokenMaker)"><code>setSyntaxStyle(TokenMaker)</code></a></dd></dl>
</li>
</ul>
<a name="setSyntaxStyle(org.fife.ui.rsyntaxtextarea.TokenMaker)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSyntaxStyle</h4>
<pre>public void setSyntaxStyle(<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMaker.html" title="interface in org.fife.ui.rsyntaxtextarea">TokenMaker</a> tokenMaker)</pre>
<div class="block">Sets the syntax style being used for syntax highlighting in this
document. You should call this method if you've created a custom token
maker for a language not normally supported by
<code>RSyntaxTextArea</code>.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tokenMaker</code> - The new token maker to use.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html#setSyntaxStyle(java.lang.String)"><code>setSyntaxStyle(String)</code></a></dd></dl>
</li>
</ul>
<a name="setTokenMakerFactory(org.fife.ui.rsyntaxtextarea.TokenMakerFactory)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTokenMakerFactory</h4>
<pre>public void setTokenMakerFactory(<a href="../../../../org/fife/ui/rsyntaxtextarea/TokenMakerFactory.html" title="class in org.fife.ui.rsyntaxtextarea">TokenMakerFactory</a> tmf)</pre>
<div class="block">Sets the token maker factory used by this document.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>tmf</code> - The <code>TokenMakerFactory</code> for this document. If
this is <code>null</code>, a default factory is used.</dd></dl>
</li>
</ul>
<a name="updateSyntaxHighlightingInformation()">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>updateSyntaxHighlightingInformation</h4>
<pre>protected void updateSyntaxHighlightingInformation()</pre>
<div class="block">Updates internal state information; e.g. the "last tokens on lines"
data. After this, a changed update is fired to let listeners know that
the document's structure has changed.<p>
This is called internally whenever the syntax style changes.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../org/fife/ui/rsyntaxtextarea/PopupWindowDecorator.html" title="class in org.fife.ui.rsyntaxtextarea"><span class="strong">Prev Class</span></a></li>
<li><a href="../../../../org/fife/ui/rsyntaxtextarea/RSyntaxTextArea.html" title="class in org.fife.ui.rsyntaxtextarea"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/fife/ui/rsyntaxtextarea/RSyntaxDocument.html" target="_top">Frames</a></li>
<li><a href="RSyntaxDocument.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary: </li>
<li><a href="#nested_classes_inherited_from_class_javax.swing.text.AbstractDocument">Nested</a> | </li>
<li><a href="#field_summary">Field</a> | </li>
<li><a href="#constructor_summary">Constr</a> | </li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail: </li>
<li><a href="#field_detail">Field</a> | </li>
<li><a href="#constructor_detail">Constr</a> | </li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>
|