11-Feb megacz Log.java: refactored printing code in prep for inline logging
11-Feb megacz X11.java: bugfix for stupid typos
+
+11-Feb megacz Picture.java, DoubleBuffer.java, Win32.java, AWT.java:
+ made Picture and DoubleBuffer abstract classes rather
+ than interfaces
* represents regions internally as x,y,w,h.
* </p>
*/
-public interface DoubleBuffer {
+public abstract class DoubleBuffer {
/** Draw the region of source within (sx1, sy1, sx2, sy2) onto the region of this DoubleBuffer within (dx1, dy1, dx2, dy2), scaling as needed. */
public void drawPicture(Picture source, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2);
* example, using a Pixmap on X11).
* </p>
*/
-public interface Picture {
+public abstract class Picture {
public int getHeight();
public int getWidth();
}
// Inner Classes /////////////////////////////////////////////////////////////////////////////////////
- protected static class AWTPicture implements Picture {
+ protected static class AWTPicture extends Picture {
public int getHeight() { return i.getHeight(null); }
public int getWidth() { return i.getWidth(null); }
public int[] getData() { return data; }
}
}
- protected static class AWTDoubleBuffer implements DoubleBuffer {
+ protected static class AWTDoubleBuffer extends DoubleBuffer {
protected Image i = null;
protected Graphics g = null;
// Win32Picture ////////////////////////////////////////////////////////////////////////////
- public static class Win32Picture implements Picture {
+ public static class Win32Picture extends Picture {
int w = 0, h = 0;
int[] data = null;
// Win32DoubleBuffer //////////////////////////////////////////////////////////////////////////
- public static class Win32DoubleBuffer implements DoubleBuffer {
+ public static class Win32DoubleBuffer extends DoubleBuffer {
int w = 0;
int h = 0;