|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.text.GapVector | +--javax.swing.text.GapContent | +--org.skunk.swing.text.syntax.SyntaxContent
Constructor Summary | |
SyntaxContent()
constructs a new SyntaxContent object, with a Flexicizer SyntaxTokenizer. |
|
SyntaxContent(int initialLength)
constructs a new SyntaxContent object with the given initial length. |
|
SyntaxContent(SyntaxTokenizer tokenizer)
constructs a new SyntaxContent object with the given SyntaxTokenizer. |
Method Summary | |
FileMode |
getFileMode()
returns the file mode of this tokenizer. |
GappedIntArray |
getStyleBuffer()
gives access to the style buffer |
SyntaxTokenizer |
getSyntaxTokenizer()
gives access to the syntax tokenizer |
javax.swing.undo.UndoableEdit |
insertString(int where,
java.lang.String str)
insert string into the content at the given offset. |
boolean |
isTokenizing()
says whether tokenization is on. |
javax.swing.undo.UndoableEdit |
remove(int where,
int nitems)
removes characters from the content. |
void |
setFileMode(FileMode mode)
sets the file mode. |
protected void |
setSyntaxDocument(SyntaxDocument syntaxDocument)
gives the content object a reference to the document. |
void |
setSyntaxTokenizer(SyntaxTokenizer syntaxTokenizer)
applies a syntax tokenizer. |
void |
setTokenizing(boolean tokenizing)
sets tokenization on. |
Methods inherited from class javax.swing.text.GapContent |
allocateArray, createPosition, getArray, getArrayLength, getChars, getGapEnd, getGapStart, getPositionsInRange, getString, length, replace, resetMarksAtZero, shiftEnd, shiftGap, shiftGapEndUp, shiftGapStartDown, updateUndoPositions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SyntaxContent()
public SyntaxContent(int initialLength)
initialLength
- the initial lengthpublic SyntaxContent(SyntaxTokenizer tokenizer)
tokenizer
- the SyntaxTokenizer to installMethod Detail |
public GappedIntArray getStyleBuffer()
public SyntaxTokenizer getSyntaxTokenizer()
public void setSyntaxTokenizer(SyntaxTokenizer syntaxTokenizer)
syntaxTokenizer
- the tokenizerprotected void setSyntaxDocument(SyntaxDocument syntaxDocument)
syntaxDocument
- the SyntaxDocument which owns this content objectpublic void setFileMode(FileMode mode)
mode
- the file modepublic FileMode getFileMode()
public boolean isTokenizing()
public void setTokenizing(boolean tokenizing)
tokenizing
- whether to tokenizepublic javax.swing.undo.UndoableEdit insertString(int where, java.lang.String str) throws javax.swing.text.BadLocationException
insertString
in class javax.swing.text.GapContent
where
- the offset into the document where the insert should beginstr
- the string to insertjavax.swing.text.BadLocationException
- if the offset is greater than the document lengthpublic javax.swing.undo.UndoableEdit remove(int where, int nitems) throws javax.swing.text.BadLocationException
remove
in class javax.swing.text.GapContent
where
- the offset of the removalnitems
- the number of characters to removejavax.swing.text.BadLocationException
- if the parameters are out of bounds
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |