Search in sources :

Example 1 with SVGShapeViewDef

use of org.kie.workbench.common.stunner.svg.client.shape.def.SVGShapeViewDef in project kie-wb-common by kiegroup.

the class SVGShapeFactory method newSVGMutableShape.

@SuppressWarnings("unchecked")
private SVGShape<?> newSVGMutableShape(final Object instance, final SVGShapeDef shapeDef) {
    final SVGShapeViewDef mutableShapeDef = (SVGShapeViewDef) shapeDef;
    final SVGShapeView view = newSVGShapeView(instance, mutableShapeDef);
    return new SVGMutableShapeImpl<Object, SVGShapeViewDef<Object, Object>>(mutableShapeDef, (SVGShapeViewImpl) view);
}
Also used : SVGShapeViewDef(org.kie.workbench.common.stunner.svg.client.shape.def.SVGShapeViewDef) SVGMutableShapeImpl(org.kie.workbench.common.stunner.svg.client.shape.impl.SVGMutableShapeImpl) SVGShapeView(org.kie.workbench.common.stunner.svg.client.shape.view.SVGShapeView)

Aggregations

SVGShapeViewDef (org.kie.workbench.common.stunner.svg.client.shape.def.SVGShapeViewDef)1 SVGMutableShapeImpl (org.kie.workbench.common.stunner.svg.client.shape.impl.SVGMutableShapeImpl)1 SVGShapeView (org.kie.workbench.common.stunner.svg.client.shape.view.SVGShapeView)1