java.lang.Object
javax.swing.text.EditorKit
javax.swing.text.DefaultEditorKit
novaworx.textpane.SyntaxEditorKit
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable, javax.swing.text.ViewFactory
- public class SyntaxEditorKit
- extends javax.swing.text.DefaultEditorKit
- implements javax.swing.text.ViewFactory
An implementation of EditorKit used for syntax highlighting.
It implements a view factory that maps elements to syntax highlighting
views.
This editor kit can be plugged into text components to give them colorization features.
| Nested classes inherited from class javax.swing.text.DefaultEditorKit |
javax.swing.text.DefaultEditorKit.BeepAction, javax.swing.text.DefaultEditorKit.CopyAction, javax.swing.text.DefaultEditorKit.CutAction, javax.swing.text.DefaultEditorKit.DefaultKeyTypedAction, javax.swing.text.DefaultEditorKit.InsertBreakAction, javax.swing.text.DefaultEditorKit.InsertContentAction, javax.swing.text.DefaultEditorKit.InsertTabAction, javax.swing.text.DefaultEditorKit.PasteAction |
| Fields inherited from class javax.swing.text.DefaultEditorKit |
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deletePrevCharAction, downAction, endAction, endLineAction, EndOfLineStringProperty, endParagraphAction, endWordAction, forwardAction, insertBreakAction, insertContentAction, insertTabAction, nextWordAction, pageDownAction, pageUpAction, pasteAction, previousWordAction, readOnlyAction, selectAllAction, selectionBackwardAction, selectionBeginAction, selectionBeginLineAction, selectionBeginParagraphAction, selectionBeginWordAction, selectionDownAction, selectionEndAction, selectionEndLineAction, selectionEndParagraphAction, selectionEndWordAction, selectionForwardAction, selectionNextWordAction, selectionPreviousWordAction, selectionUpAction, selectLineAction, selectParagraphAction, selectWordAction, upAction, writableAction |
SyntaxEditorKit
public SyntaxEditorKit()
getViewFactory
public javax.swing.text.ViewFactory getViewFactory()
- Returns an instance of a view factory that can be used for
creating views from elements. This implementation returns
the current instance, because this class already implements
ViewFactory.
createDefaultDocument
public javax.swing.text.Document createDefaultDocument()
- Creates a new instance of the default document for this
editor kit. This returns a new instance of SyntaxDocument.
create
public javax.swing.text.View create(javax.swing.text.Element aoElement)
- Creates a view from an element that can be used for painting that
element. This implementation returns a new SyntaxView instance.
- Specified by:
create in interface javax.swing.text.ViewFactory