Skip to content

ChartNode.ChartAxis.XChartAxis

final class ChartNode.ChartAxis.XChartAxis
Extends: ChartAxis
Package: dev.joid.lib.ui.node.impl.chart · Module: core · Source: ChartNode.java

The X axis of a chart, which holds its labels and its series.

PropertyTypeDefaultSummary
labelSetString...new LinkedHashSet<>()The labels of the axis, in order; setting them replaces the previous ones.

ReturnsSignatureSummary
ChartDataget(String data)The series of this name, or null.
Map<String,ChartData>getDataMap()Every series by name, in the order they were added; a read-only view.
thisdata(String dataName, ChartData data) fluentAdds or replaces the series of this name.
thisremove(String data) fluentRemoves the series of this name.
Inherited from ChartNode.ChartAxis (3)

x · y · getName

  • this labelSet(String... labels) fluent
  • this labelSet(Set<String> labelSet) fluent
  • Set<String> getLabelSet()

Default: new LinkedHashSet<>()

The labels of the axis, in order; setting them replaces the previous ones.

ChartData get(String data)

The series of this name, or null.

Map<String,ChartData> getDataMap()

Every series by name, in the order they were added; a read-only view.

this data(String dataName, ChartData data) fluent

Adds or replaces the series of this name.

this remove(String data) fluent

Removes the series of this name.


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

Report a problem with this page