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

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

Go to download

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

The newest version!
package com.github.sh0nk.matplotlib4j.builder;

public class ScaleBuilderImpl implements ScaleBuilder {

    private CompositeBuilder innerBuilder = new CompositeBuilder<>(this);
    private final String methodName;

    private ScaleBuilderImpl(Scale scale, String methodName) {
        this.methodName = methodName;
        innerBuilder.addToArgs(scale.name());
    }

    public static ScaleBuilderImpl xScaleBuilder(Scale scale) {
        return new ScaleBuilderImpl(scale, "xscale");
    }

    public static ScaleBuilderImpl yScaleBuilder(Scale scale) {
        return new ScaleBuilderImpl(scale, "yscale");
    }

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

    @Override
    public String getMethodName() {
        return this.methodName;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy