All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jclass.chart.JCChartTimeUtil

java.lang.Object
   |
   +----jclass.chart.JCChartTimeUtil

public class JCChartTimeUtil
extends Object
JCChartTimeUtil is a collection of static methods and static variables associated with time that are used throughout JCChart.


Variable Index

 o MAX_YEAR
 o MIN_YEAR

Constructor Index

 o JCChartTimeUtil()

Method Index

 o roundTime(Date, long, boolean)
Round the time down/up to the given unit.
 o timeLabel(String, Date)
Given a format string and an instance of Date, returns a formatted time label.

Variables

 o MIN_YEAR
  public final static int MIN_YEAR
 o MAX_YEAR
  public final static int MAX_YEAR

Constructors

 o JCChartTimeUtil
  public JCChartTimeUtil()

Methods

 o timeLabel
  public static String timeLabel(String format,
                                 Date dt)
Given a format string and an instance of Date, returns a formatted time label.

 o roundTime
  public static void roundTime(Date d,
                               long unit,
                               boolean adjust)
Round the time down/up to the given unit. eg. Feb 6 gets adjusted to Feb 1 00:00:00 or, if adjust is true, to Mar 1 00:00:00


All Packages  Class Hierarchy  This Package  Previous  Next  Index