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

Suggestion, Clipping should take a Rectangle2D instead of a Node

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • fx1.1.1
    • javafx

      Clipping and Masking are 2 different concepts and what JavaFX calls a clip on a node right now is really a mask.

      Clip should mean -> Define the renderable bounds of a Node and don't render outside that, bounds are defined as a Rectangle2D object
      Mask should mean -> Define a shape to display and a shape to mask against, the mask is then composited against the displayable shape to generate the final output.

      Right now JavaFX is using the concept of masking as a "clip" and it is an inefficient way to provide general purpose clipping. The most common implementations of clipping will be on text fields and groups and will be bounds oriented rather then shape oriented.

            kcr Kevin Rushforth
            schristmajfx Sean Christmann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: