Class marimba.gui.Pattern
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.Pattern

java.lang.Object
   |
   +----marimba.gui.Pattern

public class Pattern
extends Object
implements ImageObserver, Runnable
Efficiently render a pattern over an area.
Version:
1.22, 09/25/96
Author:
Arthur van Hoff

Method Index

 o equals(Object)
Equality.
 o fillRect(Graphics, int, int, int, int, ImageObserver)
Fill a rectangle with the replicated pattern.
 o fillRect(Graphics, int, int, int, int, int, int, int, int, ImageObserver)
Fill part of a rectangle with the replicated pattern.
 o flush(URL)
Flush images from the cache.
 o getPattern(Color, URL)
Get a pattern from the cache.
 o hashCode()
Hashcode
 o imageUpdate(Image, int, int, int, int, int)
More of the original image has arrived.
 o run()
Notify observers.
 o toString()
Debugging.
 o waitFor()
Wait for this background to arrive.

Methods

 o run
  public void run()
Notify observers.
 o imageUpdate
  public synchronized boolean imageUpdate(Image img,
                                          int flags,
                                          int x,
                                          int y,
                                          int w,
                                          int h)
More of the original image has arrived. Repaint the pattern.
 o fillRect
  public void fillRect(Graphics g,
                       int x,
                       int y,
                       int w,
                       int h,
                       ImageObserver observer)
Fill a rectangle with the replicated pattern.
 o fillRect
  public synchronized void fillRect(Graphics g,
                                    int x,
                                    int y,
                                    int w,
                                    int h,
                                    int cx,
                                    int cy,
                                    int cw,
                                    int ch,
                                    ImageObserver observer)
Fill part of a rectangle with the replicated pattern. The area of the rectangle is defined by x,y,w,h, the part that needs filling is defined by cx,cy,cw,ch.
 o waitFor
  public synchronized void waitFor()
Wait for this background to arrive.
 o hashCode
  public int hashCode()
Hashcode
Overrides:
hashCode in class Object
 o equals
  public boolean equals(Object obj)
Equality.
Overrides:
equals in class Object
 o toString
  public String toString()
Debugging.
Overrides:
toString in class Object
 o getPattern
  public static synchronized Pattern getPattern(Color col,
                                                URL url)
Get a pattern from the cache.
 o flush
  public static synchronized void flush(URL url)
Flush images from the cache. Only images that are relative to the given URL are flushed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index