RadarChartNode.RadarChartData
class RadarChartNode.RadarChartData
Package: dev.joid.lib.ui.node.impl.chart · Module: core · Source: RadarChartNode.java
One entry of a radar chart: a label and its value.
Learn more
Section titled “Learn more”Creation
Section titled “Creation”| Returns | Signature | Summary |
|---|---|---|
RadarChartData | create(String label) factory | Creates an entry with this label and no value yet. |
RadarChartData | create(String label, Number value) factory | Creates an entry with this label and this value. |
| RadarChartData(String label) protected | Called by a subclass with the label. | |
| RadarChartData(String label, Number value) protected | Called by a subclass with the label and the value. |
Properties
Section titled “Properties”| Property | Type | Default | Summary |
|---|---|---|---|
| value signal | Number | set at creation | The value of the entry; null means it has none yet. |
| label signal | String | set at creation | The label of the entry. |
Methods
Section titled “Methods”| Returns | Signature | Summary |
|---|---|---|
boolean | isEmpty() | If true, the entry has no value. |
this | clear() fluent | Removes the value of the entry. |
Creation details
Section titled “Creation details”create
Section titled “create”RadarChartData create(String label) factory
Creates an entry with this label and no value yet.
RadarChartData create(String label, Number value) factory
Creates an entry with this label and this value.
RadarChartData
Section titled “RadarChartData”RadarChartData(String label) protected
Called by a subclass with the label.
RadarChartData(String label, Number value) protected
Called by a subclass with the label and the value.
Property details
Section titled “Property details”this value(Number value)fluentthis value(Supplier<? extends Number> value)fluent signalNumber getValue()
Default: set at creation
The value of the entry; null means it has none yet.
this label(String label)fluentthis label(Supplier<String> label)fluent signalString getLabel()
Default: set at creation
The label of the entry.
Method details
Section titled “Method details”isEmpty
Section titled “isEmpty”boolean isEmpty()
If true, the entry has no value.
this clear() fluent
Removes the value of the entry.
fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses
