use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneDiskEnd.
@ParameterizedTest
@MethodSource("cmds")
public void testNoneDiskEnd(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.DISK_END, line.getArrowStyle(1));
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testRoundRightBracketNone.
@ParameterizedTest
@MethodSource("cmds")
public void testRoundRightBracketNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{(-}" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(ArrowStyle.LEFT_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 testLeftRoundBracketNone.
@ParameterizedTest
@MethodSource("cmds")
public void testLeftRoundBracketNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{)-}" + 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 testParamArrowBracketLength.
@ParameterizedTest
@MethodSource("cmds")
public void testParamArrowBracketLength(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->, bracketlength=2.55]" + cmd.b);
final ArrowableSingleShape line = (ArrowableSingleShape) parsedShapes.get(0);
assertEquals(2.55, line.getBracketNum(), 0.0001);
}
use of net.sf.latexdraw.model.api.shape.ArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneTbarEnd.
@ParameterizedTest
@MethodSource("cmds")
public void testNoneTbarEnd(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.BAR_END, line.getArrowStyle(1));
}
Aggregations