diff options
author | Sven Göthel <[email protected]> | 2024-02-04 20:55:39 +0100 |
---|---|---|
committer | Sven Göthel <[email protected]> | 2024-02-04 20:55:39 +0100 |
commit | 8df74578481431768b3c26294c6bd64ed7030ae5 (patch) | |
tree | d4b99340f3fe5c9ffdf90740036fb6f109aae2b7 /src/test/com/jogamp/opengl | |
parent | ec5d278a51eaaf4062010df41cf23f884e4b715b (diff) |
Bug 1498: GraphUI: Adopt RangedSlider to new picking (coming up), simplifies code.
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/graph/FontViewListener01.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/graph/FontViewListener01.java b/src/test/com/jogamp/opengl/test/junit/graph/FontViewListener01.java index 3a2255a33..624ea0d58 100644 --- a/src/test/com/jogamp/opengl/test/junit/graph/FontViewListener01.java +++ b/src/test/com/jogamp/opengl/test/junit/graph/FontViewListener01.java @@ -37,7 +37,9 @@ import com.jogamp.graph.ui.layout.BoxLayout; import com.jogamp.graph.ui.layout.Gap; import com.jogamp.graph.ui.layout.GridLayout; import com.jogamp.graph.ui.shapes.GlyphShape; +import com.jogamp.math.Vec3f; import com.jogamp.math.geom.AABBox; +import com.jogamp.newt.event.MouseEvent; import com.jogamp.newt.opengl.GLWindow; import com.jogamp.opengl.GL; import com.jogamp.opengl.GL2ES2; @@ -145,12 +147,9 @@ public class FontViewListener01 implements GLEventListener { } final GlyphShape glyphShape = new GlyphShape(renderModes, glyph, 0, 0); glyphShape.setColor(0.1f, 0.1f, 0.1f, 1); - glyphShape.setDragAndResizeable(false); - glyphShape.onClicked( new Shape.Listener() { - @Override - public void run(final Shape shape) { - System.err.println( ((GlyphShape)shape).getGlyph().toString() ); - } + glyphShape.setDragAndResizable(false); + glyphShape.onClicked( (final Shape shape, final Vec3f pos, final MouseEvent e) -> { + System.err.println( ((GlyphShape)shape).getGlyph().toString() ); }); glyphShape.validate(gl); |