Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

novaworx.textpane
Class SyntaxEditorKit  view SyntaxEditorKit download SyntaxEditorKit.java

java.lang.Object
  extended byjavax.swing.text.EditorKit
      extended byjavax.swing.text.DefaultEditorKit
          extended bynovaworx.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 Class Summary
 
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
 
Field Summary
 
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
 
Constructor Summary
SyntaxEditorKit()
           
 
Method Summary
 javax.swing.text.View create(javax.swing.text.Element aoElement)
          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, finalize, 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.


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