use of net.sf.latexdraw.models.interfaces.shape.IGroup in project latexdraw by arnobl.
the class TestIGroup method testDuplicateArrow.
@Test
public void testDuplicateArrow() {
shape.addShape(ShapeFactory.INST.createPolyline(Collections.emptyList()));
shape.setArrowStyle(ArrowStyle.BAR_END, 0);
shape.setArrowStyle(ArrowStyle.CIRCLE_END, 1);
IGroup shape2 = shape.duplicate();
assertEquals(ArrowStyle.BAR_END, shape2.getArrowStyle(0));
assertEquals(ArrowStyle.CIRCLE_END, shape2.getArrowStyle(1));
}
use of net.sf.latexdraw.models.interfaces.shape.IGroup in project latexdraw by arnobl.
the class TestPSTViewFactory method testCreateGroupViewPST.
@Test
public void testCreateGroupViewPST() {
IGroup gp = ShapeFactory.INST.createGroup();
gp.addShape(ShapeFactory.INST.createText());
Optional<PSTShapeView<IGroup>> view = PSTViewsFactory.INSTANCE.createView(gp);
assertTrue(view.isPresent());
}
Aggregations