< prev index next >

src/java.desktop/share/classes/sun/java2d/SurfaceData.java

Print this page




1022      * which is true when all palette entries in the color
1023      * model are gray and opaque.
1024      */
1025     protected static native boolean isOpaqueGray(IndexColorModel icm);
1026 
1027     /**
1028      * For our purposes null and NullSurfaceData are the same as
1029      * they represent a disposed surface.
1030      */
1031     public static boolean isNull(SurfaceData sd) {
1032         if (sd == null || sd == NullSurfaceData.theInstance) {
1033             return true;
1034         }
1035         return false;
1036     }
1037 
1038     /**
1039      * Performs a copyarea within this surface.  Returns
1040      * false if there is no algorithm to perform the copyarea
1041      * given the current settings of the SunGraphics2D.





1042      */
1043     public boolean copyArea(SunGraphics2D sg2d,
1044                             int x, int y, int w, int h, int dx, int dy)
1045     {
1046         return false;
1047     }
1048 
1049     /**
1050      * Synchronously releases resources associated with this surface.
1051      */
1052     public void flush() {}
1053 
1054     /**
1055      * Returns destination associated with this SurfaceData.  This could be
1056      * either an Image or a Component; subclasses of SurfaceData are
1057      * responsible for returning the appropriate object.
1058      */
1059     public abstract Object getDestination();
1060 
1061     /**


1022      * which is true when all palette entries in the color
1023      * model are gray and opaque.
1024      */
1025     protected static native boolean isOpaqueGray(IndexColorModel icm);
1026 
1027     /**
1028      * For our purposes null and NullSurfaceData are the same as
1029      * they represent a disposed surface.
1030      */
1031     public static boolean isNull(SurfaceData sd) {
1032         if (sd == null || sd == NullSurfaceData.theInstance) {
1033             return true;
1034         }
1035         return false;
1036     }
1037 
1038     /**
1039      * Performs a copyarea within this surface.  Returns
1040      * false if there is no algorithm to perform the copyarea
1041      * given the current settings of the SunGraphics2D.
1042      *
1043      * @param x the x coordinate of the area in device space
1044      * @param y the y coordinate of the area in device space
1045      * @param w the width of the area in device space
1046      * @param h the height of the area in device space
1047      */
1048     public boolean copyArea(SunGraphics2D sg2d,
1049                             int x, int y, int w, int h, int dx, int dy)
1050     {
1051         return false;
1052     }
1053 
1054     /**
1055      * Synchronously releases resources associated with this surface.
1056      */
1057     public void flush() {}
1058 
1059     /**
1060      * Returns destination associated with this SurfaceData.  This could be
1061      * either an Image or a Component; subclasses of SurfaceData are
1062      * responsible for returning the appropriate object.
1063      */
1064     public abstract Object getDestination();
1065 
1066     /**
< prev index next >