com.github.sh0nk.matplotlib4j.builder.TextBuilderImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of matplotlib4j Show documentation
Show all versions of matplotlib4j Show documentation
Matplotlib for java: A simple graph plot library for java with powerful python matplotlib
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";
}
}