use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testSquareRightBracketTbarEnd.
@Theory
public void testSquareRightBracketTbarEnd(final Tuple<String, String> cmd) {
parser(cmd.a + "{[-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.LEFT_SQUARE_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 testParamArrowtRBracketLength.
@Theory
public void testParamArrowtRBracketLength(final Tuple<String, String> cmd) {
parser(cmd.a + "[arrows=<->, rbracketlength=2.55]" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(2.55, line.getRBracketNum(), 0.0001);
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testRoundRightBracketNone.
@Theory
public void testRoundRightBracketNone(final Tuple<String, String> cmd) {
parser(cmd.a + "{(-}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.LEFT_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 testNoneLeftRoundBracket.
@Theory
public void testNoneLeftRoundBracket(final Tuple<String, String> cmd) {
parser(cmd.a + "{-)}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.RIGHT_ROUND_BRACKET, line.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestParsingArrow method testNoneLeftSquareBracket.
@Theory
public void testNoneLeftSquareBracket(final Tuple<String, String> cmd) {
parser(cmd.a + "{-]}" + cmd.b);
final IArrowableSingleShape line = (IArrowableSingleShape) listener.getShapes().get(0);
assertEquals(ArrowStyle.NONE, line.getArrowStyle(0));
assertEquals(ArrowStyle.RIGHT_SQUARE_BRACKET, line.getArrowStyle(1));
}
Aggregations