1060 lines · 42.6 KB · Java
RawDownload
     static java.security.Permission compPermission;     /**     * Performs Security Permissions checks to see if a Custom     * Composite object should be allowed access to the pixels     * of this surface.     */    protected void checkCustomComposite() {        SecurityManager sm = System.getSecurityManager();        if (sm != null) {            if (compPermission == null) {                compPermission =                    new java.awt.AWTPermission("readDisplayPixels");            }            sm.checkPermission(compPermission);        }    }     /**     * Fetches private field IndexColorModel.allgrayopaque     * which is true when all palette entries in the color     * model are gray and opaque.     */    protected static native boolean isOpaqueGray(IndexColorModel icm);     /**     * For our purposes null and NullSurfaceData are the same as     * they represent a disposed surface.     */    public static boolean isNull(SurfaceData sd) {        if (sd == null || sd == NullSurfaceData.theInstance) {            return true;        }        return false;    }     /**     * Performs a copyarea within this surface.  Returns     * false if there is no algorithm to perform the copyarea     * given the current settings of the SunGraphics2D.     */    public boolean copyArea(SunGraphics2D sg2d,                            int x, int y, int w, int h, int dx, int dy)    {        return false;    }     /**     * Synchronously releases resources associated with this surface.     */    public void flush() {}     /**     * Returns destination associated with this SurfaceData.  This could be     * either an Image or a Component; subclasses of SurfaceData are     * responsible for returning the appropriate object.     */    public abstract Object getDestination();}

Lines 1001–1060 of 1060. Previous lines