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()
ITimeToLive
getAliveTime
in interface ITimeToLive
public java.lang.String getName()
public int getTimeToLive()
ITimeToLive
getTimeToLive
in interface ITimeToLive
public boolean timeToLiveReached()
ITimeToLive
timeToLiveReached
in interface ITimeToLive
public 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)