use of net.sf.latexdraw.model.api.shape.Line in project latexdraw by arnobl.
the class TestCircleArc method testGetArrowLineArrow1StartLesserEnd.
@Theory
public void testGetArrowLineArrow1StartLesserEnd(@ArcData final CircleArc shape) {
shape.setPosition(0d, 0d);
shape.setWidth(10d);
shape.setAngleStart(Math.PI * 1.22);
shape.setAngleEnd(Math.PI * 1.56);
shape.setArrowStyle(ArrowStyle.RIGHT_ARROW, 1);
final Line line = shape.getArrowLine(1);
assertTrue(line.getX1() > line.getX2());
assertTrue(line.getY1() > line.getY2());
}
Aggregations