DrawLayersValues

This is a basic class for all the effects meant to draw Layers values in different points of the view. One effect could draw isolines, whereas another could represent different values with a gradient. Normally, drawing a layer's values only makes sense for "numerical" layers (i.e. layers for which the values are Numbers). However, one could have a "non-numerical" layer whose getValue return type is an object from which a value can be extracted somehow. In the end, drawing a layer's values makes sense as long as there is a way to map those values to Numbers. More generally, a LayerToFunctionMapper is needed. As this class is not aware of which mapper to use, this responsibility is left to subclasses. When drawing layers values, it can be important to know the min and max layer values that will be drawn. This class declares gui controls that allow the user to specify such boundaries.

Inheritors

Properties

Link copied to clipboard
open var alpha: RangedInteger
Link copied to clipboard
open var blue: RangedInteger
Link copied to clipboard
open var green: RangedInteger
Link copied to clipboard
@Nullable
@get:Nullable
open val markerNodeID: Integer
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var molString: String
Link copied to clipboard
open var red: RangedInteger

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>)
open fun <T, P : Position2D<P>?> apply(graphics: Graphics2D, node: Node<T>, environment: Environment<T, P>, wormhole: Wormhole2D<P>)
Applies the effect.
Link copied to clipboard
abstract fun <T, P : Position2D<P>?> drawFunction(function: (in P) -> out Number, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)
Draw the provided function.
Link copied to clipboard
open fun <T, P : Position2D<P>?> drawLayers(toDraw: Collection<Layer<T, P>>, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)
Link copied to clipboard
abstract fun equals(obj: Any): Boolean
Link copied to clipboard
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
open fun setLayerFilter(layerFilter: Boolean)