aboutsummaryrefslogtreecommitdiffstats
path: root/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java
diff options
context:
space:
mode:
authorSven Göthel <[email protected]>2024-02-04 20:49:20 +0100
committerSven Göthel <[email protected]>2024-02-04 20:49:20 +0100
commitec5d278a51eaaf4062010df41cf23f884e4b715b (patch)
treed3a5e0e680ad7a49b1325d7f74353f3021aefa40 /src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java
parentd35a9d954fbe638546f95f0122b8c083ee4bd809 (diff)
GraphUI Cleanup: Use TreeTool directly (Reduce virtl-funcs); Fix typos; Use PointerListener for onClicked(), add onHover();
Subsequent commits will fix complete cleanup where code was changed mostly regarding other issues.
Diffstat (limited to 'src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java')
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java
index fd4cd726f..ce810b3ef 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java
@@ -27,6 +27,7 @@
*/
package com.jogamp.graph.ui.widgets;
+import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import java.util.concurrent.atomic.AtomicReference;
@@ -52,7 +53,7 @@ import com.jogamp.graph.ui.shapes.Button;
import com.jogamp.graph.ui.shapes.Label;
import com.jogamp.graph.ui.shapes.MediaButton;
import com.jogamp.graph.ui.shapes.Rectangle;
-import com.jogamp.graph.ui.widgets.RangeSlider.SliderAdapter;
+import com.jogamp.graph.ui.widgets.RangeSlider.SliderListener;
import com.jogamp.math.FloatUtil;
import com.jogamp.math.Vec2f;
import com.jogamp.math.Vec3f;
@@ -70,6 +71,8 @@ import com.jogamp.opengl.util.av.GLMediaPlayer.GLMediaEventListener;
import com.jogamp.opengl.util.av.GLMediaPlayer.StreamException;
import com.jogamp.opengl.util.texture.TextureSequence;
+import jogamp.graph.ui.TreeTool;
+
/**
* Media player {@link Widget}, embedding a {@link MediaButton} and its controls.
* @see #MediaPlayer(int, Scene, GLMediaPlayer, Uri, int, float, boolean, float, List)
@@ -620,7 +623,7 @@ public class MediaPlayer extends Widget {
mButton.setPressedColorMod(1f, 1f, 1f, 0.85f);
}
} );
- this.forAll((final Shape s) -> { s.setDraggable(false).setResizable(false); return false; });
+ TreeTool.forAll(this, (final Shape s) -> { s.setDraggable(false).setResizable(false); return false; });
ctrlSlider.getKnob().setDraggable(true);
}