diff options
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/Shape.java')
-rw-r--r-- | src/graphui/classes/com/jogamp/graph/ui/Shape.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java index d3b4bcbef..bfea0773f 100644 --- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java +++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java @@ -1239,7 +1239,7 @@ public abstract class Shape { this.zOffset = zOffset; setIO(IO_ACTIVE, v); if( DEBUG ) { - System.err.println("XXX Activation "+this); + System.err.println("XXX "+(v?" Active":"DeActive")+" "+this); } if( null != onActivationListener ) { onActivationListener.run(this); @@ -1252,6 +1252,15 @@ public abstract class Shape { /** Returns true of this shape is active */ public boolean isActive() { return isIO(IO_ACTIVE); } + protected final Listener forwardActivation = new Listener() { + @Override + public void run(final Shape shape) { + if( null != onActivationListener ) { + onActivationListener.run(shape); + } + } + }; + public float getAdjustedZ() { return getAdjustedZImpl(); } |