use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowBracketParamsArr1.
@Theory
public void testArrowBracketParamsArr1(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr1.isSquareBracket());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowBracket(sh.getArrowAt(0), s2.getArrowAt(0));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowArrowParamsArr1.
@Theory
public void testArrowArrowParamsArr1(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr1.isArrow());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowArrow(sh.getArrowAt(0), s2.getArrowAt(0));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowBarParamsArr2.
@Theory
public void testArrowBarParamsArr2(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr2.isBar());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowBar(sh.getArrowAt(-1), s2.getArrowAt(-1));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowCircleDiskParamsArr1.
@Theory
public void testArrowCircleDiskParamsArr1(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr1.isCircleDisk());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowCircleDisk(sh.getArrowAt(0), s2.getArrowAt(0));
}
use of net.sf.latexdraw.models.interfaces.shape.IArrowableSingleShape in project latexdraw by arnobl.
the class TestPencilArrowStyle method testSelectLeftArrowStyleDISKENDPencil.
@Test
public void testSelectLeftArrowStyleDISKENDPencil() {
new CompositeGUIVoidCommand(activatePencil, pencilCreatesBezier, updateIns).execute();
ArrowStyle style = arrowLeftCB.getSelectionModel().getSelectedItem();
selectArrowLeftCB.execute(ArrowStyle.DISK_END);
ArrowStyle newStyle = arrowLeftCB.getSelectionModel().getSelectedItem();
assertEquals(ArrowStyle.DISK_END, newStyle);
assertEquals(newStyle, ((IArrowableSingleShape) pencil.createShapeInstance()).getArrowAt(0).getArrowStyle());
assertNotEquals(style, newStyle);
assertFalse(arrowPane.isVisible());
assertTrue(dotPane.isVisible());
assertFalse(barPane.isVisible());
assertFalse(bracketPane.isVisible());
assertFalse(rbracketPane.isVisible());
}
Aggregations