< prev index next >

src/java.desktop/share/classes/javax/swing/plaf/basic/BasicTextUI.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  80  * <ol>
  81  * <li>
  82  * One strategy is to simply redefine the
  83  * ViewFactory interface in the UI.  By default, this UI itself acts
  84  * as the factory for View implementations.  This is useful
  85  * for simple factories.  To do this reimplement the
  86  * {@link #create} method.
  87  * <li>
  88  * A common strategy for creating more complex types of documents
  89  * is to have the EditorKit implementation return a factory.  Since
  90  * the EditorKit ties all of the pieces necessary to maintain a type
  91  * of document, the factory is typically an important part of that
  92  * and should be produced by the EditorKit implementation.
  93  * </ol>
  94  * <p>
  95  * <strong>Warning:</strong>
  96  * Serialized objects of this class will not be compatible with
  97  * future Swing releases. The current serialization support is
  98  * appropriate for short term storage or RMI between applications running
  99  * the same version of Swing.  As of 1.4, support for long term storage
 100  * of all JavaBeans&trade;
 101  * has been added to the <code>java.beans</code> package.
 102  * Please see {@link java.beans.XMLEncoder}.
 103  *
 104  * @author Timothy Prinzing
 105  * @author Shannon Hickey (drag and drop)
 106  */
 107 @SuppressWarnings("serial") // Same-version serialization only
 108 public abstract class BasicTextUI extends TextUI implements ViewFactory {
 109     private static final int DEFAULT_CARET_MARGIN = 1;
 110 
 111     /**
 112      * Creates a new UI.
 113      */
 114     public BasicTextUI() {
 115         painted = false;
 116     }
 117 
 118     /**
 119      * Creates the object to use for a caret.  By default an
 120      * instance of BasicCaret is created.  This method




  80  * <ol>
  81  * <li>
  82  * One strategy is to simply redefine the
  83  * ViewFactory interface in the UI.  By default, this UI itself acts
  84  * as the factory for View implementations.  This is useful
  85  * for simple factories.  To do this reimplement the
  86  * {@link #create} method.
  87  * <li>
  88  * A common strategy for creating more complex types of documents
  89  * is to have the EditorKit implementation return a factory.  Since
  90  * the EditorKit ties all of the pieces necessary to maintain a type
  91  * of document, the factory is typically an important part of that
  92  * and should be produced by the EditorKit implementation.
  93  * </ol>
  94  * <p>
  95  * <strong>Warning:</strong>
  96  * Serialized objects of this class will not be compatible with
  97  * future Swing releases. The current serialization support is
  98  * appropriate for short term storage or RMI between applications running
  99  * the same version of Swing.  As of 1.4, support for long term storage
 100  * of all JavaBeans
 101  * has been added to the <code>java.beans</code> package.
 102  * Please see {@link java.beans.XMLEncoder}.
 103  *
 104  * @author Timothy Prinzing
 105  * @author Shannon Hickey (drag and drop)
 106  */
 107 @SuppressWarnings("serial") // Same-version serialization only
 108 public abstract class BasicTextUI extends TextUI implements ViewFactory {
 109     private static final int DEFAULT_CARET_MARGIN = 1;
 110 
 111     /**
 112      * Creates a new UI.
 113      */
 114     public BasicTextUI() {
 115         painted = false;
 116     }
 117 
 118     /**
 119      * Creates the object to use for a caret.  By default an
 120      * instance of BasicCaret is created.  This method


< prev index next >