X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FDoubleBuffer.java;h=f420875dfce0def8a76759d1a716a721fa95e74e;hb=69ecee0bc41e6bd410572817e7c59d51f1b5b629;hp=eebd8304ccc936564b110db76f4d20c23341ea25;hpb=6242c991f365dbd67eba62ecfa5df769a83fcbc6;p=org.ibex.core.git diff --git a/src/org/xwt/DoubleBuffer.java b/src/org/xwt/DoubleBuffer.java index eebd830..f420875 100644 --- a/src/org/xwt/DoubleBuffer.java +++ b/src/org/xwt/DoubleBuffer.java @@ -21,23 +21,23 @@ package org.xwt; * represents regions internally as x,y,w,h. *

*/ -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); + public abstract void drawPicture(Picture source, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2); /** Draw source onto this DoubleBuffer at (x,y) */ - public void drawPicture(Picture source, int x, int y); + public abstract void drawPicture(Picture source, int x, int y); /** Draw text in font and color on this DoubleBuffer, with the upper left corner of the text at (x, y) */ - public void drawString(String font, String text, int x, int y, int color); + public abstract void drawString(String font, String text, int x, int y, int color); /** Fill the region (x1, y1, x2, y2) with color (AARRGGBB format); the alpha channel component is ignored */ - public void fillRect(int x1, int y1, int x2, int y2, int color); + public abstract void fillRect(int x1, int y1, int x2, int y2, int color); /** Sets the clip region for this DoubleBuffer to (x,y,x2,y2) */ - public void setClip(int x, int y, int x2, int y2); + public abstract void setClip(int x, int y, int x2, int y2); - public int getHeight(); - public int getWidth(); + public abstract int getHeight(); + public abstract int getWidth(); }