Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4284840

unclear doc for AbstractLayoutCache.getPreferredWidth

XMLWordPrintable

    • merlin
    • sparc
    • solaris_2.6



      Name: sdC67446 Date: 10/26/99


       The doc for method
           public int getPreferredWidth(Rectangle bounds)
       of class
           javax.swing.tree.AbstractLayoutCache
       says:


      public int getPreferredWidth(Rectangle bounds)

             Returns the preferred width for the passed in region. If bounds
             is null, the preferred width for all the nodes will be returned
             (and this may be VERY expensive).


      The doc should clarify what does it mean "preferred width for the
      passed in region":

       - the maximum width of the path which fits into the 'bounds'
          or
       - the minimum width of the path that is greater than or equal to
                                                    'bounds'.width

      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: