Viele weitere Beispielprojekt für verschiedene Anwendungen

This commit is contained in:
ngb
2022-06-19 22:26:01 +02:00
parent dc6b7ee351
commit a2d883305a
97 changed files with 2535 additions and 61 deletions

View File

@@ -0,0 +1,29 @@
import schule.ngb.zm.Drawable;
import schule.ngb.zm.DrawableLayer;
import schule.ngb.zm.Zeichenmaschine;
public class Leinwand {
private final Zeichenmaschine zm;
private final DrawableLayer zeichenflaeche;
public Leinwand() {
zm = new Zeichenmaschine(800, 800, "ZM: Shapes", false);
zeichenflaeche = new DrawableLayer();
zm.addLayer(zeichenflaeche);
}
public void anzeigen( Drawable pForm ) {
zeichenflaeche.add(pForm);
}
public void beenden() {
zm.exit();
}
public void zeichnen() {
zm.redraw();
}
}