use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testDiskInNone.
@Theory
public void testDiskInNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{**-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.DISK_IN, 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 testDbleArrowLeftDbleArrowRight.
@Theory
public void testDbleArrowLeftDbleArrowRight(final Tuple<String, String> cmd) {
parser(cmd.a + "{<<->>}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.LEFT_DBLE_ARROW, line.getArrowStyle(0));
assertEquals(ArrowStyle.RIGHT_DBLE_ARROW, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneArrowheadLeft.
@Theory
public void testNoneArrowheadLeft(final Tuple<String, String> cmd) {
parser(cmd.a + "{-<}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.LEFT_ARROW, line.getArrowStyle(1));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneCircleIn.
@Theory
public void testNoneCircleIn(final Tuple<String, String> cmd) {
parser(cmd.a + "{-oo}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.CIRCLE_IN, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testCircleEndNone.
@Theory
public void testCircleEndNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{o-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.CIRCLE_END, line.getArrowStyle(0));
assertEquals(ArrowStyle.NONE, line.getArrowStyle(1));
}
Aggregations