mirror of
https://github.com/badvision/jace.git
synced 2024-06-08 09:29:32 +00:00
0ccb63558f
The video rendering was re-written to use writableImages and is displaying (something) but keyboard input and configurations are broken so nothing much happens after the inital boot. Basically the underlying part to make this show up in JavaFX is starting to take shape.
41 lines
1011 B
Java
41 lines
1011 B
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package jace;
|
|
|
|
import jace.core.Video;
|
|
import javafx.scene.canvas.Canvas;
|
|
import java.util.ResourceBundle;
|
|
import javafx.fxml.FXML;
|
|
import javafx.scene.image.ImageView;
|
|
import javafx.scene.layout.Region;
|
|
|
|
/**
|
|
*
|
|
* @author blurry
|
|
*/
|
|
public class JaceUIController {
|
|
@FXML
|
|
private ResourceBundle resources;
|
|
|
|
@FXML
|
|
private Region notificationRegion;
|
|
|
|
@FXML
|
|
private ImageView appleScreen;
|
|
|
|
|
|
@FXML
|
|
public void initialize() {
|
|
assert notificationRegion != null : "fx:id=\"notificationRegion\" was not injected: check your FXML file 'JaceUI.fxml'.";
|
|
assert appleScreen != null : "fx:id=\"appleScreen\" was not injected: check your FXML file 'JaceUI.fxml'.";
|
|
}
|
|
|
|
public void connectScreen(Video video) {
|
|
appleScreen.setImage(video.getFrameBuffer());
|
|
}
|
|
}
|