< prev index next >

modules/graphics/src/test/java/com/sun/javafx/pgstub/StubToolkit.java

Print this page
rev 8906 : RT-46083: TimelineClipCore exceptions handling improvent


 674                            Path2D.WIND_NON_ZERO : Path2D.WIND_EVEN_ODD;
 675 
 676         return new SVGPathImpl(svgpath.getContent(), windingRule);
 677     }
 678 
 679     @Override
 680     public boolean imageContains(Object image, float x, float y) {
 681         return ((StubPlatformImage) image).getImageInfo()
 682                                           .contains((int) x, (int) y);
 683     }
 684 
 685     public void setCurrentTime(long millis) {
 686         masterTimer.setCurrentTime(millis);
 687     }
 688 
 689     public void handleAnimation() {
 690         if (animationRunnable != null) {
 691             try {
 692                 animationRunnable.run();
 693             } catch (Throwable t) {
 694                 t.printStackTrace();
 695             }
 696         }
 697     }
 698 
 699     public StubImageLoaderFactory getImageLoaderFactory() {
 700         return imageLoaderFactory;
 701     }
 702 
 703     public void setAnimationTime(final long millis) {
 704         setCurrentTime(millis);
 705         handleAnimation();
 706         fireTestPulse();
 707     }
 708 
 709     @Override
 710     public void installInputMethodRequests(TKScene scene, InputMethodRequests requests) {
 711         // just do nothing here.
 712     }
 713 
 714     private Map<String, KeyCode> charToKeyCodeMap;




 674                            Path2D.WIND_NON_ZERO : Path2D.WIND_EVEN_ODD;
 675 
 676         return new SVGPathImpl(svgpath.getContent(), windingRule);
 677     }
 678 
 679     @Override
 680     public boolean imageContains(Object image, float x, float y) {
 681         return ((StubPlatformImage) image).getImageInfo()
 682                                           .contains((int) x, (int) y);
 683     }
 684 
 685     public void setCurrentTime(long millis) {
 686         masterTimer.setCurrentTime(millis);
 687     }
 688 
 689     public void handleAnimation() {
 690         if (animationRunnable != null) {
 691             try {
 692                 animationRunnable.run();
 693             } catch (Throwable t) {
 694                 Thread.currentThread().getUncaughtExceptionHandler().uncaughtException(Thread.currentThread(), t);
 695             }
 696         }
 697     }
 698 
 699     public StubImageLoaderFactory getImageLoaderFactory() {
 700         return imageLoaderFactory;
 701     }
 702 
 703     public void setAnimationTime(final long millis) {
 704         setCurrentTime(millis);
 705         handleAnimation();
 706         fireTestPulse();
 707     }
 708 
 709     @Override
 710     public void installInputMethodRequests(TKScene scene, InputMethodRequests requests) {
 711         // just do nothing here.
 712     }
 713 
 714     private Map<String, KeyCode> charToKeyCodeMap;


< prev index next >