/** * Returns whether the trend graph is visible or not. * * @return <code>true</code>, if the trend graph is visible, <code>false</code> otherwise */ public boolean isVisible() { return graphType.isVisible(); }
/** * Returns whether the trend graph is visible or not. * * @return <code>true</code>, if the trend graph is visible, <code>false</code> otherwise */ public boolean isVisible() { return graphType.isVisible(); }
/** * Returns whether the trend graph is visible or not. * * @return <code>true</code>, if the trend graph is visible, <code>false</code> otherwise */ public boolean isVisible() { return getGraphType().isVisible(); }
/** * Returns whether the trend graph is visible or not. * * @return <code>true</code>, if the trend graph is visible, <code>false</code> otherwise */ public boolean isVisible() { return getGraphType().isVisible(); }
/** * This method will be called by Stapler if an example image for the * specified graph should be rendered. * * @param graphId * the ID of the graph to render * @param request * Stapler request * @param response * Stapler response * @return <code>null</code> */ public Object getDynamic(final String graphId, final StaplerRequest request, final StaplerResponse response) { try { BuildResultGraph graph = configuration.getGraph(graphId); if (hasMeaningfulGraph() && graph.isVisible()) { return graph.getGraph(-1, configuration, null, buildHistory.getBaseline()); } response.sendRedirect2(request.getContextPath() + graph.getExampleImage()); } catch (IOException exception) { LOGGER.log(Level.SEVERE, "Can't create graph: " + request, exception); } return null; }
/** * This method will be called by Stapler if an example image for the * specified graph should be rendered. * * @param graphId * the ID of the graph to render * @param request * Stapler request * @param response * Stapler response * @return <code>null</code> */ public Object getDynamic(final String graphId, final StaplerRequest request, final StaplerResponse response) { try { BuildResultGraph graph = configuration.getGraph(graphId); if (hasMeaningfulGraph()) { graph.setRootUrl(project.getAbsoluteUrl()); if (graph.isVisible()) { return graph.getGraph(-1, configuration, null, buildHistory.getBaseline()); } } response.sendRedirect2(request.getContextPath() + graph.getExampleImage()); } catch (IOException exception) { LOGGER.log(Level.SEVERE, "Can't create graph: " + request, exception); } return null; }