JDK-8102118 : Need to provide an easy means for application or utility developer to implement LOD
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 7u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2012-10-07
  • Updated: 2015-06-16
  • Resolved: 2013-02-12
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.
JDK 8
8Fixed
Related Reports
Blocks :  
Description
We have evaluated that LOD in the core is out of the scope for FX 8.0. However it should be doable to provide some form of API support to help application or utility to implement LOD support. This support can be as simple as returning the projected area of a Node.  
Comments
Resolved. rt: Changeset: 7677be81f484 Author: Yao Wang <yao.w.wang@oracle.com> Date: Fri Feb 08 11:17:20 2013 -0800 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt/rev/7677be81f484 rt-closed: Changeset: 50b618c935b0 Author: Yao Wang <yao.w.wang@oracle.com> Date: Fri Feb 08 11:18:35 2013 -0800 URL: http://jfxsrc.us.oracle.com/javafx/8.0/scrum/graphics/rt-closed/rev/50b618c935b0
12-02-2013

The API specification for this feature has been done and pushed into the 3D API sandbox: /** * A read only property that stores the computed area of this * {@code Node} projected onto the physical screen in pixel unit. */ private ReadOnlyDoubleWrapper areaInScreen;
06-11-2012

It would be good to have a way to get the final scale amount that would be applied to a node, accounting for the scale transforms applied to all parent nodes. Then combine this with a way to fade out over a certain range of scale and ultimate cease rendering completely when beyond the range for fading out. It should in fact have an option to replace the node with an alternate (null = nothing) so when text gets too small it can be replaced with a dotted line or something. The complications I see are when a node that is scaled small contains a child that is scaled larger - so the idea proposed in the description for attaching this to the visual area of the Node and it's descendants makes sense. Though this marked as depending on 3D geometry support, I do not feel that it is a 3D issue. A simple 2D scene - a map of the world for example, is a good test case. Consider your typical Google Maps implementation where streets and street names are only shown when zoomed in to the appropriate level.
08-10-2012