121 |
|
|
122 |
@Override |
@Override |
123 |
public void run() { |
public void run() { |
124 |
|
long startT = System.currentTimeMillis(); |
125 |
try { |
try { |
126 |
renderer.addRenderListener(this); |
renderer.addRenderListener(this); |
127 |
LOGGER.debug("start rendering..."); |
// LOGGER.debug("start rendering..."); |
128 |
|
|
129 |
// Clear the graphics context |
// Clear the graphics context |
130 |
graphics.setBackground(mapPane.getMapBackgroundColor()); |
graphics.setBackground(mapPane.getMapBackgroundColor()); |
136 |
// Kill the reference to this Thread so #isRunning will say |
// Kill the reference to this Thread so #isRunning will say |
137 |
// false directly |
// false directly |
138 |
renderThread = null; |
renderThread = null; |
139 |
mapPane.onRenderingCompleted(); |
mapPane.onRenderingCompleted(System.currentTimeMillis()-startT); |
140 |
} catch (Exception e) { |
} catch (Exception e) { |
141 |
mapPane.onRenderingFailed(e); |
mapPane.onRenderingFailed(e); |
142 |
} finally { |
} finally { |