use of net.sf.latexdraw.models.interfaces.shape.IAxes in project latexdraw by arnobl.
the class TestIGroup method init4getAxes.
private IAxes init4getAxes() {
IShape sh1 = ShapeFactory.INST.createRectangle();
IAxes sh2 = ShapeFactory.INST.createAxes(ShapeFactory.INST.createPoint());
IAxes sh3 = ShapeFactory.INST.createAxes(ShapeFactory.INST.createPoint());
shape.getShapes().add(sh1);
shape.getShapes().add(sh2);
shape.getShapes().add(sh3);
return sh2;
}
use of net.sf.latexdraw.models.interfaces.shape.IAxes in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowRBracketParamsArr2.
@Theory
public void testArrowRBracketParamsArr2(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr1.isRoundBracket());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowRBracket(sh.getArrowAt(0), s2.getArrowAt(-1));
}
use of net.sf.latexdraw.models.interfaces.shape.IAxes in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowArrowParamsArr2.
@Theory
public void testArrowArrowParamsArr2(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr2.isArrow());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowArrow(sh.getArrowAt(-1), s2.getArrowAt(-1));
}
use of net.sf.latexdraw.models.interfaces.shape.IAxes in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowCircleDiskParamsArr2.
@Theory
public void testArrowCircleDiskParamsArr2(@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(-1), s2.getArrowAt(-1));
}
use of net.sf.latexdraw.models.interfaces.shape.IAxes in project latexdraw by arnobl.
the class TestSVGArrowable method testArrowBarParamsArr1.
@Theory
public void testArrowBarParamsArr1(@ArrowableData(withParamVariants = true) final IArrowableSingleShape sh, final ArrowStyle arr1, final ArrowStyle arr2) {
assumeTrue(arr1.isBar());
assumeFalse(sh instanceof IAxes);
sh.setArrowStyle(arr1, 0);
sh.setArrowStyle(arr2, -1);
final IArrowableSingleShape s2 = produceOutputShapeFrom(sh);
CompareShapeMatcher.INST.assertEqualsArrowBar(sh.getArrowAt(0), s2.getArrowAt(0));
}
Aggregations