use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testParamArrowsSLBracket.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowsSLBracket(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=[-]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.LEFT_SQUARE_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 testParamArrowtRBracketLength.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowtRBracketLength(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->, rbracketlength=2.55]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(2.55, line.getRBracketNum(), 0.0001);
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testParamArrowInset.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowInset(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->, arrowinset=2.5]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(2.5, line.getArrowInset(), 0.0001);
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testParamArrowsArrows.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowsArrows(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->]{-}" + 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 testParamArrowsRLBracker.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowsRLBracker(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=(-]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.LEFT_ROUND_BRACKET, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
Aggregations