public abstract class ImageEffect extends java.lang.Object implements ITimeToLive, java.lang.Comparable<ImageEffect>
| Modifier | Constructor and Description |
|---|---|
protected |
ImageEffect(int ttl,
java.lang.String name) |
protected |
ImageEffect(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.awt.image.BufferedImage |
apply(java.awt.image.BufferedImage image) |
int |
compareTo(ImageEffect other) |
long |
getAliveTime()
Gets the time this instance is alive.
|
java.lang.String |
getName() |
int |
getPriority() |
int |
getTimeToLive()
Gets the total time to live of this instance.
|
void |
setName(java.lang.String name) |
void |
setPriority(int priority) |
boolean |
timeToLiveReached()
Determines whether this instance has exceeded its time to live.
|
protected ImageEffect(java.lang.String name)
protected ImageEffect(int ttl,
java.lang.String name)
public long getAliveTime()
ITimeToLivegetAliveTime in interface ITimeToLivepublic java.lang.String getName()
public int getTimeToLive()
ITimeToLivegetTimeToLive in interface ITimeToLivepublic boolean timeToLiveReached()
ITimeToLivetimeToLiveReached in interface ITimeToLivepublic int getPriority()
public void setPriority(int priority)
public void setName(java.lang.String name)
public int compareTo(ImageEffect other)
compareTo in interface java.lang.Comparable<ImageEffect>public abstract java.awt.image.BufferedImage apply(java.awt.image.BufferedImage image)