Redraw Methode hinzugefügt

This commit is contained in:
ngb
2022-01-05 17:17:51 +01:00
parent ba90f7d041
commit 0c55ded796

View File

@@ -48,7 +48,6 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
private Object keyboardLock = new Object();
/*
* Internal attributes for controlling the sketchmachine
* Interne Attribute zur Steuerung der Zeichenamschine.
*/
//
@@ -115,6 +114,8 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
frame.pack();
frame.setResizable(false);
// TODO: Center on current display (not main display by default)
// TODO: Position at current BlueJ windows if IN_BLUEJ
frame.setLocationRelativeTo(null);
frame.setVisible(true);
@@ -130,7 +131,7 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
initialized = true;
}
// TODO: Implement in conjunction with Zeichenfenster
public final void createFrame( String title ) {
}
@@ -147,6 +148,14 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
}
}
public final void redraw() {
canvas.render();
//canvas.invalidate();
//frame.repaint();
//hide();
//show();
}
public void quit() {
quit(!IN_BLUEJ);
}