System.out.println("valueY" + valueY + " - Maximum:"+ maximum);
	public void paint() {		//setting the Canvas Background to the parents Background				drawBoard.setBackground(new Color(null,255,255,255));		drawBoard.fillRectangle(0,0,parent.getBounds().width,parent.getBounds().height);		//g2d.setColor(green);				int which = 0;		int maximum = 20;		while (graphs[which]!=null)				{			int red = graphs[which].getGraphColor().getRed();			int blue = graphs[which].getGraphColor().getBlue();			int green = graphs[which].getGraphColor().getGreen();						Color graphColor = new Color(null,red,blue,green);			drawBoard.setForeground(graphColor);			int width = parent.getBounds().width;			int height = parent.getBounds().height;			int fac = 0;						StatisticPoint lastPoint = graphs[which].getLast();			StatisticPoint actualPoint = lastPoint;			int k = 0;			int valueY = 0;			while ( (k<=width) & (actualPoint.getPrev()!=null))			{				System.out.println("drawPoint");				valueY = (int)(actualPoint.getValue())/10;				if (valueY > maximum) 				{					maximum = valueY;								} 				fac = height/maximum; 				System.out.println("valueY" + valueY + " - Maximum:"+ maximum);				valueY = height - valueY*fac;								drawBoard.drawLine(k,height,k,valueY);				actualPoint = actualPoint.getPrev();				k++;			}			double vv = (double)graphs[which].getLast().getValue()/100;									System.out.println("wert:" + (height-(int)vv));			int textPosition = height - graphs[which].getLast().getValue()/10*fac;			Color aimColor = new Color(null,0,0,0);			drawBoard.setForeground(aimColor);			drawBoard.setBackground(new Color(null,255,255,255));			drawBoard.fillRoundRectangle(10,textPosition-3,90,20,7,7);			drawBoard.drawRoundRectangle(10,textPosition-3,90,20,7,7);			drawBoard.drawText("wert: " +vv,0+20,textPosition);			drawBoard.drawLine(10,textPosition,0,height - graphs[which].getLast().getValue()/10*fac);						which++;								}															}