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
-
equals(Object)
- Equality.
-
fillRect(Graphics, int, int, int, int, ImageObserver)
- Fill a rectangle with the replicated pattern.
-
fillRect(Graphics, int, int, int, int, int, int, int, int, ImageObserver)
- Fill part of a rectangle with the replicated pattern.
-
flush(URL)
- Flush images from the cache.
-
getPattern(Color, URL)
- Get a pattern from the cache.
-
hashCode()
- Hashcode
-
imageUpdate(Image, int, int, int, int, int)
- More of the original image has arrived.
-
run()
- Notify observers.
-
toString()
- Debugging.
-
waitFor()
- Wait for this background to arrive.
run
public void run()
- Notify observers.
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.
fillRect
public void fillRect(Graphics g,
int x,
int y,
int w,
int h,
ImageObserver observer)
- Fill a rectangle with the replicated pattern.
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.
waitFor
public synchronized void waitFor()
- Wait for this background to arrive.
hashCode
public int hashCode()
- Hashcode
- Overrides:
- hashCode in class Object
equals
public boolean equals(Object obj)
- Equality.
- Overrides:
- equals in class Object
toString
public String toString()
- Debugging.
- Overrides:
- toString in class Object
getPattern
public static synchronized Pattern getPattern(Color col,
URL url)
- Get a pattern from the cache.
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