use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testTbarEndNone.
@ParameterizedTest
@MethodSource("cmds")
public void testTbarEndNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{|*-}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.BAR_END, 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 testParamArrowsRRBracker.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowsRRBracker(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=)-]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.RIGHT_ROUND_BRACKET, 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 testArrowheadRightNone.
@ParameterizedTest
@MethodSource("cmds")
public void testArrowheadRightNone(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.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneC.
@ParameterizedTest
@MethodSource("cmds")
public void testNoneC(final Tuple<String, String> cmd) {
parser(cmd.a + "{-C}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.SQUARE_END, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testSquareLeftBracketNone.
@ParameterizedTest
@MethodSource("cmds")
public void testSquareLeftBracketNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{]-}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.RIGHT_SQUARE_BRACKET, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
Aggregations