Search in sources :

Example 1 with SVGContainer

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);
}
Also used : Group(com.ait.lienzo.client.core.shape.Group) SVGContainer(org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer) SVGPrimitiveShape(org.kie.workbench.common.stunner.svg.client.shape.view.SVGPrimitiveShape) Rectangle(com.ait.lienzo.client.core.shape.Rectangle) Before(org.junit.Before)

Example 2 with SVGContainer

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);
}
Also used : Group(com.ait.lienzo.client.core.shape.Group) SVGContainer(org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer) Rectangle(com.ait.lienzo.client.core.shape.Rectangle) Before(org.junit.Before)

Example 3 with SVGContainer

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);
}
Also used : Group(com.ait.lienzo.client.core.shape.Group) SVGContainer(org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer) SVGPrimitiveShape(org.kie.workbench.common.stunner.svg.client.shape.view.SVGPrimitiveShape) Rectangle(com.ait.lienzo.client.core.shape.Rectangle) Before(org.junit.Before)

Aggregations

Group (com.ait.lienzo.client.core.shape.Group)3 Rectangle (com.ait.lienzo.client.core.shape.Rectangle)3 Before (org.junit.Before)3 SVGContainer (org.kie.workbench.common.stunner.svg.client.shape.view.SVGContainer)3 SVGPrimitiveShape (org.kie.workbench.common.stunner.svg.client.shape.view.SVGPrimitiveShape)2