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

RFE: Implement JViewport.setViewRect() (not equal to setViewPos + setViewSize)

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

      Name: jk109818 Date: 09/09/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


      FULL OPERATING SYSTEM VERSION :
      glibc-2.2.5, linux-2.4.19,
      ALT Linux Sisyphus (20020615)


      A DESCRIPTION OF THE PROBLEM :
      I'd like to see a JViewport.setViewRect() method - opposite
      to getViewRect(), analoguos to set/getViewSize()
      set/getViewPosition() pairs.

      It shouldn't be merely equal to calling
      setView{Size,Position} one after another: only one
        stateChange event should be fired, so that the scrollbars
      don't reflect two changes immediately one after another (and
      flicker) as it happens when the two present methods are
      called one after another.

      Such behaviour is required when a slightly unusual
      JScrollPane mode has to be implemented: as if the underlying
      view object grows in all directions.


      REPRODUCIBILITY :
      This bug can be reproduced always.
      (Review ID: 164205)
      ======================================================================

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

              Created:
              Updated:
              Imported:
              Indexed: