use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testArrowheadRightArrowheadLeft.
@ParameterizedTest
@MethodSource("cmds")
public void testArrowheadRightArrowheadLeft(final Tuple<String, String> cmd) {
parser(cmd.a + "{>-<}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.RIGHT_ARROW, line.getArrowStyle(0));
assertEquals(ArrowStyle.LEFT_ARROW, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testParamArrows.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrows(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.LEFT_ARROW, line.getArrowStyle(0));
assertEquals(ArrowStyle.RIGHT_ARROW, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testDiskInNone.
@ParameterizedTest
@MethodSource("cmds")
public void testDiskInNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{**-}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.DISK_IN, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneNone.
@ParameterizedTest
@MethodSource("cmds")
public void testNoneNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{-}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneArrowheadLeft.
@ParameterizedTest
@MethodSource("cmds")
public void testNoneArrowheadLeft(final Tuple<String, String> cmd) {
parser(cmd.a + "{-<}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.LEFT_ARROW, line.getArrowStyle(1));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
}
Aggregations