All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.kandy.dsl.internal.PlotBuilder.kt Maven / Gradle / Ivy

There is a newer version: 0.7.1-dev-54
Show newest version
package org.jetbrains.kotlinx.kandy.dsl.internal

import org.jetbrains.kotlinx.kandy.ir.Plot

/**
 * Represents the high-level context for creating and configuring a [Plot].
 *
 * The `PlotBuilder` provides a structured environment to define and manage datasets,
 * features, and other aesthetic bindings essential for generating a plot.
 * It acts as an intermediary between raw data and the final visual representation
 * by aggregating all necessary parts and then allowing the creation of a [Plot] using the `toPlot` method.
 */
public sealed interface PlotBuilder {
    /**
     * Returns a new [Plot] configured by this builder.
     */
    public fun toPlot(): Plot
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy