Example usage for java.awt.geom Line2D toString

List of usage examples for java.awt.geom Line2D toString

Introduction

In this page you can find the example usage for java.awt.geom Line2D toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

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

/**
 * Creates lines in a loop.//from  w ww  .  j  a v a2  s. c  om
 *
 * @param count  the number of lines to create.
 */
public void createLines(final int count) {

    Line2D line = new Line2D.Double();
    for (int i = 0; i < count; i++) {
        line = new Line2D.Double(1.0, 1.0, 1.0, 1.0);
    }
    System.out.println(line.toString());

}