com.atlassian.jira.charts.util
Interface ChartUtils

All Known Implementing Classes:
ChartUtilsImpl

public interface ChartUtils

Utility class for charting

Since:
v4.0

Method Summary
 File getChartDirectory()
          Get the directory that charts are temporarily stored in.
 String renderBase64Chart(BufferedImage image, String chartName)
          Encode given image into the base 64 string.
 SearchRequest retrieveOrMakeSearchRequest(String searchQuery, Map<String,Object> params)
          Make a search request out of the searchQuery parameter and populate the report/portlet param map
 

Method Detail

retrieveOrMakeSearchRequest

SearchRequest retrieveOrMakeSearchRequest(String searchQuery,
                                          Map<String,Object> params)
Make a search request out of the searchQuery parameter and populate the report/portlet param map

Parameters:
searchQuery - a jql string, a project id or a filter id
params - the map of parameters to modify
Returns:
The SearchRequest for the project/filter id

getChartDirectory

File getChartDirectory()
Get the directory that charts are temporarily stored in.

Returns:
Directory
Since:
v6.3

renderBase64Chart

String renderBase64Chart(BufferedImage image,
                         String chartName)
Encode given image into the base 64 string.

Parameters:
image - image to be encoded
chartName - name that occurs in log in case of error
Returns:
image as a String in base 64 encoded format ("data:image/png;base64,iVBORw0KGgoAAAANS...")


Copyright © 2002-2014 Atlassian. All Rights Reserved.