Save This Page
Home » openjdk-7 » javax » swing » plaf » synth » [javadoc | source]
javax.swing.plaf.synth
public class: SynthTextAreaUI [javadoc | source]
java.lang.Object
   javax.swing.plaf.ComponentUI
      javax.swing.plaf.TextUI
         javax.swing.plaf.basic.BasicTextUI
            javax.swing.plaf.basic.BasicTextAreaUI
               javax.swing.plaf.synth.SynthTextAreaUI

All Implemented Interfaces:
    SynthUI, ViewFactory

Provides the look and feel for a plain text editor in the Synth look and feel. In this implementation the default UI is extended to act as a simple view factory.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.beans package. Please see java.beans.XMLEncoder .

Fields inherited from javax.swing.plaf.basic.BasicTextUI:
editor,  painted,  rootView,  updateHandler
Method from javax.swing.plaf.synth.SynthTextAreaUI Summary:
createUI,   getContext,   installDefaults,   paint,   paintBackground,   paintBorder,   propertyChange,   uninstallDefaults,   update
Methods from javax.swing.plaf.basic.BasicTextAreaUI:
create,   createI18N,   createUI,   getBaseline,   getBaselineResizeBehavior,   getMinimumSize,   getPreferredSize,   getPropertyPrefix,   installDefaults,   propertyChange
Methods from javax.swing.plaf.basic.BasicTextUI:
create,   create,   createActionMap,   createCaret,   createHighlighter,   createKeymap,   damageRange,   damageRange,   getActionMap,   getComponent,   getEditorKit,   getInputMap,   getKeymapName,   getMaximumSize,   getMinimumSize,   getNextVisualPositionFrom,   getPreferredSize,   getPropertyPrefix,   getRootView,   getToolTipText,   getTransferHandler,   getVisibleEditorRect,   installDefaults,   installKeyboardActions,   installListeners,   installUI,   modelChanged,   modelToView,   modelToView,   paint,   paintBackground,   paintSafely,   propertyChange,   setView,   uninstallDefaults,   uninstallKeyboardActions,   uninstallListeners,   uninstallUI,   update,   updateFocusAcceleratorBinding,   updateFocusTraversalKeys,   viewToModel,   viewToModel
Methods from javax.swing.plaf.TextUI:
damageRange,   damageRange,   getEditorKit,   getNextVisualPositionFrom,   getRootView,   getToolTipText,   modelToView,   modelToView,   viewToModel,   viewToModel
Methods from javax.swing.plaf.ComponentUI:
contains,   createUI,   getAccessibleChild,   getAccessibleChildrenCount,   getBaseline,   getBaselineResizeBehavior,   getMaximumSize,   getMinimumSize,   getPreferredSize,   installUI,   paint,   uninstallUI,   update
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.swing.plaf.synth.SynthTextAreaUI Detail:
 public static ComponentUI createUI(JComponent ta) 
    Creates a UI object for a JTextArea.
 public SynthContext getContext(JComponent c) 
 protected  void installDefaults() 
 protected  void paint(SynthContext context,
    Graphics g) 
    Paints the specified component.
 protected  void paintBackground(Graphics g) 
 public  void paintBorder(SynthContext context,
    Graphics g,
    int x,
    int y,
    int w,
    int h) 
 protected  void propertyChange(PropertyChangeEvent evt) 
    This method gets called when a bound property is changed on the associated JTextComponent. This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. This is implemented to rebuild the View when the WrapLine or the WrapStyleWord property changes.
 protected  void uninstallDefaults() 
 public  void update(Graphics g,
    JComponent c) 
    Notifies this UI delegate to repaint the specified component. This method paints the component background, then calls the #paint(SynthContext,Graphics) method.

    In general, this method does not need to be overridden by subclasses. All Look and Feel rendering code should reside in the {@code paint} method.