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

RFE: scrollRectToVisible Policies

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.2
    • client-libs



      Name: jk109818 Date: 08/29/2003


      A DESCRIPTION OF THE REQUEST :
      It seems the scrollRectToVisible method of scrollable containers (JComponent, JViewport, etc.) could use guidance from a policy as to its behaviour.

      JUSTIFICATION :
      This enhancement would simplify GUI design and control.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Amongst the policies one can expect would be:
      a) The top/left edge is top/left aligned
      b) The bottom/right edge is bottom/right aligned
      c) The requested rectangle is centred
      d) Minimal scrolling (e.g. pick a or c such that the number of rows/columns scrolled is minimised [c will always lose this contest])

      These behaviours apply equally when the requested rectangle is smaller than or greater than the viewport.
        To maximise flexibility, the policy should be independently settable horizontally and vertically.
      (Incident Review ID: 200916)
      ======================================================================

            Unassigned Unassigned
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: