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