org.xwt.plat
Class AWT.AWTPixelBuffer

java.lang.Object
  extended byorg.xwt.PixelBuffer
      extended byorg.xwt.plat.AWT.AWTPixelBuffer
Direct Known Subclasses:
Java2.Java2PixelBuffer
Enclosing class:
AWT

protected static class AWT.AWTPixelBuffer
extends PixelBuffer


Field Summary
protected  java.awt.Graphics g
           
protected  java.awt.Image i
           
 
Constructor Summary
protected AWT.AWTPixelBuffer()
           
  AWT.AWTPixelBuffer(int w, int h)
           
 
Method Summary
 void drawPicture(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2)
          draw the picture at (dx1, dy1), cropping to (cx1, cy1, cx2, cy2)
 void drawPictureAlphaOnly(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb)
          implemented with java.awt 1.1's setXORMode()
 void fillTrapezoid(int x1, int x2, int y1, int x3, int x4, int y2, int argb)
          fill a trapezoid whose top and bottom edges are horizontal
 int getHeight()
           
 int getWidth()
           
 
Methods inherited from class org.xwt.PixelBuffer
drawLine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

i

protected java.awt.Image i

g

protected java.awt.Graphics g
Constructor Detail

AWT.AWTPixelBuffer

protected AWT.AWTPixelBuffer()

AWT.AWTPixelBuffer

public AWT.AWTPixelBuffer(int w,
                          int h)
Method Detail

getHeight

public int getHeight()

getWidth

public int getWidth()

drawPicture

public void drawPicture(Picture source,
                        int dx,
                        int dy,
                        int cx1,
                        int cy1,
                        int cx2,
                        int cy2)
Description copied from class: PixelBuffer
draw the picture at (dx1, dy1), cropping to (cx1, cy1, cx2, cy2)

Specified by:
drawPicture in class PixelBuffer

drawPictureAlphaOnly

public void drawPictureAlphaOnly(Picture source,
                                 int dx,
                                 int dy,
                                 int cx1,
                                 int cy1,
                                 int cx2,
                                 int cy2,
                                 int rgb)
implemented with java.awt 1.1's setXORMode()

Specified by:
drawPictureAlphaOnly in class PixelBuffer

fillTrapezoid

public void fillTrapezoid(int x1,
                          int x2,
                          int y1,
                          int x3,
                          int x4,
                          int y2,
                          int argb)
Description copied from class: PixelBuffer
fill a trapezoid whose top and bottom edges are horizontal

Specified by:
fillTrapezoid in class PixelBuffer