src/share/classes/sun/java2d/SurfaceData.java
Print this page
*** 1055,1060 ****
--- 1055,1070 ----
* 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();
+
+ /**
+ * Returns default scale factor of the destination surface. Scale factor
+ * describes the mapping between virtual and physical coordinates of the
+ * SurfaceData. If the scale is 2 then virtual pixel coordinates need to be
+ * doubled for physical pixels.
+ */
+ public int getDefaultScale() {
+ return 1;
+ }
}