pixelSize = (int) ((zeilen * width) / partListDO.getGroesse());
pixelSize = (int) ((zeilen * width) / partListDO.getGroesse() ); miniFile = true;
    public void setPartList(PartListDO partListDO) {        try {            this.partListDO = partListDO;            height = (int) getSize().getHeight();            width = (int) getSize().getWidth();            if (partListDO != null) {                int zeilenHoehe = 15;                int zeilen = height / zeilenHoehe;                int pixelSize = (int) (partListDO.getGroesse() / (zeilen * width));                if (pixelSize == 0){                    pixelSize = (int) ((zeilen * width) / partListDO.getGroesse());                }                BufferedImage tempImage = new BufferedImage(width * zeilen, 15,                                          BufferedImage.TYPE_INT_ARGB);                Graphics graphics = tempImage.getGraphics();                int obenLinks = 0;                int breite = 0;                Part[] parts = partListDO.getParts();                for (int i=0; i<parts.length-1; i++){                    drawPart(false, (partListDO.getPartListType()==PartListDO.MAIN_PARTLIST),                             graphics, pixelSize, parts[i].getType(), zeilenHoehe,                                         parts[i].getFromPosition(), parts[i+1].getFromPosition());                }                if (parts[parts.length - 1].getFromPosition()<partListDO.getGroesse()){                    drawPart(true,                             (partListDO.getPartListType() == PartListDO.MAIN_PARTLIST),                             graphics, pixelSize,                             parts[parts.length - 1].getType(), zeilenHoehe,                             parts[parts.length - 1].getFromPosition(),                             partListDO.getGroesse());                }                if (partListDO.getPartListType()==PartListDO.MAIN_PARTLIST){                    DownloadDO downloadDO = (DownloadDO)partListDO.getValueDO();                    if (downloadDO.getStatus() == DownloadDO.SUCHEN_LADEN) {                        DownloadSourceDO[] sources = downloadDO.getSources();                        for (int i = 0; i < sources.length; i++) {                            if (sources[i].getStatus() ==                                DownloadSourceDO.UEBERTRAGUNG) {                                obenLinks = sources[i].getDownloadFrom() /                                    pixelSize;                                breite = (sources[i].getDownloadTo() /                                    pixelSize) - obenLinks;                                graphics.setColor(getColorByPercent(sources[i].getReadyPercent()));                                graphics.fillRect(obenLinks, 0,                                                  breite, zeilenHoehe);                            }                        }                    }                }                else{                    DownloadSourceDO downloadSourceDO = (DownloadSourceDO)partListDO.getValueDO();                    if (downloadSourceDO.getStatus()==downloadSourceDO.UEBERTRAGUNG){                        obenLinks = downloadSourceDO.getDownloadFrom() /                            pixelSize;                        breite = (downloadSourceDO.getDownloadTo() /                            pixelSize) - obenLinks;                        graphics.setColor(getColorByPercent(downloadSourceDO.getReadyPercent()));                        graphics.fillRect(obenLinks, 0,                                          breite, zeilenHoehe);                    }                }                image = new BufferedImage(width, height,                                          BufferedImage.TYPE_INT_ARGB);                Graphics g = image.getGraphics();                int x = 0;                for (int i=0; i<zeilen; i++){                    g.drawImage(tempImage.getSubimage(x, 0, width, zeilenHoehe), 0, i*zeilenHoehe, null);                    x += width;                }            }            updateUI();        }        catch (Exception e) {            if (logger.isEnabledFor(Level.ERROR)) {                logger.error("Unbehandelte Exception", e);            }        }    }