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

uk.ac.liv.pgb.analytica.lib.GraphicsPolicy Maven / Gradle / Ivy

Go to download

Library allowing generation of plots and data from proteomics and metabolomics mass spectrometry data through the use of R and java methods.

The newest version!
package uk.ac.liv.pgb.analytica.lib;

/**
 * Manages the manner in which graphics output is processed.
 * @author sperkins
 */
public final class GraphicsPolicy {
    /**
     * Prefix for output files.
     */
    private String outputFilePrefix = "analytica_";

    /**
     * Whether graphics output goes to a file or not.
     */
    private boolean toFileDevice = false;

    /**
     * Checks whether the graphics output goes to a file or not.
     * @return True if the output should go to a file.
     */
    public boolean isToFileDevice() {
        return this.toFileDevice;
    }

    /**
     * Sets whether the graphics output goes to a file or not.
     * @param toFileDevice Whether the graphics output should go to a file.
     */
    public void setToFileDevice(final boolean toFileDevice) {
        this.toFileDevice = toFileDevice;
    }

    /**
     * Gets the output file prefix.
     * @return Output file prefix.
     */
    public String getOutputFilePrefix() {
        return this.outputFilePrefix;
    }

    /**
     * Sets the output file prefix.
     * @param prefix Output file prefix.
     */
    public void setOutputFilePrefix(final String prefix) {
        this.outputFilePrefix = prefix;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy