JDK-8099329 : Need way of knowing location of Scene within Stage
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2009-01-28
  • Updated: 2015-06-16
  • Resolved: 2009-08-21
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
fx1.3Fixed
Related Reports
Blocks :  
Duplicate :  
Relates :  
Description
A scene sits within a Stage offset by the stages insets caused by window decorations on desktop platforms. The developer needs a way to know these insets so that a Stage can be resized to fit a particular sized content. Like what is done for them at startup by setting the Scene's width and height and not setting them on Stage. The suggestion is to add "stageArea:javafx.geom.Rectangle2D" attribute to Stage which contains the location of the Scene within the Stage. With this information the developer has they need to be able to resize the Stage or calculate the location of any content relative to the screen.

Comments
details: http://jfxsrc.sfbay.sun.com/javafx/soma/scrum/graphics/runtime/rev/eb5f61a4a84f changeset: 3449:eb5f61a4a84f user: tdv date: Fri Aug 21 11:09:57 2009 -0700 description: Fixed RT-3215: Need way of knowing location of Scene within Stage, and RT-5333 Prism/NEWT: window insets support Note: you will need to run 'ant update-cache' in jfx/ and also rebuild netbeans references: cd runtime rm */nbproject/private/private.properties ant resolve-nb-refs
21-08-2009

details: http://jfxsrc.sfbay.sun.com/javafx/soma/scrum/graphics/runtime/rev/51c1a93d84a1 changeset: 3437:51c1a93d84a1 user: tdv date: Thu Aug 20 14:43:51 2009 -0700 description: Partial RT-3215: Need way of knowing location of Scene within Stage (swing stack only with this check in) Update scene.x/y to Stage's insets. This semantic may change later if we allow multiple scenes in a stage, at which point we may introduce Insets, but for now this is sufficient (and doesn't preclude from future changes). Prism part of the fix is awaiting synchronisation with jogl/newt for Insets implementation (see RT-5333)
20-08-2009

I have a preliminary patch for this. There are graphic and semantic issues between Stage and Scene that need to be resolved in the reconstituted architecture group.
02-02-2009