Example usage for org.jfree.data.xy NormalizedMatrixSeries NormalizedMatrixSeries

List of usage examples for org.jfree.data.xy NormalizedMatrixSeries NormalizedMatrixSeries

Introduction

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

Prototype

public NormalizedMatrixSeries(String name, int rows, int columns) 

Source Link

Document

Constructor for NormalizedMatrixSeries.

Usage

From source file:org.jfree.chart.demo.BubblyBubblesDemo2.java

/**
 * Creates a series./*from w  w w.  ja  v  a  2 s  .  c o  m*/
 * 
 * @return The series.
 */
private NormalizedMatrixSeries createInitialSeries() {
    final NormalizedMatrixSeries newSeries = new NormalizedMatrixSeries("Sample Grid 1", SIZE, SIZE);

    // seed a few random bubbles
    for (int count = 0; count < SIZE * 3; count++) {
        final int i = (int) (Math.random() * SIZE);
        final int j = (int) (Math.random() * SIZE);

        final double mij = Math.random() * 1;
        newSeries.update(i, j, mij);
    }

    newSeries.setScaleFactor(newSeries.getItemCount());

    return newSeries;
}

From source file:org.jfree.chart.demo.BubblyBubblesDemo.java

/**
 * Creates a series./*w  w w .  j  a va 2s  .co  m*/
 * 
 * @return The series.
 */
private NormalizedMatrixSeries createInitialSeries() {
    final NormalizedMatrixSeries newSeries = new NormalizedMatrixSeries("Sample Grid 1", SIZE, SIZE);

    // seed a few random bubbles
    for (int count = 0; count < SIZE; count++) {
        final int i = (int) (Math.random() * SIZE);
        final int j = (int) (Math.random() * SIZE);

        final int mij = (int) (Math.random() * SIZE);
        newSeries.update(i, j, mij);
    }

    newSeries.setScaleFactor(newSeries.getItemCount());

    return newSeries;
}

From source file:org.objectweb.proactive.extensions.timitspmd.util.charts.MatrixChart.java

/**
 * Creates a NormalizedMatrixSeries from the array and returns it.
 *//*from www .j  av  a2  s .c  om*/
private NormalizedMatrixSeries createMatrixDataSet() {
    NormalizedMatrixSeries matrix = new NormalizedMatrixSeries("s", this.array.length, this.array.length);
    return matrix;
}

From source file:org.objectweb.proactive.extensions.timitspmd.util.charts.MatrixChart.java

/**
 * Creates a Legend DataSet and returns it.
 *///  w w  w .  java2  s. c om
private NormalizedMatrixSeries createLegendDataSet() {
    NormalizedMatrixSeries matrix = new NormalizedMatrixSeries("Legend", this.legendValues.length, 1);

    return matrix;
}