Class RadianceTextPaneUI
- 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.radiance.theming.internal.ui.RadianceTextPaneUI
-
- All Implemented Interfaces:
javax.swing.text.ViewFactory,TransitionAwareUI
public class RadianceTextPaneUI extends javax.swing.plaf.basic.BasicTextPaneUI implements TransitionAwareUI
UI for text panes in Radiance look and feel.
-
-
Field Summary
Fields Modifier and Type Field Description private java.beans.PropertyChangeListenerradiancePropertyChangeListenerProperty change listener.private RolloverTextControlListenerradianceRolloverListenerListener for transition animations.private StateTransitionTrackerstateTransitionTrackerprivate javax.swing.JTextPanetextPaneThe associated text pane.private java.util.Set<RadianceThemingWidget<javax.swing.JComponent>>themingWidgetsprivate javax.swing.ButtonModeltransitionModelSurrogate button model for tracking the state transitions.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRadianceTextPaneUI(javax.swing.JComponent c)Simple constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent comp)StateTransitionTrackergetTransitionTracker()Returns the model for tracking the transitions.protected voidinstallDefaults()protected voidinstallListeners()voidinstallUI(javax.swing.JComponent c)booleanisInside(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 voidpaintBackground(java.awt.Graphics g)protected voiduninstallDefaults()protected voiduninstallListeners()voiduninstallUI(javax.swing.JComponent c)voidupdate(java.awt.Graphics g, javax.swing.JComponent c)-
Methods inherited from class javax.swing.plaf.basic.BasicTextPaneUI
getPropertyPrefix, propertyChange
-
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, uninstallKeyboardActions, viewToModel, viewToModel, viewToModel2D
-
-
-
-
Field Detail
-
stateTransitionTracker
private StateTransitionTracker stateTransitionTracker
-
textPane
private javax.swing.JTextPane textPane
The associated text pane.
-
radiancePropertyChangeListener
private java.beans.PropertyChangeListener radiancePropertyChangeListener
Property change listener.
-
radianceRolloverListener
private RolloverTextControlListener radianceRolloverListener
Listener for transition animations.
-
transitionModel
private javax.swing.ButtonModel transitionModel
Surrogate button model for tracking the state transitions.
-
themingWidgets
private java.util.Set<RadianceThemingWidget<javax.swing.JComponent>> themingWidgets
-
-
Method Detail
-
createUI
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
-
installUI
public void installUI(javax.swing.JComponent c)
- Overrides:
installUIin classjavax.swing.plaf.basic.BasicTextPaneUI
-
uninstallUI
public void uninstallUI(javax.swing.JComponent c)
- Overrides:
uninstallUIin classjavax.swing.plaf.basic.BasicEditorPaneUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classjavax.swing.plaf.basic.BasicTextUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classjavax.swing.plaf.basic.BasicTextUI
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classjavax.swing.plaf.basic.BasicTextUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classjavax.swing.plaf.basic.BasicTextUI
-
paintBackground
protected void paintBackground(java.awt.Graphics g)
- Overrides:
paintBackgroundin classjavax.swing.plaf.basic.BasicTextUI
-
isInside
public boolean isInside(java.awt.event.MouseEvent me)
Description copied from interface:TransitionAwareUIChecks whether the mouse position of the specified event lies inside the area of the component designated for transition effects.- Specified by:
isInsidein interfaceTransitionAwareUI- Parameters:
me- Mouse event.- Returns:
trueif the mouse position of the specified event lies inside the area of the component designated for transition effects,falseotherwise.
-
getTransitionTracker
public StateTransitionTracker getTransitionTracker()
Description copied from interface:TransitionAwareUIReturns the model for tracking the transitions.- Specified by:
getTransitionTrackerin interfaceTransitionAwareUI- Returns:
- Model for tracking the transitions.
-
update
public void update(java.awt.Graphics g, javax.swing.JComponent c)- Overrides:
updatein classjavax.swing.plaf.basic.BasicTextUI
-
-