modules/graphics/src/main/java/com/sun/prism/null3d/DummySwapChain.java

Print this page




  73     public int getPhysicalHeight() {
  74         return h;
  75     }
  76 
  77     public int getContentWidth() {
  78         return getPhysicalWidth();
  79     }
  80 
  81     public int getContentHeight() {
  82         return getPhysicalHeight();
  83     }
  84 
  85     public int getContentX() {
  86         return 0;
  87     }
  88 
  89     public int getContentY() {
  90         return 0;
  91     }
  92 
  93     public float getPixelScaleFactor() {






  94         return 1.0f;
  95     }
  96 
  97     public Graphics createGraphics() {
  98         return DummyGraphics.create(texBackBuffer, context);
  99     }
 100 
 101     public Screen getAssociatedScreen() {
 102         return context.getAssociatedScreen();
 103     }
 104 
 105     public boolean isOpaque() {
 106         return opaque;
 107     }
 108 
 109     public void setOpaque(boolean opaque) {
 110         this.opaque = opaque;
 111     }
 112 
 113     @Override


  73     public int getPhysicalHeight() {
  74         return h;
  75     }
  76 
  77     public int getContentWidth() {
  78         return getPhysicalWidth();
  79     }
  80 
  81     public int getContentHeight() {
  82         return getPhysicalHeight();
  83     }
  84 
  85     public int getContentX() {
  86         return 0;
  87     }
  88 
  89     public int getContentY() {
  90         return 0;
  91     }
  92 
  93     @Override
  94     public float getPixelScaleFactorX() {
  95         return 1.0f;
  96     }
  97 
  98     @Override
  99     public float getPixelScaleFactorY() {
 100         return 1.0f;
 101     }
 102 
 103     public Graphics createGraphics() {
 104         return DummyGraphics.create(texBackBuffer, context);
 105     }
 106 
 107     public Screen getAssociatedScreen() {
 108         return context.getAssociatedScreen();
 109     }
 110 
 111     public boolean isOpaque() {
 112         return opaque;
 113     }
 114 
 115     public void setOpaque(boolean opaque) {
 116         this.opaque = opaque;
 117     }
 118 
 119     @Override