test-stub-toolkit/src/com/sun/javafx/pgstub/StubToolkit.java

Print this page




  64 import com.sun.javafx.geom.Rectangle;
  65 import com.sun.javafx.geom.Path2D;
  66 import com.sun.javafx.geom.Shape;
  67 import com.sun.javafx.geom.transform.Affine3D;
  68 import com.sun.javafx.geom.transform.BaseTransform;
  69 import com.sun.javafx.geom.transform.GeneralTransform3D;
  70 import com.sun.javafx.menu.MenuBase;
  71 import com.sun.javafx.perf.PerformanceTracker;
  72 import com.sun.javafx.runtime.async.AsyncOperation;
  73 import com.sun.javafx.runtime.async.AsyncOperationListener;
  74 import com.sun.javafx.scene.text.HitInfo;
  75 import com.sun.javafx.scene.text.TextLayoutFactory;
  76 import com.sun.javafx.sg.PGAmbientLight;
  77 import com.sun.javafx.sg.PGArc;
  78 import com.sun.javafx.sg.PGBox;
  79 import com.sun.javafx.sg.PGCanvas;
  80 import com.sun.javafx.sg.PGCircle;
  81 import com.sun.javafx.sg.PGCubicCurve;
  82 import com.sun.javafx.sg.PGCylinder;
  83 import com.sun.javafx.sg.PGEllipse;

  84 import com.sun.javafx.sg.PGGroup;
  85 import com.sun.javafx.sg.PGImageView;
  86 import com.sun.javafx.sg.PGLightBase;
  87 import com.sun.javafx.sg.PGLine;
  88 import com.sun.javafx.sg.PGMeshView;
  89 import com.sun.javafx.sg.PGNode;
  90 import com.sun.javafx.sg.PGNode.CacheHint;
  91 import com.sun.javafx.sg.PGParallelCamera;
  92 import com.sun.javafx.sg.PGPath;
  93 import com.sun.javafx.sg.PGPerspectiveCamera;
  94 import com.sun.javafx.sg.PGPhongMaterial;
  95 import com.sun.javafx.sg.PGPointLight;
  96 import com.sun.javafx.sg.PGPolygon;
  97 import com.sun.javafx.sg.PGPolyline;
  98 import com.sun.javafx.sg.PGQuadCurve;
  99 import com.sun.javafx.sg.PGRectangle;
 100 import com.sun.javafx.sg.PGRegion;
 101 import com.sun.javafx.sg.PGSVGPath;
 102 import com.sun.javafx.sg.PGShape.StrokeLineCap;
 103 import com.sun.javafx.sg.PGShape.StrokeLineJoin;


 421     @Override public PGQuadCurve createPGQuadCurve() {
 422         return new StubQuadCurve();
 423     }
 424 
 425     @Override public PGRectangle createPGRectangle() {
 426         return new StubRectangle();
 427     }
 428 
 429     @Override public PGImageView createPGImageView() {
 430         return new StubImageView();
 431     }
 432 
 433     @Override public PGGroup createPGGroup() {
 434         return new StubGroup();
 435     }
 436 
 437     @Override public PGText createPGText() {
 438         return new StubText();
 439     }
 440 




 441     /*
 442      * additional testing functions
 443      */
 444     public void fireTestPulse() {
 445         firePulse();
 446     }
 447 
 448     public boolean isPulseRequested() {
 449         return pulseRequested;
 450     }
 451 
 452     public void clearPulseRequested() {
 453         pulseRequested = false;
 454     }
 455 
 456     // do nothing -- bringing in FrameJob and MasterTimer also bring in
 457     // Settings and crap which isn't setup for the testing stuff because
 458     // we don't run through a RuntimeProvider or do normal startup
 459     // public @Override public void triggerNextPulse():Void { }
 460     @Override public void requestNextPulse() {




  64 import com.sun.javafx.geom.Rectangle;
  65 import com.sun.javafx.geom.Path2D;
  66 import com.sun.javafx.geom.Shape;
  67 import com.sun.javafx.geom.transform.Affine3D;
  68 import com.sun.javafx.geom.transform.BaseTransform;
  69 import com.sun.javafx.geom.transform.GeneralTransform3D;
  70 import com.sun.javafx.menu.MenuBase;
  71 import com.sun.javafx.perf.PerformanceTracker;
  72 import com.sun.javafx.runtime.async.AsyncOperation;
  73 import com.sun.javafx.runtime.async.AsyncOperationListener;
  74 import com.sun.javafx.scene.text.HitInfo;
  75 import com.sun.javafx.scene.text.TextLayoutFactory;
  76 import com.sun.javafx.sg.PGAmbientLight;
  77 import com.sun.javafx.sg.PGArc;
  78 import com.sun.javafx.sg.PGBox;
  79 import com.sun.javafx.sg.PGCanvas;
  80 import com.sun.javafx.sg.PGCircle;
  81 import com.sun.javafx.sg.PGCubicCurve;
  82 import com.sun.javafx.sg.PGCylinder;
  83 import com.sun.javafx.sg.PGEllipse;
  84 import com.sun.javafx.sg.PGExternalNode;
  85 import com.sun.javafx.sg.PGGroup;
  86 import com.sun.javafx.sg.PGImageView;
  87 import com.sun.javafx.sg.PGLightBase;
  88 import com.sun.javafx.sg.PGLine;
  89 import com.sun.javafx.sg.PGMeshView;
  90 import com.sun.javafx.sg.PGNode;
  91 import com.sun.javafx.sg.PGNode.CacheHint;
  92 import com.sun.javafx.sg.PGParallelCamera;
  93 import com.sun.javafx.sg.PGPath;
  94 import com.sun.javafx.sg.PGPerspectiveCamera;
  95 import com.sun.javafx.sg.PGPhongMaterial;
  96 import com.sun.javafx.sg.PGPointLight;
  97 import com.sun.javafx.sg.PGPolygon;
  98 import com.sun.javafx.sg.PGPolyline;
  99 import com.sun.javafx.sg.PGQuadCurve;
 100 import com.sun.javafx.sg.PGRectangle;
 101 import com.sun.javafx.sg.PGRegion;
 102 import com.sun.javafx.sg.PGSVGPath;
 103 import com.sun.javafx.sg.PGShape.StrokeLineCap;
 104 import com.sun.javafx.sg.PGShape.StrokeLineJoin;


 422     @Override public PGQuadCurve createPGQuadCurve() {
 423         return new StubQuadCurve();
 424     }
 425 
 426     @Override public PGRectangle createPGRectangle() {
 427         return new StubRectangle();
 428     }
 429 
 430     @Override public PGImageView createPGImageView() {
 431         return new StubImageView();
 432     }
 433 
 434     @Override public PGGroup createPGGroup() {
 435         return new StubGroup();
 436     }
 437 
 438     @Override public PGText createPGText() {
 439         return new StubText();
 440     }
 441 
 442     @Override public PGExternalNode createPGExternalNode() {
 443         return new StubExternalNode();
 444     }
 445 
 446     /*
 447      * additional testing functions
 448      */
 449     public void fireTestPulse() {
 450         firePulse();
 451     }
 452 
 453     public boolean isPulseRequested() {
 454         return pulseRequested;
 455     }
 456 
 457     public void clearPulseRequested() {
 458         pulseRequested = false;
 459     }
 460 
 461     // do nothing -- bringing in FrameJob and MasterTimer also bring in
 462     // Settings and crap which isn't setup for the testing stuff because
 463     // we don't run through a RuntimeProvider or do normal startup
 464     // public @Override public void triggerNextPulse():Void { }
 465     @Override public void requestNextPulse() {