com.atlassian.jira.charts.jfreechart.util
Class ChartUtil
java.lang.Object
com.atlassian.jira.charts.jfreechart.util.ChartUtil
public class ChartUtil
- extends Object
- Since:
- v4.0
Method Summary |
static Class |
getTimePeriodClass(ChartFactory.PeriodName periodName)
Note: This could be made part of the PeriodName Enum, however I don't want to leak any JFreeChart classes
out of this package, which is why I'd like to keep it in this Util. |
static void |
setDefaults(org.jfree.chart.JFreeChart chart,
I18nHelper i18nHelper)
|
static void |
setupDomainAxis(org.jfree.chart.axis.CategoryAxis domainAxis)
|
static void |
setupDomainAxis(org.jfree.chart.axis.ValueAxis domainAxis)
|
static void |
setupLegendTitle(org.jfree.chart.title.LegendTitle legend)
|
static void |
setupPlot(org.jfree.chart.plot.CategoryPlot plot)
|
static void |
setupPlot(org.jfree.chart.plot.Plot plot)
|
static void |
setupPlot(org.jfree.chart.plot.XYPlot plot)
|
static void |
setupRangeAxis(org.jfree.chart.axis.ValueAxis rangeAxis)
|
static void |
setupTextTitle(org.jfree.chart.title.TextTitle title)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChartUtil
public ChartUtil()
getTimePeriodClass
public static Class getTimePeriodClass(ChartFactory.PeriodName periodName)
- Note: This could be made part of the PeriodName Enum, however I don't want to leak any JFreeChart classes
out of this package, which is why I'd like to keep it in this Util.
- Parameters:
periodName
- The Period enum to convert to JFreechart
- Returns:
- A Jfreechart period class equivalent to the PeriodName enum
setDefaults
public static void setDefaults(org.jfree.chart.JFreeChart chart,
I18nHelper i18nHelper)
setupPlot
public static void setupPlot(org.jfree.chart.plot.Plot plot)
setupPlot
public static void setupPlot(org.jfree.chart.plot.CategoryPlot plot)
setupPlot
public static void setupPlot(org.jfree.chart.plot.XYPlot plot)
setupRangeAxis
public static void setupRangeAxis(org.jfree.chart.axis.ValueAxis rangeAxis)
setupDomainAxis
public static void setupDomainAxis(org.jfree.chart.axis.CategoryAxis domainAxis)
setupDomainAxis
public static void setupDomainAxis(org.jfree.chart.axis.ValueAxis domainAxis)
setupTextTitle
public static void setupTextTitle(org.jfree.chart.title.TextTitle title)
setupLegendTitle
public static void setupLegendTitle(org.jfree.chart.title.LegendTitle legend)
Copyright © 2002-2013 Atlassian. All Rights Reserved.