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

Remove AWT dependencies from Decora to improve portability

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: fx1.2
    • Fix Version/s: fx1.2
    • Component/s: javafx
    • Labels:

      Description

      There are currently a few dependencies on AWT classes in the "public" Decora API and throughout the implementation. We need to cut as many of those dependencies as possible so that we can port Decora to other graphics stacks that have little or no AWT support (mainly in the mobile space).

      These changes only affect the implementation of Decora and Scenario; there will be no impact on the public-facing JavaFX API.

      The first step is to remove the use of java.awt.GraphicsConfiguration from the Decora API and replace it with a more general FilterContext class. In most places we're only using the GraphicsConfig parameter as a unique key, e.g. in associating cached images with a particular screen.

      The next steps involve trimming the use of java.awt.Image and java.awt.Graphics2D from the Decora API and replacing them with more general equivalents.

        Attachments

          Activity

            People

            • Assignee:
              campbell Christopher Campbell (Inactive)
              Reporter:
              campbell Christopher Campbell (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: