DrawLayers

interface DrawLayers : Effect(source)

Basic interface for every effect that draws something related to Layers. This class is a workaround: the Effect abstraction is meant to add effects to nodes, not to draw layers. At present, is the finest workaround available. This workaround has the following disadvantages: - when there aren't nodes visible in the gui the effects are not used at all, so this effect won't work.

Inheritors

Functions

Link copied to clipboard
open fun apply(graphic: Graphics2D, node: Node<out Any>, x: Int, y: Int)
open fun <T, P : Position2D<P>?> apply(g: Graphics2D, n: Node<T>, environment: Environment<T, P>, wormhole: Wormhole2D<P>)
Applies the effect.
Link copied to clipboard
abstract fun <T, P : Position2D<P>?> drawLayers(toDraw: Collection<Layer<T, P>>, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)
Effectively draw the layers.
Link copied to clipboard
abstract fun equals(obj: Any): Boolean
Link copied to clipboard
abstract fun getColorSummary(): Color
Link copied to clipboard
abstract fun hashCode(): Int