mirror of
https://github.com/jneug/zeichenmaschine.git
synced 2026-10-12 01:45:18 +02:00
Redraw Methode hinzugefügt
This commit is contained in:
@@ -48,7 +48,6 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
|
|||||||
private Object keyboardLock = new Object();
|
private Object keyboardLock = new Object();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Internal attributes for controlling the sketchmachine
|
|
||||||
* Interne Attribute zur Steuerung der Zeichenamschine.
|
* Interne Attribute zur Steuerung der Zeichenamschine.
|
||||||
*/
|
*/
|
||||||
//
|
//
|
||||||
@@ -115,6 +114,8 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
|
|||||||
|
|
||||||
frame.pack();
|
frame.pack();
|
||||||
frame.setResizable(false);
|
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.setLocationRelativeTo(null);
|
||||||
frame.setVisible(true);
|
frame.setVisible(true);
|
||||||
|
|
||||||
@@ -130,7 +131,7 @@ public class Zeichenmaschine extends Constants implements MouseInputListener, Ke
|
|||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: Implement in conjunction with Zeichenfenster
|
||||||
public final void createFrame( String title ) {
|
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() {
|
public void quit() {
|
||||||
quit(!IN_BLUEJ);
|
quit(!IN_BLUEJ);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user