Package net.sf.latexdraw.glib.models.interfaces.shape

Examples of net.sf.latexdraw.glib.models.interfaces.shape.ICircle


  }


  @Test
  public void test2CoordinatesFloat2() throws ParseException {
    ICircle cir =  (ICircle)parser.parsePSTCode("\\"+getCommandName()+"(35.5,50.5){1.25}").get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(35.5*IShape.PPC-1.25*IShape.PPC, cir.getPosition().getX(), 0.001);
    assertEquals((50.5*IShape.PPC-1.25*IShape.PPC)*-1., cir.getPosition().getY(), 0.001);
    assertEquals(1.25*IShape.PPC*2., cir.getWidth(), 0.0000001);
    assertEquals(1.25*IShape.PPC*2., cir.getHeight(), 0.0000001);
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here


  }


  @Test
  public void testCoordinatesMissing() throws ParseException {
    ICircle cir =  (ICircle)parser.parsePSTCode("\\"+getCommandName()+"(,){1}").get().getShapeAt(0); //$NON-NLS-1$ //$NON-NLS-2$
    assertEquals(IShape.PPC-1.*IShape.PPC, cir.getPosition().getX(), 0.0000001);
    assertEquals((IShape.PPC-1.*IShape.PPC)*-1., cir.getPosition().getY(), 0.0000001);
    assertEquals(1.*IShape.PPC*2., cir.getWidth(), 0.0000001);
    assertEquals(1.*IShape.PPC*2., cir.getHeight(), 0.0000001);
    assertTrue(PSTParser.errorLogs().isEmpty());
  }
View Full Code Here

TOP

Related Classes of net.sf.latexdraw.glib.models.interfaces.shape.ICircle

Copyright © 2018 www.massapicom. 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.