2003/09/23 08:24:59
[org.ibex.core.git] / src / org / xwt / PixelBuffer.java
index 5e78e98..3d6e09a 100644 (file)
@@ -4,8 +4,7 @@ package org.xwt;
 /**
  *  <p>
  *  A block of pixels which can be drawn on and rapidly copied to the
- *  screen. Drawing operations are performed on this class; it is
- *  then rendered to the screen with Surface.blit().
+ *  screen.
  *  </p>
  *
  *  <p>
@@ -14,30 +13,19 @@ package org.xwt;
  *  method. These implementations may choose to use off-screen video
  *  ram for this purpose (for example, a Pixmap on X11).
  *  </p>
- *
- *  <p>
- *  A note on coordinates: all members on PixelBuffer specify
- *  coordinates in terms of x1,y1,x2,y2 even though the Box class
- *  represents regions internally as x,y,w,h.
- *  </p>
  */
 public abstract class PixelBuffer {
 
-    /** Draw the region of source within (sx1, sy1, sx2, sy2) onto the region of this PixelBuffer within (dx1, dy1, dx2, dy2), scaling as needed. */
+    /** Draw the region of source within s onto the region d on this PixelBuffer, scaling as needed */
     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 PixelBuffer at (x,y) */
-    public abstract void drawPicture(Picture source, int x, int y);
-
-    /** Draw <tt>text</tt> in <tt>font</tt> and <tt>color</tt> on this PixelBuffer, with the upper left corner of the text at (x, y) */
-    public abstract void drawString(String font, String text, int x, int y, int color);
-
     /** Fill the region (x1, y1, x2, y2) with <tt>color</tt> (AARRGGBB format); the alpha channel component is ignored */
     public abstract void fillRect(int x1, int y1, int x2, int y2, int color);
 
-    /** Sets the clip region for this PixelBuffer to (x,y,x2,y2) */
-    public abstract void setClip(int x, int y, int x2, int y2);
-
+    /** returns the height of the PixelBuffer */
     public abstract int getHeight();
+
+    /** returns the width of the PixelBuffer */
     public abstract int getWidth();
+
 }