use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testParamArrowsRRBracker.
@Theory
public void testParamArrowsRRBracker(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=)-]" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.RIGHT_ROUND_BRACKET, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testArrowCNone.
@Theory
public void testArrowCNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{C-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.SQUARE_END, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testTbarEndNone.
@Theory
public void testTbarEndNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{|*-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.BAR_END, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testParamArrowsArrows.
@Theory
public void testParamArrowsArrows(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->]{-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNonec.
@Theory
public void testNonec(final Tuple<String, String> cmd) {
parser(cmd.a + "{-c}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.ROUND_END, line.getArrowStyle(1));
}
Aggregations