mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-13 06:49:36 -04:00
fixed an issue in the screen shot generation
This commit is contained in:
parent
3e88b262ba
commit
eb19191ada
@ -110,15 +110,11 @@ public class ScreenShots {
|
|||||||
new GuiTester("../../main/dig/processor/Processor.dig", "examples/processor/Processor.dig")
|
new GuiTester("../../main/dig/processor/Processor.dig", "examples/processor/Processor.dig")
|
||||||
.press(' ')
|
.press(' ')
|
||||||
.delay(4000)
|
.delay(4000)
|
||||||
.add(new GuiTester.WindowCheck<>(GraphicDialog.class, (gt, gd) -> {
|
.add(new GuiTester.WindowCheck<>(Main.class, (gt, main) -> {
|
||||||
graphic = gd;
|
main.ensureModelIsStopped();
|
||||||
final Main main = (Main) gd.getParent();
|
main.getWindowPosManager().closeAll();
|
||||||
main.getCircuitComponent().requestFocus();
|
|
||||||
}))
|
}))
|
||||||
.delay(500)
|
.delay(500)
|
||||||
.press(' ')
|
|
||||||
.add((gt) -> graphic.dispose())
|
|
||||||
.delay(500)
|
|
||||||
.press("F1")
|
.press("F1")
|
||||||
.add(new MainScreenShot("distribution/screenshot.png"))
|
.add(new MainScreenShot("distribution/screenshot.png"))
|
||||||
.execute(); /**/
|
.execute(); /**/
|
||||||
@ -213,10 +209,10 @@ public class ScreenShots {
|
|||||||
.delay(500)
|
.delay(500)
|
||||||
.add(new GuiTester.WindowCheck<>(FSMFrame.class, (gt, fsmFrame) -> {
|
.add(new GuiTester.WindowCheck<>(FSMFrame.class, (gt, fsmFrame) -> {
|
||||||
fsmFrame.loadFile(trafficLight);
|
fsmFrame.loadFile(trafficLight);
|
||||||
fsmFrame.getContentPane().setPreferredSize(new Dimension(550, 400));
|
fsmFrame.getContentPane().setPreferredSize(new Dimension(500, 400));
|
||||||
fsmFrame.pack();
|
fsmFrame.pack();
|
||||||
final Point location = mainStatic.getLocation();
|
final Point location = mainStatic.getLocation();
|
||||||
fsmFrame.setLocation(location.x + 450, location.y + 120);
|
fsmFrame.setLocation(location.x + 500, location.y + 120);
|
||||||
fsmFrame.setAlwaysOnTop(true);
|
fsmFrame.setAlwaysOnTop(true);
|
||||||
fsmFrame.setTitle(trafficLight.getName());
|
fsmFrame.setTitle(trafficLight.getName());
|
||||||
mainStatic.requestFocus();
|
mainStatic.requestFocus();
|
||||||
@ -226,7 +222,7 @@ public class ScreenShots {
|
|||||||
.add(new GuiTester.CloseTopMost())
|
.add(new GuiTester.CloseTopMost())
|
||||||
.add(new GuiTester.CloseTopMost())
|
.add(new GuiTester.CloseTopMost())
|
||||||
.add(new GuiTester.CloseTopMost())
|
.add(new GuiTester.CloseTopMost())
|
||||||
.execute();
|
.execute();/**/
|
||||||
}
|
}
|
||||||
|
|
||||||
private static GuiTester.WindowCheck<Window> closeAllSolutionsDialog() {
|
private static GuiTester.WindowCheck<Window> closeAllSolutionsDialog() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user