ViewFactory
, TransitionAwareUI
public class SubstanceTextPaneUI extends BasicTextPaneUI implements TransitionAwareUI
BasicTextUI.BasicCaret, BasicTextUI.BasicHighlighter
Modifier and Type | Field | Description |
---|---|---|
protected StateTransitionTracker |
stateTransitionTracker |
|
protected PropertyChangeListener |
substancePropertyChangeListener |
Property change listener.
|
protected JTextPane |
textPane |
The associated text pane.
|
Constructor | Description |
---|---|
SubstanceTextPaneUI(JComponent c) |
Simple constructor.
|
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() |
getEditorKit, uninstallUI
getPropertyPrefix, installUI, propertyChange
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
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getToolTipText2D
protected StateTransitionTracker stateTransitionTracker
protected JTextPane textPane
protected PropertyChangeListener substancePropertyChangeListener
public SubstanceTextPaneUI(JComponent c)
c
- Component (text pane).public static ComponentUI createUI(JComponent comp)
protected void installListeners()
installListeners
in class BasicTextUI
protected void uninstallListeners()
uninstallListeners
in class BasicTextUI
protected void installDefaults()
installDefaults
in class BasicTextUI
protected void paintBackground(Graphics g)
paintBackground
in class BasicTextUI
public boolean isInside(MouseEvent me)
TransitionAwareUI
isInside
in interface TransitionAwareUI
me
- 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()
TransitionAwareUI
getTransitionTracker
in interface TransitionAwareUI