use of org.uberfire.ext.wires.core.client.canvas.FocusableLienzoPanel in project drools-wb by kiegroup.
the class GuidedDecisionTreePaletteGroup method addStencil.
public void addStencil(final ShapeFactory factory, final GuidedDecisionTreeStencilPaletteBuilder stencilBuilder, final FactoryHelper helper, final boolean isReadOnly) {
final LienzoPanel panel = new FocusableLienzoPanel(GuidedDecisionTreeStencilPaletteBuilder.STENCIL_WIDTH, GuidedDecisionTreeStencilPaletteBuilder.STENCIL_HEIGHT + ShapeFactoryUtil.SPACE_BETWEEN_BOUNDING);
final Layer layer = new Layer();
panel.getScene().add(layer);
// Create a new PaletteShape from the given factory
final PaletteShape shape = stencilBuilder.build(panel, helper, factory, isReadOnly);
layer.add(shape);
layer.batch();
add(panel);
}
Aggregations