TransitionAwareUIpublic class SubstanceTextPaneUI extends javax.swing.plaf.basic.BasicTextPaneUI implements TransitionAwareUI
| Modifier and Type | Field | Description |
|---|---|---|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected java.beans.PropertyChangeListener |
substancePropertyChangeListener |
Property change listener.
|
protected javax.swing.JTextPane |
textPane |
The associated text pane.
|
| Constructor | Description |
|---|---|
SubstanceTextPaneUI(javax.swing.JComponent c) |
Simple constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
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() |
getPropertyPrefix, installUI, propertyChangecreate, 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, viewToModel2Dcontains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehaviorprotected StateTransitionTracker stateTransitionTracker
protected javax.swing.JTextPane textPane
protected java.beans.PropertyChangeListener substancePropertyChangeListener
public SubstanceTextPaneUI(javax.swing.JComponent c)
c - Component (text pane).public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected void installListeners()
installListeners in class javax.swing.plaf.basic.BasicTextUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicTextUIprotected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicTextUIprotected void paintBackground(java.awt.Graphics g)
paintBackground in class javax.swing.plaf.basic.BasicTextUIpublic boolean isInside(java.awt.event.MouseEvent me)
TransitionAwareUIisInside in interface TransitionAwareUIme - Mouse event.true if the mouse position of the specified event
lies inside the area of the component designated for transition
effects, false otherwise.public StateTransitionTracker getTransitionTracker()
TransitionAwareUIgetTransitionTracker in interface TransitionAwareUI