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/Group.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/Group.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Group.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Group.java b/src/graphui/classes/com/jogamp/graph/ui/Group.java index aa5079b02..e5f98d164 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Group.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Group.java @@ -219,7 +219,7 @@ public class Group extends Shape implements Container { final int shapeCount = shapesS.length; for(int i=0; i<shapeCount; i++) { final Shape shape = (Shape) shapesS[i]; - if( shape.isEnabled() ) { + if( shape.isVisible() ) { pmv.pushMv(); shape.setTransformMv(pmv); @@ -319,12 +319,12 @@ public class Group extends Shape implements Container { final int myRMs = Region.isVBAA(firstRMs) ? Region.VBAA_RENDERING_BIT : 0; border = new Rectangle(myRMs, box, getBorderThickness()); } else { - border.setEnabled(true); + border.setVisible(true); border.setBounds(box, getBorderThickness()); } border.setColor(getBorderColor()); } else if( null != border ) { - border.setEnabled(false); + border.setVisible(false); } } } |