summaryrefslogtreecommitdiffstats
path: root/src/graphui/classes
diff options
context:
space:
mode:
Diffstat (limited to 'src/graphui/classes')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java b/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
index d94ff286a..5c5fc25b9 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/Scene.java
@@ -30,6 +30,7 @@ package com.jogamp.graph.ui.gl;
import java.nio.ByteBuffer;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collection;
import java.util.Comparator;
import com.jogamp.opengl.FPSCounter;
@@ -198,6 +199,12 @@ public final class Scene implements GLEventListener {
public void removeShape(final Shape b) {
shapes.remove(b);
}
+ public void addShapes(final Collection<? extends Shape> shapes) {
+ this.shapes.addAll(shapes);
+ }
+ public void removeShapes(final Collection<? extends Shape> shapes) {
+ this.shapes.removeAll(shapes);
+ }
public Shape getShapeByIdx(final int id) {
if( 0 > id ) {
return null;