summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphui/classes/com/jogamp')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/Shape.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/Shape.java b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
index e9bf840ef..faa14b298 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/Shape.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/Shape.java
@@ -1033,24 +1033,26 @@ public abstract class Shape {
return this;
}
- public final void addMouseListener(final MouseGestureListener l) {
+ public final Shape addMouseListener(final MouseGestureListener l) {
if(l == null) {
- return;
+ return this;
}
@SuppressWarnings("unchecked")
final ArrayList<MouseGestureListener> clonedListeners = (ArrayList<MouseGestureListener>) mouseListeners.clone();
clonedListeners.add(l);
mouseListeners = clonedListeners;
+ return this;
}
- public final void removeMouseListener(final MouseGestureListener l) {
+ public final Shape removeMouseListener(final MouseGestureListener l) {
if (l == null) {
- return;
+ return this;
}
@SuppressWarnings("unchecked")
final ArrayList<MouseGestureListener> clonedListeners = (ArrayList<MouseGestureListener>) mouseListeners.clone();
clonedListeners.remove(l);
mouseListeners = clonedListeners;
+ return this;
}
/**