satc.swing
Class SyntaxTextAreaUI

java.lang.Object
  |
  +--javax.swing.plaf.ComponentUI
        |
        +--javax.swing.plaf.TextUI
              |
              +--javax.swing.plaf.basic.BasicTextUI
                    |
                    +--javax.swing.plaf.basic.BasicTextAreaUI
                          |
                          +--satc.swing.SyntaxTextAreaUI
All Implemented Interfaces:
javax.swing.text.ViewFactory

public class SyntaxTextAreaUI
extends javax.swing.plaf.basic.BasicTextAreaUI

Provides the look and feel for a syntax aware text component.


Inner classes inherited from class javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
 
Constructor Summary
SyntaxTextAreaUI()
           
SyntaxTextAreaUI(java.lang.String syntaxName)
           
 
Method Summary
 javax.swing.text.View create(javax.swing.text.Element elem)
          Sets the syntax mode for this UI.
 javax.swing.text.EditorKit getEditorKit(javax.swing.text.JTextComponent tc)
          Fetches the EditorKit for the UI.
 void installUI(javax.swing.JComponent c)
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
createUI, getPropertyPrefix, propertyChange
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getVisibleEditorRect, installDefaults, installKeyboardActions, installListeners, modelChanged, modelToView, modelToView, paint, paintBackground, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, uninstallUI, update, viewToModel, viewToModel
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SyntaxTextAreaUI

public SyntaxTextAreaUI()

SyntaxTextAreaUI

public SyntaxTextAreaUI(java.lang.String syntaxName)
Method Detail

create

public javax.swing.text.View create(javax.swing.text.Element elem)
Sets the syntax mode for this UI. public void setSyntax( String syntaxName) { SyntaxEditorKit newKit = SyntaxFactory.createEditorKit( syntaxName); editorKit = newKit; getComponent().setUI( getComponent().getUI()); newKit.installEditorKit( getComponent().getDocument()); damageRange( getComponent(), 0, getComponent().getDocument().getLength()); } /** Creates a syntax aware view for a text element.
Overrides:
create in class javax.swing.plaf.basic.BasicTextAreaUI

getEditorKit

public javax.swing.text.EditorKit getEditorKit(javax.swing.text.JTextComponent tc)
Fetches the EditorKit for the UI.
Overrides:
getEditorKit in class javax.swing.plaf.basic.BasicTextUI

installUI

public void installUI(javax.swing.JComponent c)
Overrides:
installUI in class javax.swing.plaf.basic.BasicTextUI