All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.java.swing.SyntheticImage

java.lang.Object
   |
   +----com.sun.java.swing.SyntheticImage

public abstract class SyntheticImage
extends Object
implements ImageProducer
A helper class to make computing synthetic images a little easier. All you need to do is define a subclass that overrides the computeRow to compute a row of the image. It is passed the y coordinate of the row and an array into which to put the pixels in standard ARGB format.


Variable Index

 o height
 o pixMask
 o width

Constructor Index

 o SyntheticImage()

Method Index

 o addConsumer(ImageConsumer)
 o computeRow(int, int[])
 o isConsumer(ImageConsumer)
 o isStatic()
 o nextFrame(int)
 o removeConsumer(ImageConsumer)
 o requestTopDownLeftRightResend(ImageConsumer)
 o startProduction(ImageConsumer)

Variables

 o width
 protected int width
 o height
 protected int height
 o pixMask
 public static final int pixMask

Constructors

 o SyntheticImage
 protected SyntheticImage()

Methods

 o computeRow
 protected void computeRow(int y,
                           int row[])
 o addConsumer
 public synchronized void addConsumer(ImageConsumer ic)
 o isConsumer
 public synchronized boolean isConsumer(ImageConsumer ic)
 o removeConsumer
 public synchronized void removeConsumer(ImageConsumer ic)
 o startProduction
 public synchronized void startProduction(ImageConsumer ic)
 o isStatic
 protected boolean isStatic()
 o nextFrame
 public void nextFrame(int param)
 o requestTopDownLeftRightResend
 public void requestTopDownLeftRightResend(ImageConsumer ic)

All Packages  Class Hierarchy  This Package  Previous  Next  Index