jdk/src/share/classes/javax/swing/text/View.java
changeset 21278 ef8a3a2a72f2
parent 21256 dfb1f9090caa
child 21982 fd6e5fe509df
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   126     to allow a view to clip only if it really feels it needs clipping.
   126     to allow a view to clip only if it really feels it needs clipping.
   127     <li>The <code>Graphics</code> object given is not initialized in any way.
   127     <li>The <code>Graphics</code> object given is not initialized in any way.
   128     A view should set any settings needed.
   128     A view should set any settings needed.
   129     <li>A <code>View</code> is inherently transparent.  While a view may render into its
   129     <li>A <code>View</code> is inherently transparent.  While a view may render into its
   130     entire allocation, typically a view does not.  Rendering is performed by
   130     entire allocation, typically a view does not.  Rendering is performed by
   131     tranversing down the tree of <code>View</code> implementations.
   131     traversing down the tree of <code>View</code> implementations.
   132     Each <code>View</code> is responsible
   132     Each <code>View</code> is responsible
   133     for rendering its children.  This behavior is depended upon for thread
   133     for rendering its children.  This behavior is depended upon for thread
   134     safety.  While view implementations do not necessarily have to be implemented
   134     safety.  While view implementations do not necessarily have to be implemented
   135     with thread safety in mind, other view implementations that do make use of
   135     with thread safety in mind, other view implementations that do make use of
   136     concurrency can depend upon a tree traversal to guarantee thread safety.
   136     concurrency can depend upon a tree traversal to guarantee thread safety.
   322      * parent view is functioning properly.  This is also
   322      * parent view is functioning properly.  This is also
   323      * the last method called, since it is called to indicate
   323      * the last method called, since it is called to indicate
   324      * the view has been removed from the hierarchy as
   324      * the view has been removed from the hierarchy as
   325      * well. When this method is called to set the parent to
   325      * well. When this method is called to set the parent to
   326      * null, this method does the same for each of its children,
   326      * null, this method does the same for each of its children,
   327      * propogating the notification that they have been
   327      * propagating the notification that they have been
   328      * disconnected from the view tree. If this is
   328      * disconnected from the view tree. If this is
   329      * reimplemented, <code>super.setParent()</code> should
   329      * reimplemented, <code>super.setParent()</code> should
   330      * be called.
   330      * be called.
   331      *
   331      *
   332      * @param parent the new parent, or <code>null</code> if the view is
   332      * @param parent the new parent, or <code>null</code> if the view is