Summary: | Allow ScalableSurface.setSurfaceScale(..) of GLJPanel to happen in-between addNotify() and 1st display/initialization | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Sven Gothel <sgothel> |
Component: | core | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | martin.pernollet, sgothel |
Priority: | --- | ||
Version: | 2.3.0 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: |
a372a5db4e9c2d56545791a5a2233a5cdbd94523
|
Workaround: | --- |
Description
Sven Gothel
2014-11-12 19:54:13 CET
(In reply to comment #0) > Currently, GLCanvas and GLJPanel skip setSurfaceScale(..) if > the AWT/Swing component or the drawable backend is not yet realized. This is only true for GLJPanel, i.e. after addNotify() and 1st display/realization. > > Implementation shall earmark and validate the requested pixel-scale, > so it can be used at realization (1st display, visibility). In Jzy3d, I noticed the same behaviour for NewtCanvasAWT on MacOS 10.8.5 and 10.9. We are using it as follow : https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/src/awt/org/jzy3d/plot3d/rendering/canvas/CanvasNewtAwt.java Details here : https://github.com/jzy3d/jzy3d-api/issues/44 a372a5db4e9c2d56545791a5a2233a5cdbd94523 - Bug 1102: GLJPanel.setSurfaceScale(..) Allow setting non-initialized GLJPanel surface scale. TODO: More tests and probing before initialization. (In reply to comment #2) > In Jzy3d, I noticed the same behaviour for NewtCanvasAWT on MacOS 10.8.5 and > 10.9. > > We are using it as follow : > https://github.com/jzy3d/jzy3d-api/blob/master/jzy3d-api/src/awt/org/jzy3d/ > plot3d/rendering/canvas/CanvasNewtAwt.java > > Details here : > https://github.com/jzy3d/jzy3d-api/issues/44 IMHO this is a different issue. Please copy info and file a new bug, thx. |