Login  Register

Re: Graph Type Rendering Updates (Graph UI)

Posted by Sven Gothel on Dec 19, 2023; 4:55pm
URL: https://forum.jogamp.org/Graph-Type-Rendering-Updates-Graph-UI-tp4042173p4043220.html

As earlier posted ..
A little GraphUI widget progress ..

Pushed GraphUI's MediaUI01 media widget, screenshot.

This is part of Bug 805
...

Organized the (new) 'Widget' (Bug 805)
commit feb3d34be097bcbef5ebc40342b405a832ac581f

Bug 805: GraphUI: Add Widget 'marker' (a Group), derived by {MediaUI01 -> MediaPlayer} and new RangeSlider

- A widget specifies specific UI semantics including individual controls.
- Being a {@link Group}, implementations provide shape(s) and its instance can be added to the user's scene.
- Due to the specific nature of widgets,
  individual controls/listener may be provided with semantic values.

+++

MediaPlayer exposes a RangeSlider for current position (view and control).
...

Hence GraphUI is ready to implement these so called widgets,
i.e. higher level UI elements based on Group and Shape(s)
and using more convenient CSS like layouting (padding, gap, ..).

See examples
- RangeSlider https://jogamp.org/cgit/jogl.git/tree/src/graphui/classes/com/jogamp/graph/ui/widgets/RangeSlider.java#n46
- MediaPlayer https://jogamp.org/cgit/jogl.git/tree/src/graphui/classes/com/jogamp/graph/ui/widgets/MediaPlayer.java#n71

Edit: Updated MediaPlayer screenshot