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

Error in JDK documentation for javax.swing.plaf.TextUI.viewToModel()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta2
    • generic
    • generic



      Name: rmT116609 Date: 02/15/2001



      JDK 1.3 documentation for class javax.swing.plaf.TextUI :

      public abstract int viewToModel(JTextComponent t,
                                      Point pt,
                                      Position.Bias[] biasReturn)


      Provides a mapping from the view coordinate space to the logical coordinate
      space of the model. The biasReturn argument will be filled in to indicate that
      the point given is closer to the next character in the model or the previous
      character in the model.

      Parameters:

      x - the X coordinate >= 0
      y - the Y coordinate >= 0
      a - the allocated region to render into

      Returns:

      the location within the model that best represents the given point in the view
      >= 0. The biasReturn argument will be filled in to indicate that the point
      given is closer to the next character in the model or the previous character in
      the model.

      The parameters described in the parameters section are not parameters of the
      function.
      (Review ID: 117006)
      ======================================================================

            kwalrathsunw Kathy Walrath (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: