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 } | 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 horizontal scale factor of the destination surface. Scale 1063 * factor 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 double getDefaultScaleX() { 1068 return 1; 1069 } 1070 1071 /** 1072 * Returns default vertical scale factor of the destination surface. Scale 1073 * factor describes the mapping between virtual and physical coordinates of the 1074 * SurfaceData. If the scale is 2 then virtual pixel coordinates need to be 1075 * doubled for physical pixels. 1076 */ 1077 public double getDefaultScaleY() { 1078 return 1; 1079 } 1080 } |