< prev index next >

modules/graphics/src/main/java/com/sun/javafx/scene/GroupHelper.java

Print this page

        

*** 25,34 **** --- 25,35 ---- package com.sun.javafx.scene; import com.sun.javafx.sg.prism.NGNode; import com.sun.javafx.util.Utils; + import javafx.geometry.Bounds; import javafx.scene.Group; import javafx.scene.Node; /** * Used to access internal methods of Group.
*** 54,70 **** --- 55,78 ---- @Override protected NGNode createPeerImpl(Node node) { return super.createPeerImpl(node); } + @Override + protected Bounds computeLayoutBoundsImpl(Node node) { + groupAccessor.doComputeLayoutBounds(node); + return super.computeLayoutBoundsImpl(node); + } + public static void setGroupAccessor(final GroupAccessor newAccessor) { if (groupAccessor != null) { throw new IllegalStateException(); } groupAccessor = newAccessor; } public interface GroupAccessor { + Bounds doComputeLayoutBounds(Node node); } }
< prev index next >