public void setImage(java.awt.Image image) throws InterruptedException { if (SemitransparentWindow.isSupported()) { int width = edu.cmu.cs.stage3.image.ImageUtilities.getWidth(image); int height = edu.cmu.cs.stage3.image.ImageUtilities.getHeight(image); int[] pixels = edu.cmu.cs.stage3.image.ImageUtilities.getPixels(image, width, height); setImageNative(width, height, pixels); } }
public void setLocationOnScreen(int x, int y) { if (SemitransparentWindow.isSupported()) { setLocationOnScreenNative(x, y); } }
public void hide() { if (SemitransparentWindow.isSupported()) { hideNative(); } }
public void show() { if (SemitransparentWindow.isSupported()) { showNative(); } }
protected void finalize() throws Throwable { if (SemitransparentWindow.isSupported()) { destroyNative(); } super.finalize(); }
public SemitransparentWindow() { if (SemitransparentWindow.isSupported()) { createNative(); } }
public void setOpacity(double opacity) { if (SemitransparentWindow.isSupported()) { setOpacityNative(opacity); } }