org.jvnet.substance
Class SubstanceTextPaneUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.TextUI
          extended by javax.swing.plaf.basic.BasicTextUI
              extended by javax.swing.plaf.basic.BasicEditorPaneUI
                  extended by javax.swing.plaf.basic.BasicTextPaneUI
                      extended by org.jvnet.substance.SubstanceTextPaneUI
All Implemented Interfaces:
javax.swing.text.ViewFactory

public class SubstanceTextPaneUI
extends javax.swing.plaf.basic.BasicTextPaneUI

UI for text panes in Substance look and feel.

Author:
Kirill Grouchnikov

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicTextUI.BasicCaret, javax.swing.plaf.basic.BasicTextUI.BasicHighlighter
 
Field Summary
protected  org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
          Listener for fade animations.
protected  java.beans.PropertyChangeListener substancePropertyChangeListener
          Property change listener.
protected  javax.swing.JTextPane textPane
          The associated text pane.
 
Constructor Summary
SubstanceTextPaneUI(javax.swing.JComponent c)
          Simple constructor.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
           
protected  void installDefaults()
           
protected  void installListeners()
           
protected  void paintBackground(java.awt.Graphics g)
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTextPaneUI
getPropertyPrefix, installUI, propertyChange
 
Methods inherited from class javax.swing.plaf.basic.BasicEditorPaneUI
getEditorKit, uninstallUI
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getKeymapName, getMaximumSize, getMinimumSize, getNextVisualPositionFrom, getPreferredSize, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, update, viewToModel, viewToModel
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

substanceFadeStateListener

protected org.jvnet.lafwidget.animation.FadeStateListener substanceFadeStateListener
Listener for fade animations.


textPane

protected javax.swing.JTextPane textPane
The associated text pane.


substancePropertyChangeListener

protected java.beans.PropertyChangeListener substancePropertyChangeListener
Property change listener.

Constructor Detail

SubstanceTextPaneUI

public SubstanceTextPaneUI(javax.swing.JComponent c)
Simple constructor.

Parameters:
c - Component (text pane).
Method Detail

createUI

public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)

installListeners

protected void installListeners()
Overrides:
installListeners in class javax.swing.plaf.basic.BasicTextUI

uninstallListeners

protected void uninstallListeners()
Overrides:
uninstallListeners in class javax.swing.plaf.basic.BasicTextUI

installDefaults

protected void installDefaults()
Overrides:
installDefaults in class javax.swing.plaf.basic.BasicTextUI

paintBackground

protected void paintBackground(java.awt.Graphics g)
Overrides:
paintBackground in class javax.swing.plaf.basic.BasicTextUI