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 } | 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 /** 1062 * Returns default scale factor of the destination surface. Scale factor 1063 * describes the mapping between virtual and physical coordinates of the 1064 * SurfaceData. If the scale is 2 then virtual pixel coordinates need to be 1065 * doubled for physical pixels. 1066 */ 1067 public int getDefaultScale() { 1068 return 1; 1069 } 1070 } |