DrawColoredDot

open class DrawColoredDot<P : Position2D<out P>?> : DrawDot<P>

Simple effect that draws a colored dot for each it.unibo.alchemist.model.interfaces.Node.

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

Parameters

<P>

position type

Constructors

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

Functions

Link copied to clipboard
open fun alphaProperty(): DoubleProperty
The alpha channel of the color of the dots representing each it.unibo.alchemist.model.interfaces.Node in the it.unibo.alchemist.model.interfaces.Environment specified when drawing.
Link copied to clipboard
open fun blueProperty(): IntegerProperty
The blue channel of the color of the dots representing each it.unibo.alchemist.model.interfaces.Node in the it.unibo.alchemist.model.interfaces.Environment specified when drawing.
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
abstract fun equals(obj: Any): Boolean
open fun equals(obj: Any): Boolean
Link copied to clipboard
fun getColor(): Color
Gets the color of the dots.
Link copied to clipboard
fun getName(): String
Gets the name of the effect.
Link copied to clipboard
open fun getSize(): Double
Gets the value of the property sizeProperty.
Link copied to clipboard
open fun greenProperty(): IntegerProperty
The green channel of the color of the dots representing each it.unibo.alchemist.model.interfaces.Node in the it.unibo.alchemist.model.interfaces.Environment specified when drawing.
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
open fun redProperty(): IntegerProperty
The red channel of the color of the dots representing each it.unibo.alchemist.model.interfaces.Node in the it.unibo.alchemist.model.interfaces.Environment specified when drawing.
Link copied to clipboard
fun setColor(color: Color)
Sets the color of the dots.
Link copied to clipboard
fun setName(name: String)
abstract fun setName(name: String)
Sets the name of the effect.
Link copied to clipboard
open fun setSize(size: Double)
Sets the value of the property sizeProperty.
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 alpha: RangedDoubleProperty
Link copied to clipboard
private open var blue: RangedIntegerProperty
Link copied to clipboard
private open var green: RangedIntegerProperty
Link copied to clipboard
private open var red: RangedIntegerProperty