Example usage for java.awt.geom CubicCurve2D getX1

List of usage examples for java.awt.geom CubicCurve2D getX1

Introduction

In this page you can find the example usage for java.awt.geom CubicCurve2D getX1.

Prototype

public abstract double getX1();

Source Link

Document

Returns the X coordinate of the start point in double precision.

Usage

From source file:Main.java

public void paint(Graphics g) {
    Graphics2D g2d = (Graphics2D) g;

    CubicCurve2D cubcurve = new CubicCurve2D.Float(30, 400, 150, 400, 200, 500, 350, 450);
    g2d.draw(cubcurve);/*from ww w . ja  va 2s .  c  o  m*/

    System.out.println(cubcurve.getX1());
}