|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.fr.start.fx; |
|
|
|
package com.fr.start.fx; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
import com.fr.concurrent.NamedThreadFactory; |
|
|
|
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
import com.sun.javafx.iio.ImageFrame; |
|
|
|
import com.sun.javafx.iio.ImageFrame; |
|
|
|
import com.sun.javafx.iio.ImageLoadListener; |
|
|
|
import com.sun.javafx.iio.ImageLoadListener; |
|
|
|
import com.sun.javafx.iio.ImageLoader; |
|
|
|
import com.sun.javafx.iio.ImageLoader; |
|
|
@ -79,6 +80,7 @@ class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
|
|
|
|
@SuppressWarnings("squid:S2142") |
|
|
|
public PlatformImage getFrame(int index) { |
|
|
|
public PlatformImage getFrame(int index) { |
|
|
|
while (images[index] == null) { |
|
|
|
while (images[index] == null) { |
|
|
|
synchronized (this) { |
|
|
|
synchronized (this) { |
|
|
@ -86,7 +88,7 @@ class PrismImageLoader2 implements com.sun.javafx.tk.ImageLoader { |
|
|
|
try { |
|
|
|
try { |
|
|
|
this.wait(); |
|
|
|
this.wait(); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
} catch (InterruptedException e) { |
|
|
|
e.printStackTrace(); |
|
|
|
FineLoggerFactory.getLogger().error(e.getMessage(), e); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|