org.pushingpixels.substance.internal.ui
Class SubstanceTextAreaUI

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.BasicTextAreaUI
                  extended by org.pushingpixels.substance.internal.ui.SubstanceTextAreaUI
All Implemented Interfaces:
javax.swing.text.ViewFactory, TransitionAwareUI

public class SubstanceTextAreaUI
extends javax.swing.plaf.basic.BasicTextAreaUI
implements TransitionAwareUI

UI for text areas in Substance look and feel.


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  StateTransitionTracker stateTransitionTracker
           
protected  java.beans.PropertyChangeListener substancePropertyChangeListener
          Property change listener.
protected  javax.swing.JTextArea textArea
          The associated text area.
 
Constructor Summary
SubstanceTextAreaUI(javax.swing.JComponent c)
          Simple constructor.
 
Method Summary
static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
           
 StateTransitionTracker getTransitionTracker()
          Returns the model for tracking the transitions.
protected  void installDefaults()
           
protected  void installListeners()
           
 boolean isInside(java.awt.event.MouseEvent me)
          Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.
protected  void paintBackground(java.awt.Graphics g)
           
protected  void uninstallListeners()
           
 
Methods inherited from class javax.swing.plaf.basic.BasicTextAreaUI
create, getBaseline, getBaselineResizeBehavior, getMinimumSize, getPreferredSize, getPropertyPrefix, propertyChange
 
Methods inherited from class javax.swing.plaf.basic.BasicTextUI
create, createCaret, createHighlighter, createKeymap, damageRange, damageRange, getComponent, getEditorKit, getKeymapName, getMaximumSize, getNextVisualPositionFrom, getRootView, getToolTipText, getVisibleEditorRect, installKeyboardActions, installUI, modelChanged, modelToView, modelToView, paint, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, 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
 

Field Detail

stateTransitionTracker

protected StateTransitionTracker stateTransitionTracker

textArea

protected javax.swing.JTextArea textArea
The associated text area.


substancePropertyChangeListener

protected java.beans.PropertyChangeListener substancePropertyChangeListener
Property change listener.

Constructor Detail

SubstanceTextAreaUI

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

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

createUI

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

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.BasicTextAreaUI

paintBackground

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

isInside

public boolean isInside(java.awt.event.MouseEvent me)
Description copied from interface: TransitionAwareUI
Checks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.

Specified by:
isInside in interface TransitionAwareUI
Parameters:
me - Mouse event.
Returns:
true if the mouse position of the specified event lies inside the area of the component designated for transition effects, false otherwise.

getTransitionTracker

public StateTransitionTracker getTransitionTracker()
Description copied from interface: TransitionAwareUI
Returns the model for tracking the transitions.

Specified by:
getTransitionTracker in interface TransitionAwareUI
Returns:
Model for tracking the transitions.