public class Sequencer
extends java.lang.Thread
构造器和说明 |
---|
Sequencer(Thumbelina thumbelina)
Creates a new instance of a Sequencer.
|
限定符和类型 | 方法和说明 |
---|---|
void |
add(java.awt.Image image,
java.net.URL url)
Add an image to the pending list.
|
void |
add(java.awt.Image image,
java.net.URL url,
boolean background)
Add an image to the panel.
|
int |
getDelay()
Getter for property delay.
|
void |
reset()
Clears the pending images list.
|
void |
run()
Display pictures from pending list with delay between.
|
void |
setDelay(int delay)
Setter for property delay.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
public Sequencer(Thumbelina thumbelina)
thumbelina
- The object to push images to.public void reset()
public void add(java.awt.Image image, java.net.URL url)
image
- The image to add.url
- The url the image came from.public void add(java.awt.Image image, java.net.URL url, boolean background)
image
- The image to add.url
- The url the image came from.background
- If true
, just add to pending list.public void run()
run
在接口中 java.lang.Runnable
run
在类中 java.lang.Thread
public int getDelay()
public void setDelay(int delay)
delay
- New value of property delay.