aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/Container.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-12-18 09:11:44 +0100
committerSven Gothel <[email protected]>2023-12-18 09:11:44 +0100
commit47f5e083ba79ac02590a452149e31bf433109346 (patch)
tree64bafcb31731310b79acb56416cd2f26d6a2ec75 /src/graphui/classes/com/jogamp/graph/ui/Container.java
parentd99c2d8b28470d335ab5b30124ef8b0607b3b90f (diff)
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.
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Container.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Container.java1
1 files changed, 1 insertions, 0 deletions
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. */