| java.lang.Object javax.swing.text.EditorKit javax.swing.text.DefaultEditorKit bluej.editor.moe.MoeSyntaxEditorKit
MoeSyntaxEditorKit | public class MoeSyntaxEditorKit extends DefaultEditorKit implements ViewFactory(Code) | | An implementation of EditorKit used for syntax coloring.
This is an adaptation of the SyntaxEditorKit class from JEdit for BlueJ.
author: Bruce Quig author: Michael Kolling |
MoeSyntaxEditorKit | public MoeSyntaxEditorKit(boolean textEval)(Code) | | Create a moe editor kit. There are two modes in which this can operate:
as an editor kit for the standard editor (textEval == false) or as an
editor kit for the text evaluation area (textEval == true).
Parameters: textEval - Indicate whether to operate for the text eval area |
create | public View create(Element elem)(Code) | | Creates a view from an element that can be used for painting that
element. This implementation returns a new SyntaxView
instance.
Parameters: elem - The element a new MoeSyntaxView for an element |
createDefaultDocument | public Document createDefaultDocument()(Code) | | Creates a new instance of the default document for this
editor kit. This returns a new instance of
DefaultSyntaxDocument .
|
getViewFactory | public ViewFactory getViewFactory()(Code) | | 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 .
|
Methods inherited from javax.swing.text.DefaultEditorKit | public Caret createCaret()(Code)(Java Doc) public Document createDefaultDocument()(Code)(Java Doc) public Action[] getActions()(Code)(Java Doc) public String getContentType()(Code)(Java Doc) public ViewFactory getViewFactory()(Code)(Java Doc) public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc) public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
|
Methods inherited from javax.swing.text.EditorKit | public Object clone()(Code)(Java Doc) abstract public Caret createCaret()(Code)(Java Doc) abstract public Document createDefaultDocument()(Code)(Java Doc) public void deinstall(JEditorPane c)(Code)(Java Doc) abstract public Action[] getActions()(Code)(Java Doc) abstract public String getContentType()(Code)(Java Doc) abstract public ViewFactory getViewFactory()(Code)(Java Doc) public void install(JEditorPane c)(Code)(Java Doc) abstract public void read(InputStream in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) abstract public void read(Reader in, Document doc, int pos) throws IOException, BadLocationException(Code)(Java Doc) abstract public void write(OutputStream out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc) abstract public void write(Writer out, Document doc, int pos, int len) throws IOException, BadLocationException(Code)(Java Doc)
|
|
|