src/macosx/classes/sun/lwawt/macosx/CPlatformEmbeddedFrame.java

Print this page




 100     @Override
 101     public FontMetrics getFontMetrics(Font f) {
 102         throw new RuntimeException("Not implemented");
 103     }
 104 
 105     @Override
 106     public SurfaceData getScreenSurface() {
 107         return windowLayer.getSurfaceData();
 108     }
 109 
 110     @Override
 111     public SurfaceData replaceSurfaceData() {
 112         return windowLayer.replaceSurfaceData();
 113     }
 114 
 115     @Override
 116     public Image createBackBuffer() {
 117         Rectangle r = peer.getBounds();
 118         Image im = null;
 119         if (!r.isEmpty()) {
 120             int transparency = (peer.isOpaque() ? Transparency.OPAQUE : Transparency.TRANSLUCENT);
 121             im = peer.getGraphicsConfiguration().createCompatibleImage(r.width, r.height, transparency);
 122         }
 123         return im;
 124     }
 125 
 126     @Override
 127     public void flip(int x1, int y1, int x2, int y2, FlipContents flipAction) {
 128         throw new RuntimeException("Not implemented");
 129     }
 130 
 131     @Override
 132     public void setVisible(boolean visible) {}
 133 
 134     @Override
 135     public void setTitle(String title) {}
 136 
 137     @Override
 138     public Insets getInsets() {
 139         return new Insets(0, 0, 0, 0);
 140     }




 100     @Override
 101     public FontMetrics getFontMetrics(Font f) {
 102         throw new RuntimeException("Not implemented");
 103     }
 104 
 105     @Override
 106     public SurfaceData getScreenSurface() {
 107         return windowLayer.getSurfaceData();
 108     }
 109 
 110     @Override
 111     public SurfaceData replaceSurfaceData() {
 112         return windowLayer.replaceSurfaceData();
 113     }
 114 
 115     @Override
 116     public Image createBackBuffer() {
 117         Rectangle r = peer.getBounds();
 118         Image im = null;
 119         if (!r.isEmpty()) {
 120             int transparency = peer.isTranslucent() ? Transparency.TRANSLUCENT : Transparency.OPAQUE;
 121             im = peer.getGraphicsConfiguration().createCompatibleImage(r.width, r.height, transparency);
 122         }
 123         return im;
 124     }
 125 
 126     @Override
 127     public void flip(int x1, int y1, int x2, int y2, FlipContents flipAction) {
 128         throw new RuntimeException("Not implemented");
 129     }
 130 
 131     @Override
 132     public void setVisible(boolean visible) {}
 133 
 134     @Override
 135     public void setTitle(String title) {}
 136 
 137     @Override
 138     public Insets getInsets() {
 139         return new Insets(0, 0, 0, 0);
 140     }