Class SubstanceTextPaneUI
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TextUI
javax.swing.plaf.basic.BasicTextUI
javax.swing.plaf.basic.BasicEditorPaneUI
javax.swing.plaf.basic.BasicTextPaneUI
org.pushingpixels.substance.internal.ui.SubstanceTextPaneUI
- All Implemented Interfaces:
ViewFactory
,TransitionAwareUI
UI for text panes 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
FieldsModifier and TypeFieldDescriptionprotected StateTransitionTracker
protected PropertyChangeListener
Property change listener.protected JTextPane
The associated text pane. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComponentUI
createUI
(JComponent comp) Returns the model for tracking the transitions.protected void
protected void
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
protected void
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, modelToView2D, paint, paintSafely, setView, uninstallDefaults, uninstallKeyboardActions, update, viewToModel, viewToModel, viewToModel2D
Methods inherited from class javax.swing.plaf.TextUI
getToolTipText2D
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
-
Field Details
-
stateTransitionTracker
-
textPane
The associated text pane. -
substancePropertyChangeListener
Property change listener.
-
-
Constructor Details
-
SubstanceTextPaneUI
Simple constructor.- Parameters:
c
- Component (text pane).
-
-
Method Details
-
createUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classBasicTextUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classBasicTextUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classBasicTextUI
-
paintBackground
- Overrides:
paintBackground
in classBasicTextUI
-
isInside
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
Description copied from interface:TransitionAwareUI
Returns the model for tracking the transitions.- Specified by:
getTransitionTracker
in interfaceTransitionAwareUI
- Returns:
- Model for tracking the transitions.
-