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

com.github.sh0nk.matplotlib4j.builder.TextBuilderImpl Maven / Gradle / Ivy

Go to download

Matplotlib for java: A simple graph plot library for java with powerful python matplotlib

There is a newer version: 0.5.0
Show newest version
package com.github.sh0nk.matplotlib4j.builder;

import com.github.sh0nk.matplotlib4j.kwargs.TextArgsBuilder;
import com.github.sh0nk.matplotlib4j.kwargs.TextArgsBuilderImpl;

public class TextBuilderImpl implements TextBuilder {

    private CompositeBuilder innerBuilder = new CompositeBuilder<>(this);
    private TextArgsBuilder textBuilder = new TextArgsBuilderImpl<>(innerBuilder);

    public TextBuilderImpl(double x, double y, String s) {
        innerBuilder.addToArgs(x);
        innerBuilder.addToArgs(y);
        innerBuilder.addToArgs(s);
    }

    @Override
    public String build() {
        return innerBuilder.build();
    }

    @Override
    public String getMethodName() {
        return "text";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy