Search in sources :

Example 1 with ConnectorShapeDef

use of org.kie.workbench.common.stunner.shapes.def.ConnectorShapeDef in project kie-wb-common by kiegroup.

the class BasicShapesFactory method newConnector.

@SuppressWarnings("unchecked")
private Shape<ShapeView> newConnector(final Object instance, final BasicShapeDef shapeDef) {
    final ConnectorShapeDef cShapeDef = (ConnectorShapeDef) shapeDef;
    final AbstractConnectorView view = shapeViewFactory.connector(cShapeDef.getDirection(instance), 0, 0, 100, 100);
    view.setDashArray(cShapeDef.getDashArray(instance));
    return new BasicConnectorShape(cShapeDef, view);
}
Also used : AbstractConnectorView(org.kie.workbench.common.stunner.shapes.client.view.AbstractConnectorView) ConnectorShapeDef(org.kie.workbench.common.stunner.shapes.def.ConnectorShapeDef) BasicConnectorShape(org.kie.workbench.common.stunner.shapes.client.BasicConnectorShape)

Aggregations

BasicConnectorShape (org.kie.workbench.common.stunner.shapes.client.BasicConnectorShape)1 AbstractConnectorView (org.kie.workbench.common.stunner.shapes.client.view.AbstractConnectorView)1 ConnectorShapeDef (org.kie.workbench.common.stunner.shapes.def.ConnectorShapeDef)1