Created
December 17, 2014 11:40
-
-
Save hofiorg/052ae410e92a3ad12322 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package bwl; | |
import com.ml.views.AusgabeFenster; | |
import com.ml.views.ZeichenFenster; | |
public class Programm { | |
public static void main(String[] args) { | |
ZeichenFenster z1 = new ZeichenFenster("Uebersicht"); | |
z1.linieZeichnen(100, 100, 100, 600, 10); | |
z1.linieZeichnen(100, 100, 600, 100, 10); | |
for(int i = 100; i <= 600; i = i + 100) { | |
z1.kreisZeichnen(100, i, 10); | |
z1.textZeichnen((i-100) * 10, 20, i); | |
} | |
BWLDatenbank bwl = new BWLDatenbank(); | |
Datenfeld df = bwl.einkommensListen10(); | |
AusgabeFenster aus = new AusgabeFenster("Einkommensliste"); | |
aus.ausgeben(df.toString()); | |
double wert1 = df.holeWertDouble(2, 1); | |
aus.ausgeben("Wert1: " + wert1); | |
aus.ausgeben(""); | |
int balkenX = 150; | |
for(int i = 1; i < 6; i = i + 1) { | |
double wert = df.holeWertDouble(2, i); | |
aus.ausgeben("Wert" + i + ": " + wert); | |
double y = (wert/10) + 100; | |
z1.linieZeichnen(balkenX, 100, balkenX, y, 20, "rot"); | |
z1.textZeichnen(wert, balkenX - 20, y + 20, "rot"); | |
balkenX = balkenX + 50; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment