|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.utjml.canica.jmleditor.SyntaxHighlighter
public class SyntaxHighlighter
A class for syntax coloring a document. This class creates a new,
separate thread to perform the syntax coloring of a document. The
document to be syntax colored should be created by calling the
createNewDocument() method. This method may be called many
times to create multiple documents. However, the document that is
created last will be syntax colored. Other documents can be syntax
colored by calling the setDocument(StyledDocument) method.
| Constructor Summary | |
|---|---|
SyntaxHighlighter()
Creates a new instance. |
|
| Method Summary | |
|---|---|
DefaultStyledDocument |
createNewDocument()
Creates and returns a new document that is automatically syntax colored. |
Thread |
getColorer()
Returns the thread that does the coloring. |
void |
setDocument(StyledDocument doc)
Sets the document to be syntax colored. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyntaxHighlighter()
| Method Detail |
|---|
public DefaultStyledDocument createNewDocument()
createNewDocument()public void setDocument(StyledDocument doc)
createNewDocument() method.
public Thread getColorer()
|
UTJML | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||