public class GHChartUtil extends Object
| Constructor and Description |
|---|
GHChartUtil() |
| Modifier and Type | Method and Description |
|---|---|
static GregorianCalendar |
endOfDay(Date date) |
static Map<Integer,Long> |
getDaysVsDatesMapping(Date beginDate,
Date endDate,
int workingDaysPerWeek,
Set<Date> nonWorkingDates) |
static int |
numberOfWorkingDays(Date beginDate,
Date endDate,
int nbDaysInWeek,
Set<Date> nonWorkingDates) |
static void |
setDefaults(org.jfree.chart.JFreeChart chart) |
static void |
setTimeSeriesChartDefaults(org.jfree.chart.JFreeChart chart,
org.jfree.chart.plot.Plot genericPlot)
Utility method to set the default style of the Time Series Charts
|
static GregorianCalendar |
startOfDay(Date date) |
static double |
toHours(long millisecond,
int precision) |
public static int numberOfWorkingDays(Date beginDate, Date endDate, int nbDaysInWeek, Set<Date> nonWorkingDates)
public static Map<Integer,Long> getDaysVsDatesMapping(Date beginDate, Date endDate, int workingDaysPerWeek, Set<Date> nonWorkingDates)
public static double toHours(long millisecond,
int precision)
public static GregorianCalendar startOfDay(Date date)
public static GregorianCalendar endOfDay(Date date)
public static void setDefaults(org.jfree.chart.JFreeChart chart)
public static void setTimeSeriesChartDefaults(org.jfree.chart.JFreeChart chart,
org.jfree.chart.plot.Plot genericPlot)
chart - JFreeChart to stylegenericPlot - PlotCopyright © 2007–2015 Atlassian. All rights reserved.