org.gjt.sp.jedit.syntax
Class SyntaxEditorKit
- java.lang.Object
-
- javax.swing.text.EditorKit
-
- javax.swing.text.DefaultEditorKit
-
- org.gjt.sp.jedit.syntax.SyntaxEditorKit
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, javax.swing.text.ViewFactory
public class SyntaxEditorKit extends javax.swing.text.DefaultEditorKit implements javax.swing.text.ViewFactoryAn implementation ofEditorKitused for syntax colorizing. It implements a view factory that maps elements to syntax colorizing views.This editor kit can be plugged into text components to give them colorization features. It can be used in other applications, not just jEdit. The syntax colorizing package doesn't depend on any jEdit classes.
- See Also:
SyntaxView, Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces 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
-
-
Field Summary
-
Fields inherited from class javax.swing.text.DefaultEditorKit
backwardAction, beepAction, beginAction, beginLineAction, beginParagraphAction, beginWordAction, copyAction, cutAction, defaultKeyTypedAction, deleteNextCharAction, deleteNextWordAction, deletePrevCharAction, deletePrevWordAction, 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
-
-
Constructor Summary
Constructors Constructor and Description SyntaxEditorKit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description javax.swing.text.Viewcreate(javax.swing.text.Element elem)Creates a view from an element that can be used for painting that element.javax.swing.text.DocumentcreateDefaultDocument()Creates a new instance of the default document for this editor kit.javax.swing.text.ViewFactorygetViewFactory()Returns an instance of a view factory that can be used for creating views from elements.
-
-
-
Method Detail
-
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 implementsViewFactory.- Overrides:
getViewFactoryin classjavax.swing.text.DefaultEditorKit
-
create
public javax.swing.text.View create(javax.swing.text.Element elem)
Creates a view from an element that can be used for painting that element. This implementation returns a newSyntaxViewinstance.- Specified by:
createin interfacejavax.swing.text.ViewFactory- Parameters:
elem- The element
-
createDefaultDocument
public javax.swing.text.Document createDefaultDocument()
Creates a new instance of the default document for this editor kit. This returns a new instance ofDefaultSyntaxDocument.- Overrides:
createDefaultDocumentin classjavax.swing.text.DefaultEditorKit
-
-
DataMelt 3.0 © DataMelt by jWork.ORG