cassis.gui.scripts
public class SyntaxDocument extends javax.swing.text.DefaultStyledDocument
javax.swing.text.DefaultStyledDocument.AttributeUndoableEdit, javax.swing.text.DefaultStyledDocument.ElementBuffer, javax.swing.text.DefaultStyledDocument.ElementSpecjavax.swing.text.AbstractDocument.AbstractElement, javax.swing.text.AbstractDocument.AttributeContext, javax.swing.text.AbstractDocument.BranchElement, javax.swing.text.AbstractDocument.Content, javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AbstractDocument.ElementEdit, javax.swing.text.AbstractDocument.LeafElement| Constructor and Description |
|---|
SyntaxDocument() |
| Modifier and Type | Method and Description |
|---|---|
void |
insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet a)
Override to apply syntax highlighting after the document has been updated
|
void |
processChangedLines(int offset,
int length)
Determine how many lines have been changed, then apply highlighting to each line
|
void |
refresh() |
void |
remove(int offset,
int length)
Override to apply syntax highlighting after the document has been updated
|
addDocumentListener, addStyle, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, removeDocumentListener, removeStyle, setCharacterAttributes, setLogicalStyle, setParagraphAttributesaddUndoableEditListener, createPosition, dump, getAsynchronousLoadPriority, getBidiRootElement, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, putProperty, readLock, readUnlock, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentPropertiespublic void insertString(int offset,
java.lang.String str,
javax.swing.text.AttributeSet a)
throws javax.swing.text.BadLocationException
insertString in interface javax.swing.text.DocumentinsertString in class javax.swing.text.AbstractDocumentjavax.swing.text.BadLocationExceptionpublic void remove(int offset,
int length)
throws javax.swing.text.BadLocationException
remove in interface javax.swing.text.Documentremove in class javax.swing.text.AbstractDocumentjavax.swing.text.BadLocationExceptionpublic void refresh()
public void processChangedLines(int offset,
int length)
throws javax.swing.text.BadLocationException
javax.swing.text.BadLocationException