< prev index next >
modules/graphics/src/main/java/javafx/scene/Group.java
Print this page
*** 78,87 ****
--- 78,91 ----
public class Group extends Parent {
static {
// This is used by classes in different packages to get access to
// private and package private methods.
GroupHelper.setGroupAccessor(new GroupHelper.GroupAccessor() {
+ @Override
+ public Bounds doComputeLayoutBounds(Node node) {
+ return ((Group) node).doComputeLayoutBounds();
+ }
});
}
{
// To initialize the class helper at the begining each constructor of this class
*** 163,182 ****
*/
@Override public ObservableList<Node> getChildren() {
return super.getChildren();
}
!
! /**
! * @treatAsPrivate implementation detail
! * @deprecated This is an internal API that is not intended for use and will be removed in the next version
*/
! @Deprecated
! @Override
! protected Bounds impl_computeLayoutBounds() {
layout(); // Needs to done prematurely, as we otherwise don't know the bounds of the children
! return super.impl_computeLayoutBounds();
}
/**
* Group defines the preferred width as simply being the width of its layout bounds, which
* in turn is simply the sum of the positions & widths of all of its children. That is,
--- 167,182 ----
*/
@Override public ObservableList<Node> getChildren() {
return super.getChildren();
}
! /*
! * Note: This method MUST only be called via its accessor method.
*/
! private Bounds doComputeLayoutBounds() {
layout(); // Needs to done prematurely, as we otherwise don't know the bounds of the children
! return null; // helper only requires this node to call layout().
}
/**
* Group defines the preferred width as simply being the width of its layout bounds, which
* in turn is simply the sum of the positions & widths of all of its children. That is,
< prev index next >