feat(studio): adopt the 640x360 native graphics contract
Test / Tests and coverage
Intrepid/Prometeu/Studio/pipeline/head This commit looks good

Update the new JavaFX UI's frame sizing and pointer cancellation while
preserving zoom and scrolling. Adapt Pong, Fragments and the camera scene
to the native viewport, and update exact visual references and IPC fixtures.

Build and run all three examples against qualified installed runtimes.
Observe an actual Pong paddle collision and verify native frame captures.
Retain the qualification evidence generated for the tested native bundles.

Validated by the complete verify and desktop integration gates, including
the existing 30-second Play measurement and 20 Play/Stop cycles.

Work: WRK-0016 / DEC-0001 / PLN-0001
Commit and push explicitly authorized by the user after completion.
This commit is contained in:
2026-11-20 10:34:45 +00:00
parent 71b62a8e0a
commit 666a36d133
20 changed files with 13649 additions and 88 deletions
@@ -18,7 +18,7 @@ public final class PlaybackViewport extends BorderPane implements AutoCloseable
private final EnumSet<KeyCode> pressed=EnumSet.noneOf(KeyCode.class);
private final AnimationTimer timer;
private WritableImage writable;
private int zoom=1,width=480,height=270,touchX=-1,touchY=-1;
private int zoom=1,width=0,height=0,touchX=-1,touchY=-1;
private boolean touching;
private long painted,lastFrame;
private final long[] latencies=new long[2048];
@@ -33,6 +33,7 @@ public final class PlaybackViewport extends BorderPane implements AutoCloseable
surface.focusedProperty().addListener((o,a,b)->{if(!b)neutralize();});
image.setOnMousePressed(e->{surface.requestFocus();touch(e,true);});
image.setOnMouseDragged(e->touch(e,true));
image.setOnMouseExited(e->{if(touching){touching=false;touchX=touchY=-1;send();}});
surface.addEventFilter(MouseEvent.MOUSE_RELEASED,e->{if(e.getButton()==MouseButton.PRIMARY)touch(e,false);});
timer=new AnimationTimer(){@Override public void handle(long now){paint();}};timer.start();
}
@@ -61,6 +62,8 @@ public final class PlaybackViewport extends BorderPane implements AutoCloseable
case Q->8;case E->9;case Z->10;case SHIFT->11;default->-1;};}
private void touch(MouseEvent event,boolean down){
if(down&&!event.isPrimaryButtonDown())return;
// After leaving the image, dragging back with the button held cannot recapture.
if(down&&!touching&&event.getEventType()!=MouseEvent.MOUSE_PRESSED)return;
var p=image.sceneToLocal(event.getSceneX(),event.getSceneY());
int x=(int)Math.floor(p.getX()/zoom),y=(int)Math.floor(p.getY()/zoom);
touching=down&&state.get()==ExecutionState.RUNNING&&x>=0&&y>=0&&x<width&&y<height;