-
- All Implemented Interfaces:
-
java.io.Serializable
public interface Effect implements Serializable
-
-
Method Summary
Modifier and Type Method Description void
apply(Graphics2D g, Node<Out Object> n, int x, int y)
Applies the effect. <T, P extends Position2D<P>> void
apply(Graphics2D g, Node<T> n, Environment<T, P> env, IWormhole2D<P> wormhole)
Applies the effect. abstract Color
getColorSummary()
-
-
Method Detail
-
apply
@Deprecated() void apply(Graphics2D g, Node<Out Object> n, int x, int y)
Applies the effect.
- Parameters:
g
- Graphics2D to usen
- the node to drawx
- x screen positiony
- y screen position
-
apply
<T, P extends Position2D<P>> void apply(Graphics2D g, Node<T> n, Environment<T, P> env, IWormhole2D<P> wormhole)
Applies the effect.
- Parameters:
g
- graphicsn
- nodeenv
- environmentwormhole
- the wormhole used to map environment's coords to screen coords
-
getColorSummary
abstract Color getColorSummary()
-
-
-
-