aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/Shape.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Shape.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Shape.java13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
index face8fc8f..183f8901e 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
@@ -1610,14 +1610,13 @@ public abstract class Shape {
}
}
/** Returns true of this shape is active */
- public boolean isActive() { return isIO(IO_ACTIVE); }
+ public final boolean isActive() { return isIO(IO_ACTIVE); }
- protected final Listener forwardActivation = new Listener() {
- @Override
- public void run(final Shape shape) {
- dispatchActivationEvent(shape);
- }
- };
+ /* pp */ void setActiveTopLevel(final boolean v, final float zOffset) {
+ setZOffset(zOffset);
+ setIO(IO_ACTIVE, v);
+ dispatchActivationEvent(this);
+ }
public final float getAdjustedZ() {
return position.z() * getScale().z() + zOffset;