|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.princeton.swing.text.HighlightedDocument
|
+--edu.princeton.swing.text.DefaultHighlightedDocument
DefaultHighlightedDocument is a simple subclass of HighlightedDocument.
| Nested Class Summary |
| Nested classes inherited from class edu.princeton.swing.text.HighlightedDocument |
HighlightedDocument.Position, HighlightedDocument.PositionTriplet, HighlightedDocument.UndoableEdit |
| Field Summary | |
static byte |
STYLE_PLAIN
The only style in a DefaultHighlightedDocument. |
| Fields inherited from class edu.princeton.swing.text.HighlightedDocument |
CHARACTER_ALLOWED, charCount, chars, charStyles, lineCount, lineOffsets, MAX_ALLOWED_CHARACTER, maxLineLength |
| Constructor Summary | |
DefaultHighlightedDocument()
Constructs a DefaultHighlightedDocument. |
|
DefaultHighlightedDocument(String text)
Constructs a DefaultHighlightedDocument. |
|
| Method Summary | |
protected void |
assignStyles()
Updates the charStyles array based on chars, charCount, lineOffsets, and lineCount. |
int |
getStyleCount()
Returns the number of distinct styles used by this type of document. |
int |
getTabSize()
Returns the number of spaces to replace all tabs with. |
| Methods inherited from class edu.princeton.swing.text.HighlightedDocument |
addTextListener, addUndoableEditListener, allowRender, coordinateToOffset, coordinateToOffset, createPosition, createPositionTriplet, filterString, freePosition, freePositionTriplet, getLength, getLineCount, getMaxLineLength, getPositionOffsets, getText, getText, getWordBounds, insertString, offsetToCoordinate, readLock, readUnlock, remove, removeTextListener, removeUndoableEditListener, replace, replace, setText, writeLock, writeUnlock |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final byte STYLE_PLAIN
| Constructor Detail |
public DefaultHighlightedDocument()
public DefaultHighlightedDocument(String text)
| Method Detail |
public int getStyleCount()
getStyleCount in class HighlightedDocumentpublic int getTabSize()
getTabSize in class HighlightedDocumentprotected void assignStyles()
assignStyles in class HighlightedDocument
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||