Interface Effect
-
- All Implemented Interfaces:
-
java.io.Serializable
@Deprecated() public interface Effect implements Serializable
-
-
Method Summary
Modifier and Type Method Description void
apply(Graphics2D graphic, Node<out Object> node, int x, int y)
Applies the effect. <T, P extends Position2D<P>> void
apply(Graphics2D g, Node<T> n, Environment<T, P> environment, Wormhole2D<P> wormhole)
Applies the effect. abstract Color
getColorSummary()
abstract int
hashCode()
abstract boolean
equals(Object obj)
-
-
Method Detail
-
apply
@Deprecated() void apply(Graphics2D graphic, Node<out Object> node, int x, int y)
Applies the effect.
- Parameters:
graphic
- Graphics2D to usenode
- 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> environment, Wormhole2D<P> wormhole)
Applies the effect.
- Parameters:
g
- graphicsn
- nodeenvironment
- environmentwormhole
- the wormhole used to map environment's coords to screen coords
-
getColorSummary
abstract Color getColorSummary()
- Returns:
a color which resembles the color of this effect
-
hashCode
abstract int hashCode()
-
-
-
-