org.eclipse.birt.chart.internal.factory
Class DateFormatWrapperFactory

java.lang.Object
  extended by org.eclipse.birt.chart.internal.factory.DateFormatWrapperFactory

public class DateFormatWrapperFactory
extends java.lang.Object

An internal factory help to generate IDateFormatWrapper.


Method Summary
static IDateFormatWrapper getPreferredDateFormat(int iUnit)
          Returns a preferred format specifier for tick labels that represent axis values that will be computed based on the difference between cdt1 and cdt2
static IDateFormatWrapper getPreferredDateFormat(int iUnit, com.ibm.icu.util.ULocale locale)
          Returns a preferred format specifier for tick labels that represent axis values that will be computed based on the difference between cdt1 and cdt2
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPreferredDateFormat

public static final IDateFormatWrapper getPreferredDateFormat(int iUnit)
Returns a preferred format specifier for tick labels that represent axis values that will be computed based on the difference between cdt1 and cdt2

Parameters:
iUnit - The unit for which a preferred pattern is being requested
Returns:
A preferred datetime format for the given unit

getPreferredDateFormat

public static final IDateFormatWrapper getPreferredDateFormat(int iUnit,
                                                              com.ibm.icu.util.ULocale locale)
Returns a preferred format specifier for tick labels that represent axis values that will be computed based on the difference between cdt1 and cdt2

Parameters:
iUnit - The unit for which a preferred pattern is being requested
locale - The locale for format style
Returns:
A preferred datetime format for the given unit


Copyright © 2005-2008 Actuate Corp. All rights reserved.