TPTP 4.5.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.chart.svg.internal
Interface ICustomFormatter


public interface ICustomFormatter

ICustomFormatter is an interface that exploiters can use to define a custom label format. Exploiters will set specify their class in their input file. This interface only works when generating SVG charts. SWT renderer does not make use of this capability. Exploiters can specify a custom formatter class for various chart display text. For more information to see what display text can be custom formatted review the input schema file.


Method Summary
 java.lang.String format(java.lang.Object value, java.util.Locale locale, java.lang.String timezone, java.lang.String pattern)
          format method will recieve a unformatted value along with the locale timezone and formatting pattern.
 

Method Detail

format

java.lang.String format(java.lang.Object value,
                        java.util.Locale locale,
                        java.lang.String timezone,
                        java.lang.String pattern)
format method will recieve a unformatted value along with the locale timezone and formatting pattern. This function would format the value based on the locale, timzone and pattern. The formatted value is returned.

Parameters:
value - the unformatted value
locale - the locale
timezone - the timezone
pattern - the formatting pattern
Returns:
the formatted display value.

TPTP 4.5.0 Platform Project
Internal API Specification