Examples of Ellipse2D


Examples of java.awt.geom.Ellipse2D

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)      
  {
    Ellipse2D e = new Ellipse2D.Double();
    harness.check(e.getX(), 0.0);

    e = new Ellipse2D.Double(1.0, 2.0, 3.0, 4.0);
    harness.check(e.getX(), 1.0);
  }
View Full Code Here

Examples of java.awt.geom.Ellipse2D

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)     
  {
    // constructor 1
    Ellipse2D e = new Ellipse2D.Double();
    harness.check(e.getX(), 0.0);
    harness.check(e.getY(), 0.0);
    harness.check(e.getWidth(), 0.0);
    harness.check(e.getHeight(), 0.0);
    harness.check(e.isEmpty());

    // constructor 2
    e = new Ellipse2D.Double(1.0, 2.0, 3.0, 4.0);
    harness.check(e.getX(), 1.0);
    harness.check(e.getY(), 2.0);
    harness.check(e.getWidth(), 3.0);
    harness.check(e.getHeight(), 4.0);
    harness.check(!e.isEmpty())
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.