com.pyxis.greenhopper.charts
Class GHChartUtil

java.lang.Object
  extended by com.pyxis.greenhopper.charts.GHChartUtil

public class GHChartUtil
extends java.lang.Object


Constructor Summary
GHChartUtil()
           
 
Method Summary
static java.util.GregorianCalendar endOfDay(java.util.Date date)
           
static java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping(java.util.Date beginDate, java.util.Date endDate, int workingDaysPerWeek, java.util.Set<java.util.Date> nonWorkingDates)
           
static int numberOfWorkingDays(java.util.Date beginDate, java.util.Date endDate, int nbDaysInWeek, java.util.Set<java.util.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 java.util.GregorianCalendar startOfDay(java.util.Date date)
           
static double toHours(long millisecond, int precision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHChartUtil

public GHChartUtil()
Method Detail

numberOfWorkingDays

public static int numberOfWorkingDays(java.util.Date beginDate,
                                      java.util.Date endDate,
                                      int nbDaysInWeek,
                                      java.util.Set<java.util.Date> nonWorkingDates)

getDaysVsDatesMapping

public static java.util.Map<java.lang.Integer,java.lang.Long> getDaysVsDatesMapping(java.util.Date beginDate,
                                                                                    java.util.Date endDate,
                                                                                    int workingDaysPerWeek,
                                                                                    java.util.Set<java.util.Date> nonWorkingDates)

toHours

public static double toHours(long millisecond,
                             int precision)

startOfDay

public static java.util.GregorianCalendar startOfDay(java.util.Date date)

endOfDay

public static java.util.GregorianCalendar endOfDay(java.util.Date date)

setDefaults

public static void setDefaults(org.jfree.chart.JFreeChart chart)

setTimeSeriesChartDefaults

public 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

Parameters:
chart - JFreeChart to style
genericPlot - Plot


Copyright © 2007-2014 Atlassian. All Rights Reserved.