Removed unused stuff
This commit is contained in:
parent
c90a4029e8
commit
31b81cde1b
Binary file not shown.
@ -42,15 +42,6 @@ public class AppWindowController {
|
||||
|
||||
StreamingController previewController = new StreamingController(pixelStreamingView);
|
||||
|
||||
dashboardView.getReloadPixelStreamingViewButton()
|
||||
.addActionListener(e ->
|
||||
previewController.reloadStream("http://141.75.215.233")
|
||||
);
|
||||
|
||||
dashboardView.getOpenFullscreenButton()
|
||||
.addActionListener(e ->
|
||||
window.getStreamingView().requestFocus());
|
||||
|
||||
window.addWindowListener(new WindowAdapter() {
|
||||
@Override
|
||||
public void windowClosing(WindowEvent e) {
|
||||
|
||||
@ -13,7 +13,6 @@ public class DashboardController {
|
||||
|
||||
private final StatisticsService statisticsService;
|
||||
private final DashboardView dashboardView;
|
||||
private long lastDataVersion = -1;
|
||||
|
||||
public DashboardController(
|
||||
StatisticsService statisticsService,
|
||||
@ -44,11 +43,4 @@ public class DashboardController {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void loadChartData() {
|
||||
|
||||
List<RatioPoint> points = statisticsService.getLastNAverages(20);
|
||||
|
||||
dashboardView.updateChart(points);
|
||||
}
|
||||
}
|
||||
|
||||
@ -115,33 +115,9 @@ public class DashboardView extends JPanel {
|
||||
|
||||
card.add(chartPanel, BorderLayout.CENTER);
|
||||
|
||||
// ---------- SOUTH: Preview + Buttons ----------
|
||||
card.add(createBottomPanel(), BorderLayout.SOUTH);
|
||||
|
||||
add(card, BorderLayout.CENTER);
|
||||
}
|
||||
|
||||
private JPanel createBottomPanel() {
|
||||
|
||||
JPanel panel = new JPanel(new BorderLayout());
|
||||
panel.setBorder(BorderFactory.createEmptyBorder(10,0,0,0));
|
||||
|
||||
JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.RIGHT,10,5));
|
||||
|
||||
reloadPixelStreamingViewButton = new JButton("Reload Preview");
|
||||
openFullscreenButton = new JButton("Open Fullscreen");
|
||||
|
||||
reloadPixelStreamingViewButton.putClientProperty("JButton.buttonType", "roundRect");
|
||||
openFullscreenButton.putClientProperty("JButton.buttonType", "roundRect");
|
||||
|
||||
buttonPanel.add(reloadPixelStreamingViewButton);
|
||||
buttonPanel.add(openFullscreenButton);
|
||||
|
||||
panel.add(buttonPanel, BorderLayout.SOUTH);
|
||||
|
||||
return panel;
|
||||
}
|
||||
|
||||
public void updateChart(List<RatioPoint> points) {
|
||||
if (points == null || points.isEmpty())
|
||||
return;
|
||||
|
||||
@ -7,7 +7,7 @@ $signallingBat = "C:\Users\Student\Documents\Dannick\avatar\Windows\Prototyp1\Sa
|
||||
|
||||
$ueWorkingDir = "C:\Users\Student\Documents\Dannick\avatar\Windows"
|
||||
|
||||
$signalling = Start-Process -FilePath $signallingBat -PassThru
|
||||
$signalling = Start-Process -FilePath $signallingBat -PassThru -WindowStyle Hidden
|
||||
|
||||
Start-Sleep -Seconds 5
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user