AbstractrDrawLayersIsolines
Deprecated
The entire Swing UI is deprecated and planned to be replaced with a modern UI.
Draw layers iso lines. The user must specify: - the number of iso lines to draw - the min layer value - the max layer value - the distribution, used to space isoline values between min and max
This class defines the drawFunction method, which is capable of drawing a layer's iso lines given a function. The only responsibility left to subclasses is to provide a LayerToFunctionMapper.
Inheritors
Types
Link copied to clipboard
enum Distribution
Distributions describing how values within an interval should be spaced.
Properties
Functions
Link copied to clipboard
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
open fun <T, P : Position2D<P>?> drawFunction(function: (in P) -> out Number, environment: Environment<T, P>, graphics: Graphics2D, wormhole: Wormhole2D<P>)
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.
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
Returns a color summarizing this effect.
Link copied to clipboard
Returns whether the values of the isolines are to be drawn.
Link copied to clipboard
Returns the number of isolines.
Link copied to clipboard
Checks whether the layer filter is on.
Link copied to clipboard
Sets whether the values of the isolines are to be drawn.
Link copied to clipboard
Enables or disables the layer filter.
Link copied to clipboard
Sets the number of isolines.