From 47f5e083ba79ac02590a452149e31bf433109346 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 18 Dec 2023 09:11:44 +0100 Subject: Bug 805: GraphUI: Add Group.replaceShape(..) and Shape.getParent() Group.replaceShape(..) allows replacing a shape w/o disturbing a layout, e.g. to zoom one element by taking it out of a grid-group and placing it on-top of the Scene while using a placeholder in the grid until returned. Shape.getParent() - depending on use-case (w/o DAG) - allows access and control of a shape's Group. --- src/graphui/classes/com/jogamp/graph/ui/Container.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/graphui/classes/com/jogamp/graph/ui/Container.java') diff --git a/src/graphui/classes/com/jogamp/graph/ui/Container.java b/src/graphui/classes/com/jogamp/graph/ui/Container.java index 32da78791..dd8fe99f9 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Container.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Container.java @@ -79,6 +79,7 @@ public interface Container { Shape getShapeByID(final int id); Shape getShapeByName(final String name); + /** Returns {@link AABBox} dimension of given {@link Shape} from this container's perspective, i.e. world-bounds if performing from the {@link Scene}. */ AABBox getBounds(final PMVMatrix4f pmv, Shape shape); /** Enable or disable {@link PMVMatrix4f#getFrustum()} culling per {@link Shape}. Default is disabled. */ -- cgit v1.2.3