diff options
author | Sven Gothel <sgothel@jausoft.com> | 2023-12-18 02:34:17 +0100 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2023-12-18 02:34:17 +0100 |
commit | 8b30ea9859fb1a1e9d1a373a0e355748b9a7c8ef (patch) | |
tree | 58b42d390c25c384cf9ad57565ede90723fb5f5d /src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java | |
parent | b7f8a70674e36a8c324f91d0f73f89667c3c8300 (diff) |
GraphUI Shape: Rename [set|is]{Enabled -> Visible}(..) for clarity
Note that invisible shapes are still considered for picking/activation.
To completely mute the shape, issue {@link #setInteractive(boolean)} as well.
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java b/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java index b17399a01..f28c8984e 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java +++ b/src/graphui/classes/com/jogamp/graph/ui/AnimGroup.java @@ -737,9 +737,9 @@ public class AnimGroup extends Group { pos.add( p_t.normalize().scale( dxy ) ); } if( clip.intersects2DRegion(pos.x(), pos.y(), sd.shape.getScaledWidth(), sd.shape.getScaledHeight()) ) { - sd.shape.setEnabled(true); + sd.shape.setVisible(true); } else { - sd.shape.setEnabled(false); + sd.shape.setVisible(false); } sd.shape.moveTo(pos); return true; |