stream reading improvements, collecting dump infos can be disabled

This commit is contained in:
honfika
2014-06-28 22:09:14 +02:00
parent af42bb3f7d
commit 53714b0450
9 changed files with 239 additions and 491 deletions

View File

@@ -61,7 +61,7 @@ public class LoadingPanel extends JPanel {
private synchronized void redrawImage(int size) {
if (drawTimer != null) {
drawTimer.cancel();;
drawTimer.cancel();
drawTimer = null;
}
BufferedImage bi = new BufferedImage(size, size, BufferedImage.TYPE_INT_ARGB);
@@ -105,12 +105,14 @@ public class LoadingPanel extends JPanel {
@Override
public void run() {
double rot2 = rotation - Math.PI * 2 / segments;
if (rot2 < 0) {
rot2 += Math.PI * 2;
if (isVisible()) {
double rot2 = rotation - Math.PI * 2 / segments;
if (rot2 < 0) {
rot2 += Math.PI * 2;
}
setRotation(rot2);
repaint();
}
setRotation(rot2);
repaint();
}
}, idelay, idelay);
}