modules/graphics/src/test/java/com/sun/javafx/sg/prism/TestGraphics.java

Print this page




  51 import com.sun.prism.impl.BaseContext;
  52 import com.sun.prism.impl.BaseGraphics;
  53 import com.sun.prism.impl.TextureResourcePool;
  54 import com.sun.prism.impl.VertexBuffer;
  55 import com.sun.prism.paint.Color;
  56 import com.sun.prism.shape.ShapeRep;
  57 
  58 
  59 /**
  60  *
  61  */
  62 public class TestGraphics extends BaseGraphics {
  63 
  64     public static final Graphics TEST_GRAPHICS = new TestGraphics();
  65 
  66     public TestGraphics() {
  67         super(new TestContext(), new TestRenderTarget());
  68     }
  69 
  70     @Override
  71     public void fillTriangles(VertexBuffer tris, int numVerts, float bx, float by, float bw, float bh) {
  72     }
  73 
  74     @Override
  75     protected void renderShape(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh) {
  76     }
  77 
  78     public void clear(Color color) {
  79     }
  80 
  81     public void clearQuad(float x1, float y1, float x2, float y2) {
  82     }
  83 
  84     public void fillQuad(float x1, float y1, float x2, float y2) {
  85     }
  86 
  87     public void fillRect(float x, float y, float width, float height) {
  88     }
  89 
  90     public void fillRoundRect(float x, float y, float width, float height, float arcw, float arch) {
  91     }
  92 
  93     public void fillEllipse(float x, float y, float width, float height) {
  94     }




  51 import com.sun.prism.impl.BaseContext;
  52 import com.sun.prism.impl.BaseGraphics;
  53 import com.sun.prism.impl.TextureResourcePool;
  54 import com.sun.prism.impl.VertexBuffer;
  55 import com.sun.prism.paint.Color;
  56 import com.sun.prism.shape.ShapeRep;
  57 
  58 
  59 /**
  60  *
  61  */
  62 public class TestGraphics extends BaseGraphics {
  63 
  64     public static final Graphics TEST_GRAPHICS = new TestGraphics();
  65 
  66     public TestGraphics() {
  67         super(new TestContext(), new TestRenderTarget());
  68     }
  69 
  70     @Override




  71     protected void renderShape(Shape shape, BasicStroke stroke, float bx, float by, float bw, float bh) {
  72     }
  73 
  74     public void clear(Color color) {
  75     }
  76 
  77     public void clearQuad(float x1, float y1, float x2, float y2) {
  78     }
  79 
  80     public void fillQuad(float x1, float y1, float x2, float y2) {
  81     }
  82 
  83     public void fillRect(float x, float y, float width, float height) {
  84     }
  85 
  86     public void fillRoundRect(float x, float y, float width, float height, float arcw, float arch) {
  87     }
  88 
  89     public void fillEllipse(float x, float y, float width, float height) {
  90     }