use of org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer in project kie-wb-common by kiegroup.
the class SVGBasicShapeViewImplTest method setup.
@Before
public void setup() throws Exception {
this.parent = new SVGContainer("parent", new Group().setID("parent"), false, null);
rectangle = new Rectangle(10d, 10d);
this.shape = new SVGPrimitiveShape(rectangle);
this.childShape = new SVGPrimitiveShape(new Rectangle(10d, 10d));
this.child = new SVGBasicShapeViewImpl("svgChild1", childShape, 50d, 23d);
this.tested = new SVGBasicShapeViewImpl("svg-test1", shape, 100, 340);
}
use of org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer in project kie-wb-common by kiegroup.
the class SVGChildViewHandlerTest method setup.
@Before
public void setup() throws Exception {
this.svgGroup = new Group().setID("svgGroup1");
this.group = new Group().setID("parent");
this.rectangle = new Rectangle(10d, 10d);
when(svgChild.getContainer()).thenReturn(svgGroup);
this.parentShape = new SVGContainer("parent", group, false, null);
this.tested = new SVGChildViewHandler(shapeView);
}
use of org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer in project kie-wb-common by kiegroup.
the class SVGShapeViewImplTest method setup.
@Before
public void setup() throws Exception {
this.parent = new SVGContainer("parent", new Group().setID("parent"), false, null);
rectangle = new Rectangle(10d, 10d);
this.childShape = new SVGPrimitiveShape(new Rectangle(10d, 10d));
this.child = new SVGBasicShapeViewImpl("svgChild1", childShape, 50d, 23d);
this.shape = new SVGPrimitiveShape(rectangle);
this.tested = new SVGShapeViewImpl("svg-test1", shape, 100, 340, false);
}
Aggregations