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

hudson.plugins.tasks.util.ResultAreaRenderer Maven / Gradle / Ivy

Go to download

This plug-in scans the workspace files for open tasks and generates a trend report.

There is a newer version: 4.13
Show newest version
package hudson.plugins.tasks.util;


import org.jfree.data.category.CategoryDataset;

/**
 * Renderer that provides direct access to the individual results of a build via
 * links. The renderer also displays tooltips for each selected build.
 * 
    *
  • The tooltip is computed per column (i.e., per build) and shows the total * number of annotations for this build.
  • *
  • The link is also computed per column and links to the results for this * build.
  • *
* * @author Ulli Hafner */ public class ResultAreaRenderer extends AbstractAreaRenderer { /** Unique identifier of this class. */ private static final long serialVersionUID = -4683951507836348304L; /** * Creates a new instance of ResultAreaRenderer. * * @param url * base URL of the graph links * @param toolTipProvider * tooltip provider for the clickable map */ public ResultAreaRenderer(final String url, final ToolTipProvider toolTipProvider) { super(url, toolTipProvider); } /** {@inheritDoc} */ @Override public String generateToolTip(final CategoryDataset dataset, final int row, final int column) { int number = 0; for (int index = 0; index < dataset.getRowCount(); index++) { Number value = dataset.getValue(index, column); if (value != null) { number += value.intValue(); } } return getToolTipBuilder().getTooltip(number); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy