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
@Contract(value = "null, null -> true; null, !null -> false; !null, null -> false")
open fun <T : AbstractEffect<out Any>?> checkBasicProperties(@Nullable anEffect: T, @Nullable otherEffect: Any): Boolean
The method compares two Effects to check basic properties of visibility, name and class.
Link copied to clipboard
@Contract(value = "null, !null -> false")
open fun <T, P : Property<T>?> checkEqualsProperties(@Nullable prop1: P, @Nullable prop2: P): Boolean
The method is useful to implement comparisons of properties in equals method.
Link copied to clipboard
abstract fun <T> computeDrawCommands(environment: Environment<T, P>): Queue<DrawCommand<P>>
open 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
open fun getAlpha(): Double
Gets the value of alphaProperty.
Link copied to clipboard
open fun getBlue(): Int
Gets the value of blueProperty.
Link copied to clipboard
fun getColor(): Color
Gets the color of the dots.
Link copied to clipboard
open fun getGreen(): Int
Gets the value of greenProperty.
Link copied to clipboard
open fun getRed(): Int
Gets the value of redProperty.
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
open fun setAlpha(alpha: Double)
Sets the value of alphaProperty.
Link copied to clipboard
open fun setBlue(blue: Int)
Sets the value of blueProperty.
Link copied to clipboard
fun setColor(color: Color)
Sets the color of the dots.
Link copied to clipboard
open fun setGreen(green: Int)
Sets the value of greenProperty.
Link copied to clipboard
open fun setRed(red: Int)
Sets the value of redProperty.
Link copied to clipboard
open fun setSize(size: Double)
Sets the value of the property sizeProperty.
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
open var name: String
Link copied to clipboard
private open var visibility: Boolean