jdk/src/share/classes/javax/swing/text/DefaultStyledDocument.java
changeset 20455 f6f9a0c2796b
parent 20158 1c5d22e5b898
child 20458 f2423fb3fd19
equal deleted inserted replaced
20454:d332fc10731f 20455:f6f9a0c2796b
   171      * element structure so the time within a write lock can
   171      * element structure so the time within a write lock can
   172      * be greatly reduced in an asynchronous update situation.
   172      * be greatly reduced in an asynchronous update situation.
   173      * <p>
   173      * <p>
   174      * This method is thread safe, although most Swing methods
   174      * This method is thread safe, although most Swing methods
   175      * are not. Please see
   175      * are not. Please see
   176      * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   176      * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   177      * in Swing</A> for more information.
   177      * in Swing</A> for more information.
   178      *
   178      *
   179      * @param offset the starting offset &gt;= 0
   179      * @param offset the starting offset &gt;= 0
   180      * @param data the element data
   180      * @param data the element data
   181      * @exception BadLocationException for an invalid starting offset
   181      * @exception BadLocationException for an invalid starting offset
   424      * in turn may resolve through some hierarchy completely
   424      * in turn may resolve through some hierarchy completely
   425      * independent of the element hierarchy in the document.
   425      * independent of the element hierarchy in the document.
   426      * <p>
   426      * <p>
   427      * This method is thread safe, although most Swing methods
   427      * This method is thread safe, although most Swing methods
   428      * are not. Please see
   428      * are not. Please see
   429      * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   429      * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   430      * in Swing</A> for more information.
   430      * in Swing</A> for more information.
   431      *
   431      *
   432      * @param pos the offset from the start of the document &gt;= 0
   432      * @param pos the offset from the start of the document &gt;= 0
   433      * @param s  the logical style to assign to the paragraph, null if none
   433      * @param s  the logical style to assign to the paragraph, null if none
   434      */
   434      */
   481      * are being made, and a DocumentEvent is sent to the listeners
   481      * are being made, and a DocumentEvent is sent to the listeners
   482      * after the change has been successfully completed.
   482      * after the change has been successfully completed.
   483      * <p>
   483      * <p>
   484      * This method is thread safe, although most Swing methods
   484      * This method is thread safe, although most Swing methods
   485      * are not. Please see
   485      * are not. Please see
   486      * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   486      * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   487      * in Swing</A> for more information.
   487      * in Swing</A> for more information.
   488      *
   488      *
   489      * @param offset the offset in the document &gt;= 0
   489      * @param offset the offset in the document &gt;= 0
   490      * @param length the length &gt;= 0
   490      * @param length the length &gt;= 0
   491      * @param s the attributes
   491      * @param s the attributes
   534     /**
   534     /**
   535      * Sets attributes for a paragraph.
   535      * Sets attributes for a paragraph.
   536      * <p>
   536      * <p>
   537      * This method is thread safe, although most Swing methods
   537      * This method is thread safe, although most Swing methods
   538      * are not. Please see
   538      * are not. Please see
   539      * <A HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   539      * <A HREF="http://docs.oracle.com/javase/tutorial/uiswing/concurrency/index.html">Concurrency
   540      * in Swing</A> for more information.
   540      * in Swing</A> for more information.
   541      *
   541      *
   542      * @param offset the offset into the paragraph &gt;= 0
   542      * @param offset the offset into the paragraph &gt;= 0
   543      * @param length the number of characters affected &gt;= 0
   543      * @param length the number of characters affected &gt;= 0
   544      * @param s the attributes
   544      * @param s the attributes