Java Swing Tutorial - Java Ellipse2D() Constructor








Syntax

Ellipse2D() constructor from Ellipse2D has the following syntax.

protected Ellipse2D()

Example

In the following code shows how to use Ellipse2D.Ellipse2D() constructor.

import java.awt.geom.Ellipse2D;
import java.awt.geom.Point2D;
/*www  .  j  a va  2 s.com*/
public class Main {

  public static void main(String args[]) {
    Ellipse2D.Double e = new Ellipse2D.Double(1.0,2.0,2.0,2.0);
    
    e.contains(2.0,2.0);
  }
}