List of usage examples for java.awt.geom Ellipse2D setFrameFromDiagonal
public void setFrameFromDiagonal(Point2D p1, Point2D p2)
From source file:ShapeTest.java
public Shape makeShape(Point2D[] p) { Ellipse2D s = new Ellipse2D.Double(); s.setFrameFromDiagonal(p[0], p[1]); return s;// w w w . j a v a2 s . c o m }