Examples of Arc2D


Examples of java.awt.geom.Arc2D

   *
   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)      
  {
    Arc2D arc = new Arc2D.Double(-1.0, -1.0, 2.0, 2.0, 0.0, 90.0, Arc2D.PIE);
    Point2D p = arc.getEndPoint();
    harness.check(p.getX(), 0.0);
    harness.check(p.getY(), -1.0);
  }
View Full Code Here

Examples of java.awt.geom.Arc2D

   * @param harness  the test harness (<code>null</code> not permitted).
   */
  public void test(TestHarness harness)      
  {
    // Arc2D does NOT override equals() 
    Arc2D arc1 = new Arc2D.Double();
    Arc2D arc2 = new Arc2D.Double();
    harness.check(!arc1.equals(arc2));
    harness.check(!arc1.equals(null));
  }
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.