Example usage for org.jfree.data DefaultKeyedValues2D DefaultKeyedValues2D

List of usage examples for org.jfree.data DefaultKeyedValues2D DefaultKeyedValues2D

Introduction

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

Prototype

public DefaultKeyedValues2D(boolean sortRowKeys) 

Source Link

Document

Creates a new instance (initially empty).

Usage

From source file:org.jfree.data.xy.CategoryTableXYDataset.java

/**
 * Creates a new empty CategoryTableXYDataset.
 *//*from   ww w.  ja  v a  2 s  . c  o m*/
public CategoryTableXYDataset() {
    this.values = new DefaultKeyedValues2D(true);
    this.intervalDelegate = new IntervalXYDelegate(this);
    addChangeListener(this.intervalDelegate);
}

From source file:org.jfree.data.time.TimeTableXYDataset.java

/**
 * Creates a new dataset with the given time zone and locale.
 *
 * @param zone  the time zone to use (<code>null</code> not permitted).
 * @param locale  the locale to use (<code>null</code> not permitted).
 *//* w  w  w .  ja v  a 2s .  c o m*/
public TimeTableXYDataset(TimeZone zone, Locale locale) {
    ParamChecks.nullNotPermitted(zone, "zone");
    ParamChecks.nullNotPermitted(locale, "locale");
    this.values = new DefaultKeyedValues2D(true);
    this.workingCalendar = Calendar.getInstance(zone, locale);
    this.xPosition = TimePeriodAnchor.START;
}