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

PlainView: Several methods should be protected so they can used in subclasses.

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.2.0
    • client-libs
    • beta
    • generic
    • generic



      Name: diC59631 Date: 01/07/99


      Several methods should be protected so they can be overridden, or called from a
      sublcass, in the case of the currently-private methods. These would be:
        [package] final void updateMetrics()
        [package] void updateDamage(DocumentEvent, Shape, ViewFactory)
        private void damageLineRange(int, int, Shape, Component)
        private Rectangle lineToRect(Shape, int)

      In the case in question, I need to do different processing in updateDamage. To
      do this, I must override every method that calls updateDamage to call my version
      instead, and I must also copy the private methods listed because I need to call
      them in my version of updateDamage.
      (Review ID: 48602)
      ======================================================================

            tprinzing Tim Prinzing (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: