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

hudson.plugins.analysis.graph.TrendDetails Maven / Gradle / Ivy

The newest version!
package hudson.plugins.analysis.graph;

import org.kohsuke.stapler.StaplerRequest;

import hudson.model.AbstractProject;

import hudson.util.Graph;

/**
 * Details trend graph.
 *
 * @author Ulli Hafner
 */
public class TrendDetails {
    /** The graph to display. */
    private final Graph trendGraph;
    /** The project of the graph. */
    private final AbstractProject project;

    /**
     * Creates a new instance of {@link TrendDetails}.
     *
     * @param project
     *            the project of the graph
     * @param trendGraph
     *            the graph
     */
    public TrendDetails(final AbstractProject project, final Graph trendGraph) {
        this.project = project;
        this.trendGraph = trendGraph;
    }

    /**
     * Returns the trend graph.
     *
     * @param request
     *            Stapler request
     * @return the trend graph
     */
    public Graph getTrendGraph(final StaplerRequest request) {
        return trendGraph;
    }

    /**
     * Returns the abstractProject.
     *
     * @return the abstractProject
     */
    public AbstractProject getProject() {
        return project;
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy