/** * Creates a configuration for a deactivated graph. * * @return a configuration for a deactivated graph */ public static GraphConfiguration createDeactivated() { return new GraphConfiguration(new NullGraph()); }
/** * Returns whether the trend graph completely is deactivated. * * @return <code>true</code>, if the trend graph is deactivated, <code>false</code> otherwise */ public boolean isDeactivated() { return getGraphType().isDeactivated(); }
/** * 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(); }
/** {@inheritDoc} */ @Override protected BuildResultGraph getGraphType() { return new NewVersusFixedGraph(); }
/** {@inheritDoc} */ @Override protected BuildResultGraph getGraphType() { return new PriorityGraph(); }
@Override protected CategoryItemRenderer createRenderer(final GraphConfiguration configuration, final String pluginName, final ToolTipProvider toolTipProvider) { CategoryUrlBuilder url = new UrlBuilder(getRootUrl(), pluginName); ToolTipBuilder toolTip = new DescriptionBuilder(toolTipProvider); if (configuration.useBuildDateAsDomain()) { return new ToolTipBoxRenderer(toolTip); } else { return new BoxRenderer(url, toolTip); } }
/** * Returns the type of the graph. * * @return the type */ public BuildResultGraph getGraphType() { BuildResultGraph graphType = configuration.getGraphType(); graphType.setRootUrl(getOwner().getAbsoluteUrl()); return graphType; }
/** * Creates the graph configuration. * * @param availableGraphs * the available graphs * @return the graph configuration. */ protected GraphConfiguration createConfiguration(final List<BuildResultGraph> availableGraphs) { return new GraphConfiguration(availableGraphs); }
/** * Serializes the values of this configuration. * * @return serialized configuration * @see #initializeFrom(String) */ public String serializeToString() { return width + SEPARATOR + height + SEPARATOR + buildCount + SEPARATOR + dayCount + SEPARATOR + graphType.getId() + SEPARATOR + serializeBoolean(useBuildDate); }
/** * Returns the height. * * @return the height */ public int getHeight() { return configuration.getHeight(); }
@Override protected CategoryItemRenderer createRenderer(final GraphConfiguration configuration, final String pluginName, final ToolTipProvider toolTipProvider) { return createLineRenderer(); } }
/** * Returns the width. * * @return the width */ public int getWidth() { return configuration.getWidth(); }
/** {@inheritDoc} */ @Override protected BuildResultGraph getGraphType() { return new NewVersusFixedGraph(); }
@Override protected CategoryItemRenderer createRenderer(final GraphConfiguration configuration, final String pluginName, final ToolTipProvider toolTipProvider) { CategoryUrlBuilder url = new UrlBuilder(getRootUrl(), pluginName); ToolTipBuilder toolTip = new DescriptionBuilder(toolTipProvider); if (configuration.useBuildDateAsDomain()) { return new ToolTipBoxRenderer(toolTip); } else { return new BoxRenderer(url, toolTip); } }
/** * Creates a configuration for a deactivated graph. * * @return a configuration for a deactivated graph */ public static GraphConfiguration createDeactivated() { return new GraphConfiguration(new NullGraph()); }
/** * Returns whether the trend graph completely is deactivated. * * @return <code>true</code>, if the trend graph is deactivated, <code>false</code> otherwise */ public boolean isDeactivated() { return getGraphType().isDeactivated(); }
/** * 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(); }
/** * Creates a default configuration. * * @return a default configuration */ public static GraphConfiguration createDefault() { return new GraphConfiguration(DEFAULT_GRAPH); }
/** * Returns the height. * * @return the height */ public int getHeight() { return configuration.getHeight(); }
/** {@inheritDoc} */ @Override protected BuildResultGraph getGraphType() { return new NewVersusFixedGraph(); }