Documentation of 'org.gjt.sp.jedit.syntax.SyntaxEditorKit' Java class
SyntaxEditorKit
org.gjt.sp.jedit.syntax

Class 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.ViewFactory
    An implementation of EditorKit used 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.View create(javax.swing.text.Element elem)
      Creates a view from an element that can be used for painting that element.
      javax.swing.text.Document createDefaultDocument()
      Creates a new instance of the default document for this editor kit.
      javax.swing.text.ViewFactory getViewFactory()
      Returns an instance of a view factory that can be used for creating views from elements.
      • Methods inherited from class javax.swing.text.DefaultEditorKit

        createCaret, getActions, getContentType, read, read, write, write
      • Methods inherited from class javax.swing.text.EditorKit

        clone, deinstall, install
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SyntaxEditorKit

        public SyntaxEditorKit()
    • 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 implements ViewFactory.
        Overrides:
        getViewFactory in class javax.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 new SyntaxView instance.
        Specified by:
        create in interface javax.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 of DefaultSyntaxDocument.
        Overrides:
        createDefaultDocument in class javax.swing.text.DefaultEditorKit

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.