Removed unused stuff

This commit is contained in:
Niklas Aumueller 2026-03-05 13:28:24 +01:00
parent c90a4029e8
commit 31b81cde1b
5 changed files with 1 additions and 42 deletions

View File

@ -42,15 +42,6 @@ public class AppWindowController {
StreamingController previewController = new StreamingController(pixelStreamingView); 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() { window.addWindowListener(new WindowAdapter() {
@Override @Override
public void windowClosing(WindowEvent e) { public void windowClosing(WindowEvent e) {

View File

@ -13,7 +13,6 @@ public class DashboardController {
private final StatisticsService statisticsService; private final StatisticsService statisticsService;
private final DashboardView dashboardView; private final DashboardView dashboardView;
private long lastDataVersion = -1;
public DashboardController( public DashboardController(
StatisticsService statisticsService, StatisticsService statisticsService,
@ -44,11 +43,4 @@ public class DashboardController {
} }
}); });
} }
public void loadChartData() {
List<RatioPoint> points = statisticsService.getLastNAverages(20);
dashboardView.updateChart(points);
}
} }

View File

@ -115,33 +115,9 @@ public class DashboardView extends JPanel {
card.add(chartPanel, BorderLayout.CENTER); card.add(chartPanel, BorderLayout.CENTER);
// ---------- SOUTH: Preview + Buttons ----------
card.add(createBottomPanel(), BorderLayout.SOUTH);
add(card, BorderLayout.CENTER); 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) { public void updateChart(List<RatioPoint> points) {
if (points == null || points.isEmpty()) if (points == null || points.isEmpty())
return; return;

View File

@ -7,7 +7,7 @@ $signallingBat = "C:\Users\Student\Documents\Dannick\avatar\Windows\Prototyp1\Sa
$ueWorkingDir = "C:\Users\Student\Documents\Dannick\avatar\Windows" $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 Start-Sleep -Seconds 5