scenerygraphics / scenery

Flexible VR Visualisation for Volumetric and Geometric Data on the Java VM, powered by Kotlin and Vulkan.
https://scenery.graphics
GNU Lesser General Public License v3.0
131 stars 32 forks source link

TransferFunctionEditor -Mig-Layout change to support dynamic resizes + Major BugFix #562

Closed PowerOfNames closed 1 year ago

PowerOfNames commented 1 year ago

This PR changes the Mig-Layout of the TransferFunctionEditor to support dynamic window resizes down to 0,0

There was also a major bug, where adding a control point, when the window size was smaller then the internal minimum chart draw size, results in a control point not at mouse-position. This bug was fixed by setting the minimum draw-sizes of the ChartPanel to 0.

Also: Refactored the panel adding to the SwingBridgeFrame, which now packs and sets visibility as well to simplify the API