Example usage for org.jfree.data.time TimeTableXYDataset TimeTableXYDataset

List of usage examples for org.jfree.data.time TimeTableXYDataset TimeTableXYDataset

Introduction

In this page you can find the example usage for org.jfree.data.time TimeTableXYDataset TimeTableXYDataset.

Prototype

public TimeTableXYDataset(TimeZone zone, Locale locale) 

Source Link

Document

Creates a new dataset with the given time zone and locale.

Usage

From source file:org.xwiki.rendering.internal.macro.chart.source.table.TableTimeTableXYDatasetBuilder.java

@Override
public void setParameters(Map<String, String> parameters) throws MacroExecutionException {
    String timePeriodTypeString = parameters.get(TIMEPERIOD_TYPE_PARAM);

    if (timePeriodTypeString != null) {
        this.timePeriodType = TimePeriodType.forName(timePeriodTypeString);
        if (this.timePeriodType == null) {
            throw new MacroExecutionException(
                    String.format("Invalid time period type [%s].", timePeriodTypeString));
        }//from  w  w w.  jav  a2  s  . co m
    }

    dataset = new TimeTableXYDataset(localeConfiguration.getTimeZone(), localeConfiguration.getLocale());
}