DrawLinks

open class DrawLinks<P : Position2D<out P>?> : AbstractEffect<P>

Simple effect that draws a black line for each it.unibo.alchemist.model.interfaces.Node in a it.unibo.alchemist.model.interfaces.Neighborhood.

It's possible to set the size of the dots.

Parameters

<P>

the position type

Constructors

Link copied to clipboard
open fun DrawLinks()
Empty constructor.
Link copied to clipboard
open fun DrawLinks(name: String)
Default constructor.

Functions

Link copied to clipboard
open fun <T> computeDrawCommands(environment: Environment<T, P>): Queue<DrawCommand<P>>
abstract fun <T> computeDrawCommands(environment: Environment<T, P>): Queue<DrawCommand<P>>
Computes a queue of commands to Draw something.
Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
fun getName(): String
Gets the name of the effect.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
fun isVisible(): Boolean
Gets the visibility of the effect.
Link copied to clipboard
fun setName(name: String)
abstract fun setName(name: String)
Sets the name of the effect.
Link copied to clipboard
fun setVisibility(visibility: Boolean)
abstract fun setVisibility(visibility: Boolean)
Sets the visibility of the effect.
Link copied to clipboard
open fun sizeProperty(): DoubleProperty
The size of the dots representing each it.unibo.alchemist.model.interfaces.Node in the Environment specified when drawing.

Properties

Link copied to clipboard
private open var size: RangedDoubleProperty