AbstractDrawLayers

abstract class AbstractDrawLayers : DrawOnce, DrawLayers

This class collects the following responsibilities: - it manages to draw layers only when necessary (as the apply method will be called for every node). Every subclass must only define the drawLayers method, which is guaranteed to be called only when necessary. - it declares gui controls for the selection of the color to use - it declares gui controls for the selection of a filter, used to filter the layers to draw. In particular, it allows the user to specify a molecule, meaning that only the layer containing such molecule will be drawn (otherwise the effect is applied to all layers)

Functions

Link copied to clipboard
open fun <T, P : Position2D<P>?> apply(graphics: Graphics2D, node: Node<T>, environment: Environment<T, P>, wormhole: Wormhole2D<P>)
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>, env: 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
open fun getColorSummary(): Color
Link copied to clipboard
open fun getMarkerNodeID(): Integer
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
open fun isLayerFilter(): Boolean

Properties

Link copied to clipboard
private open var alpha: RangedInteger
Link copied to clipboard
private open var blue: RangedInteger
Link copied to clipboard
private open var green: RangedInteger
Link copied to clipboard
private open var layerFilter: Boolean
Link copied to clipboard
private open var molString: String
Link copied to clipboard
private open var red: RangedInteger

Inheritors

Link copied to clipboard