Class SubstanceTextAreaUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- javax.swing.plaf.TextUI
-
- javax.swing.plaf.basic.BasicTextUI
-
- javax.swing.plaf.basic.BasicTextAreaUI
-
- org.pushingpixels.substance.internal.ui.SubstanceTextAreaUI
-
- All Implemented Interfaces:
ViewFactory
,TransitionAwareUI
public class SubstanceTextAreaUI extends 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
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
-
-
Field Summary
Fields Modifier and Type Field Description protected StateTransitionTracker
stateTransitionTracker
protected PropertyChangeListener
substancePropertyChangeListener
Property change listener.protected JTextArea
textArea
The associated text area.
-
Constructor Summary
Constructors Constructor Description SubstanceTextAreaUI(JComponent c)
Simple constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ComponentUI
createUI(JComponent comp)
StateTransitionTracker
getTransitionTracker()
Returns the model for tracking the transitions.protected void
installDefaults()
protected void
installListeners()
boolean
isInside(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(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, modelToView2D, paint, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, uninstallUI, update, viewToModel, viewToModel, viewToModel2D
-
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount
-
-
-
-
Field Detail
-
stateTransitionTracker
protected StateTransitionTracker stateTransitionTracker
-
textArea
protected JTextArea textArea
The associated text area.
-
substancePropertyChangeListener
protected PropertyChangeListener substancePropertyChangeListener
Property change listener.
-
-
Constructor Detail
-
SubstanceTextAreaUI
public SubstanceTextAreaUI(JComponent c)
Simple constructor.- Parameters:
c
- Component (text area).
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent comp)
-
installListeners
protected void installListeners()
- Overrides:
installListeners
in classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListeners
in classBasicTextUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaults
in classBasicTextAreaUI
-
paintBackground
protected void paintBackground(Graphics g)
- Overrides:
paintBackground
in classBasicTextUI
-
isInside
public boolean isInside(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 interfaceTransitionAwareUI
- 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 interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-
-