Search in sources :

Example 21 with Line

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());
}
Also used : Line(net.sf.latexdraw.model.api.shape.Line) Theory(org.junit.experimental.theories.Theory)

Aggregations

Line (net.sf.latexdraw.model.api.shape.Line)21 Test (org.junit.Test)12 Point (net.sf.latexdraw.model.api.shape.Point)10 HelperTest (net.sf.latexdraw.HelperTest)7 Theory (org.junit.experimental.theories.Theory)4 Rotate (javafx.scene.transform.Rotate)1 SVGMarkerElement (net.sf.latexdraw.parser.svg.SVGMarkerElement)1