method2testcases
stringlengths
118
6.63k
### Question: ZoomLevelSelectorItem implements IsElement { public void reset() { levelItem.setClassName(ITEM_CLASS_NAME); } ZoomLevelSelectorItem setText(final String value); ZoomLevelSelectorItem setOnClick(final Command onClick); void select(); void reset(); @PreDestroy void destroy(); }### Answer: @Test public voi...
### Question: ZoomLevelSelectorItem implements IsElement { @EventHandler("levelItemAnchor") void onLevelItemClick(ClickEvent event) { onClick.execute(); } ZoomLevelSelectorItem setText(final String value); ZoomLevelSelectorItem setOnClick(final Command onClick); void select(); void reset(); @PreDestroy void destroy();...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void init(final ZoomLevelSelector presenter) { this.presenter = presenter; setTooltip(increaseButton, translationService.getNotNullValue(CoreTranslationMessages.INCREASE)); setTooltip(decreaseButton, translationSe...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { public void setSelectedValue(String selectedItem) { dropDownText.setTextContent(selectedItem); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Command onCl...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void setText(String text) { dropDownText.setTextContent(text); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Command onClick); @Override...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void setEnabled(boolean enabled) { dropDownButton.setDisabled(!enabled); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Command onClick);...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void dropUp() { dropDownPanelGroup.setClassName(dropDownPanelGroup.getClassName() + " " + CSS_DROP_UP); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, ...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @EventHandler("increaseButton") void onIncreaseLevel(ClickEvent event) { presenter.onIncreaseLevel(); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Comma...
### Question: DecisionNavigatorNestedItemFactory { public boolean hasNestedElement(final Node<View, Edge> node) { return helper.getOptionalHasExpression(node).isPresent() && helper.getOptionalExpression(node).isPresent(); } @Inject DecisionNavigatorNestedItemFactory(final SessionManager sessionManager, ...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @EventHandler("decreaseButton") void onDecreaseLevel(ClickEvent event) { presenter.onDecreaseLevel(); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Comma...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @EventHandler("resetButton") void onReset(ClickEvent event) { presenter.onReset(); } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Command onClick); @Overr...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @Override public void add(final String text, final Command onClick) { final ZoomLevelSelectorItem item = items.get(); item.setText(text); item.setOnClick(onClick); dropDownMenu.appendChild(item.getElement()); } @Override void ini...
### Question: ZoomLevelSelectorView extends Composite implements ZoomLevelSelector.View { @PreDestroy public void destroy() { clear(); items.destroyAll(); presenter = null; } @Override void init(final ZoomLevelSelector presenter); @Override void add(final String text, final Command onClick); @Overr...
### Question: ZoomLevelSelectorPresenter { @PostConstruct public void construct() { floatingView .clearTimeOut() .setOffsetX(0) .setOffsetY(0) .hide(); hideTimer = new Timer() { @Override public void run() { hide(); } }; } @Inject ZoomLevelSelectorPresenter(final ClientTranslationService translationService, ...
### Question: ZoomLevelSelectorPresenter { public ZoomLevelSelectorPresenter at(final double x, final double y) { floatingView.setX(x).setY(y); return this; } @Inject ZoomLevelSelectorPresenter(final ClientTranslationService translationService, final FloatingView<IsWidget> floatin...
### Question: ZoomLevelSelectorPresenter { public ZoomLevelSelectorPresenter show() { if (zoomLevelInit) { zoomLevelInit = false; } else { cancelHide(); floatingView.show(); } return this; } @Inject ZoomLevelSelectorPresenter(final ClientTranslationService translationService, fina...
### Question: ZoomLevelSelectorPresenter { public ZoomLevelSelectorPresenter hide() { floatingView.hide(); return this; } @Inject ZoomLevelSelectorPresenter(final ClientTranslationService translationService, final FloatingView<IsWidget> floatingView, ...
### Question: ZoomLevelSelectorPresenter { @PreDestroy public void destroy() { cancelHide(); if (null != panelResizeHandlerRegistration) { panelResizeHandlerRegistration.removeHandler(); panelResizeHandlerRegistration = null; } if (null != transformChangedHandler) { transformChangedHandler.removeHandler(); transformCha...
### Question: LienzoPanelMediators { public LienzoPanelMediators init(final Supplier<LienzoCanvas> canvas) { CanvasPanel panel = canvas.get().getView().getPanel(); if (panel instanceof LienzoPanel) { focusHandler = new LienzoPanelFocusHandler() .listen((LienzoPanel) canvas.get().getView().getPanel(), this::enable, this...
### Question: LienzoPanelMediators { public LienzoPanelMediators setMinScale(final double minScale) { selector.setMinScale(minScale); mediators.setMinScale(minScale); return this; } @Inject LienzoPanelMediators(final LienzoCanvasMediators mediators, final ZoomLevelSelectorPresenter sele...
### Question: LienzoPanelMediators { public LienzoPanelMediators setMaxScale(final double maxScale) { selector.setMaxScale(maxScale); mediators.setMaxScale(maxScale); return this; } @Inject LienzoPanelMediators(final LienzoCanvasMediators mediators, final ZoomLevelSelectorPresenter sele...
### Question: LienzoPanelMediators { public LienzoPanelMediators setZoomFactor(final double factor) { selector.setZoomFactor(factor); mediators.setZoomFactor(factor); return this; } @Inject LienzoPanelMediators(final LienzoCanvasMediators mediators, final ZoomLevelSelectorPresenter sele...
### Question: LienzoPanelMediators { public void enable() { mediators.enable(); selector.show(); } @Inject LienzoPanelMediators(final LienzoCanvasMediators mediators, final ZoomLevelSelectorPresenter selector); LienzoPanelMediators init(final Supplier<LienzoCanvas> canvas); LienzoPanelM...
### Question: LienzoPanelMediators { public void disable() { mediators.disable(); selector.scheduleHide(); } @Inject LienzoPanelMediators(final LienzoCanvasMediators mediators, final ZoomLevelSelectorPresenter selector); LienzoPanelMediators init(final Supplier<LienzoCanvas> canvas); Li...
### Question: DMNContentServiceImpl extends KieService<String> implements DMNContentService { @Override public void saveContent(final Path path, final String content, final Metadata metadata, final String comment) { try { ioService.write(convertPath(path), content, getAttrs(path, metadata), getCommentedOption(comment))...
### Question: LienzoPanelMediators { @PreDestroy public void destroy() { if (null != focusHandler) { focusHandler.clear(); focusHandler = null; } } @Inject LienzoPanelMediators(final LienzoCanvasMediators mediators, final ZoomLevelSelectorPresenter selector); LienzoPanelMediators init(f...
### Question: ZoomLevelSelector implements IsWidget { @PostConstruct public void init() { view.init(this); } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel); ZoomLe...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector setText(final String text) { view.setText(text); return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(fina...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector add(final String text, final Command onClick) { view.add(text, onClick); return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelec...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector clear() { view.clear(); return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector setEnabled(boolean enabled) { view.setEnabled(enabled); return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLev...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector onReset(final Command onReset) { checkNotNull("onReset", onReset); this.onReset = onReset; return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLeve...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel) { checkNotNull("onIncreaseLevel", onIncreaseLevel); this.onIncreaseLevel = onIncreaseLevel; return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelec...
### Question: ZoomLevelSelector implements IsWidget { public ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel) { checkNotNull("onDecreaseLevel", onDecreaseLevel); this.onDecreaseLevel = onDecreaseLevel; return this; } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelec...
### Question: ZoomLevelSelector implements IsWidget { @Override public Widget asWidget() { return view.asWidget(); } @Inject ZoomLevelSelector(final View view); @PostConstruct void init(); ZoomLevelSelector onDecreaseLevel(final Command onDecreaseLevel); ZoomLevelSelector onIncreaseLevel(final Command onIncreaseLevel)...
### Question: DecisionNavigatorItemFactory { public DecisionNavigatorItem makeRoot(final DMNDiagramTuple diagramTuple) { final DMNDiagramElement dmnDiagramElement = diagramTuple.getDMNDiagram(); final String uuid = dmnDiagramElement.getId().getValue(); final String diagramName = dmnDiagramElement.getName().getValue(); ...
### Question: LienzoCanvasMediators { public void init(final Supplier<LienzoCanvas> canvas) { keyEventHandler.addKeyShortcutCallback(new KogitoKeyShortcutKeyDownThenUp(new Key[]{Key.ALT}, "Navigate | Hold and drag to Pan", this::enablePan, this::clear)); keyEventHandler.addKeyShortcutCallback(new KogitoKeyShortcutKeyDo...
### Question: LienzoCanvasMediators { private void enablePreview() { if (null != mediators && mediators.enablePreview()) { cursor.accept(CURSOR_PREVIEW); notification.show(translationService.getNotNullValue(CoreTranslationMessages.MEDIATOR_PREVIEW)); } } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHand...
### Question: LienzoCanvasMediators { public void setMinScale(final double minScale) { mediators.getZoomMediator().setMinScale(minScale); } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHandler, final ClientTranslationService translationService, ...
### Question: LienzoCanvasMediators { public void setMaxScale(final double maxScale) { mediators.getZoomMediator().setMaxScale(maxScale); mediators.getPreviewMediator().setMaxScale(maxScale); } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHandler, final ClientTranslation...
### Question: LienzoCanvasMediators { public void setZoomFactor(final double factor) { mediators.getZoomMediator().setZoomFactor(factor); } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHandler, final ClientTranslationService translationService, ...
### Question: LienzoCanvasMediators { public void setScaleAboutPoint(final boolean scaleAboutPoint) { mediators.getZoomMediator().setScaleAboutPoint(scaleAboutPoint); } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHandler, final ClientTranslationService translationServic...
### Question: LienzoCanvasMediators { public void disable() { keyEventHandler.setEnabled(false); clear(); } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHandler, final ClientTranslationService translationService, final LienzoCanvasNotific...
### Question: LienzoCanvasMediators { @PreDestroy public void destroy() { if (null != mediators) { mediators.destroy(); mediators = null; } } @Inject LienzoCanvasMediators(final KeyEventHandler keyEventHandler, final ClientTranslationService translationService, ...
### Question: LienzoLayerUtils { public static String getUUID_At(final LienzoLayer lienzoLayer, final double x, final double y) { int sx = (int) x; int sy = (int) y; final Shape<?> shape = lienzoLayer.getLienzoLayer().getLayer().findShapeAtPoint(sx, sy); final String viewUUID = getShapeUUID(shape); return viewUUID; } ...
### Question: LienzoLayerUtils { public static String layerToDataURL(final LienzoLayer lienzoLayer, final DataURLType dataURLType, final int x, final int y, final int width, final int height, final String bgColor) { final com.ait.lienzo.client.core.shape.Layer layer = lienzoLayer.getLienzoLayer(); final ScratchPad scra...
### Question: LienzoShapeUtils { public static OptionalBounds translateBounds(final Bounds bounds) { final OptionalBounds result = OptionalBounds.createEmptyBounds(); if (bounds.hasUpperLeft()) { final Bound upperLeft = bounds.getUpperLeft(); if (upperLeft.hasX()) { result.setMinX(upperLeft.getX()); } if (upperLeft.has...
### Question: LienzoPictureUtils { public static void tryDestroy(final Picture picture, final Consumer<Picture> retryCallback) { if (!retryDestroy(picture)) { retryCallback.accept(picture); } } static void forceLoad(final Picture picture, final String data, ...
### Question: ShapeViewDecoratorAnimation extends AbstractAnimation<LienzoShapeView<?>> { private IAnimationHandle animate(final com.ait.lienzo.client.core.shape.Shape<?> shape) { final AnimationProperties properties = isStrokeNotFill ? AnimationProperties.toPropertyList(STROKE_COLOR(color), STROKE_ALPHA(alpha), STROKE...
### Question: ShapeViewDecoratorAnimation extends AbstractAnimation<LienzoShapeView<?>> { @Override public AnimationHandle run() { final List<IAnimationHandle> handles = new LinkedList<>(); getDecorators().forEach(dec -> handles.add(animate(dec))); return new AnimationHandle() { @Override public AnimationHandle run() {...
### Question: MultipleAnimationHandle implements IAnimationHandle { @Override public IAnimationHandle run() { handles.forEach(IAnimationHandle::run); return this; } MultipleAnimationHandle(final List<IAnimationHandle> handles); @Override IAnimationHandle run(); @Override IAnimationHandle stop(); @Override Node<?> getNo...
### Question: MultipleAnimationHandle implements IAnimationHandle { @Override public IAnimationHandle stop() { handles.forEach(IAnimationHandle::stop); return this; } MultipleAnimationHandle(final List<IAnimationHandle> handles); @Override IAnimationHandle run(); @Override IAnimationHandle stop(); @Override Node<?> get...
### Question: MultipleAnimationHandle implements IAnimationHandle { @Override public boolean isRunning() { return handles.stream() .filter(IAnimationHandle::isRunning) .findAny() .isPresent(); } MultipleAnimationHandle(final List<IAnimationHandle> handles); @Override IAnimationHandle run(); @Override IAnimationHandle s...
### Question: TextWrapperProvider { public static ITextWrapper get(final TextWrapperStrategy strategy, final Text text) { switch (strategy) { case BOUNDS_AND_LINE_BREAKS: return new TextBoundsAndLineBreaksWrap(text); case LINE_BREAK: return new TextLineBreakWrap(text); case NO_WRAP: return new TextNoWrap(text); case TR...
### Question: DecisionNavigatorItemFactory { public DecisionNavigatorItem makeSeparator(final String label) { return navigatorItemBuilder() .withUUID(UUID.uuid()) .withLabel(label) .withType(SEPARATOR) .build(); } @Inject DecisionNavigatorItemFactory(final DecisionNavigatorBaseItemFactory baseItemFactory, ...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public void refresh() { getTextViewDecorator().update(); super.refresh(); } WiresShapeViewExt(fina...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public T setTitleXOffsetPosition(final Double xOffset) { textViewDecorator.setTitleXOffsetPosition...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public T setTitleYOffsetPosition(final Double yOffset) { textViewDecorator.setTitleYOffsetPosition...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override @SuppressWarnings("unchecked") public T setTitle(final String title) { textViewDecorator.setTitle(...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public String getTitleFontFamily() { return textViewDecorator.getTitleFontFamily(); } WiresShapeVi...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public double getTitleFontSize() { return textViewDecorator.getTitleFontSize(); } WiresShapeViewEx...
### Question: DecisionNavigatorItemFactory { Command getOnClickAction(final DMNDiagramElement dmnDiagramElement) { return () -> { selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } @Inject DecisionNavigatorItemFactory(final DecisionNavigatorBaseItemFactory baseItemFactory, ...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public String getTitlePosition() { return textViewDecorator.getLabelLayout() .getDirectionLayout()...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public String getOrientation() { return textViewDecorator.getLabelLayout() .getDirectionLayout() ....
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public double getMarginX() { return textViewDecorator.getLabelLayout().getSizeConstraints().getMar...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public String getFontPosition() { return textViewDecorator.getLabelLayout() .getDirectionLayout() ...
### Question: WiresShapeViewExt extends WiresShapeView<T> implements HasTitle<T>, HasControlPoints<T>, HasEventHandlers<T, Shape<?>>, HasFillGradient<T> { @Override public String getFontAlignment() { return textViewDecorator.getLabelLayout() .getDirectionLayout()...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { public void update() { setTextBoundaries(shape.getPath().getBoundingBox()); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final WiresShapeViewExt shape); void setTextClickHandler(...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public void setTextBoundaries(final double width, final double height) { setTextBoundaries(new BoundingBox(0, 0, width, height)); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, ...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @SuppressWarnings("unchecked") public WiresTextDecorator moveTitleToTop() { text.moveToTop(); moveShapeChildrenToFront(); return this; } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, ...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public String getTitleFontFamily() { return text.getFontFamily(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final WiresShapeViewExt shape); void setTextClickHandler(...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public double getTitleFontSize() { return text.getFontSize(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final WiresShapeViewExt shape); void setTextClickHandler(fina...
### Question: DecisionNavigatorItemFactory { Consumer<DecisionNavigatorItem> getOnUpdate(final DMNDiagramElement dmnDiagramElement) { return (item) -> { dmnDiagramElement.getName().setValue(item.getLabel()); selectedEvent.fire(new DMNDiagramSelected(dmnDiagramElement)); }; } @Inject DecisionNavigatorItemFactory(final ...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public String getTitlePosition() { return getLabelLayout() .getDirectionLayout() .getReferencePosition() .toString(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public String getOrientation() { return getLabelLayout() .getDirectionLayout() .getOrientation().name(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final WiresShapeVi...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public double getMarginX() { return getLabelLayout().getSizeConstraints().getMarginX(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final WiresShapeViewExt shape); voi...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public String getFontPosition() { return getLabelLayout() .getDirectionLayout() .getReferencePosition() .name(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final Wire...
### Question: WiresTextDecorator implements HasTitle<WiresTextDecorator> { @Override public String getFontAlignment() { return getLabelLayout() .getDirectionLayout() .getVerticalAlignment() .name(); } WiresTextDecorator(final Supplier<ViewEventHandlerManager> eventHandlerManager, final Wir...
### Question: WiresShapeView extends WiresShape implements LienzoShapeView<T>, HasDragBounds<T> { @Override public T setDragBounds(final Bounds bounds) { ifLocationBoundsConstraintsSupported(() -> LienzoShapeUtils.translateBounds(bounds)); return cast(); } WiresShapeView(final MultiPath path); Wires...
### Question: WiresShapeView extends WiresShape implements LienzoShapeView<T>, HasDragBounds<T> { public T setListening(final boolean listening) { getPath().setFillBoundsForSelection(listening); listen(listening); return cast(); } WiresShapeView(final MultiPath path); WiresShapeView(final MultiPath ...
### Question: WiresShapeView extends WiresShape implements LienzoShapeView<T>, HasDragBounds<T> { @Override public List<Shape<?>> getDecorators() { return Collections.singletonList(getShape()); } WiresShapeView(final MultiPath path); WiresShapeView(final MultiPath path, fin...
### Question: WiresShapeView extends WiresShape implements LienzoShapeView<T>, HasDragBounds<T> { @Override public void destroy() { super.destroy(); unsetDragBounds(); } WiresShapeView(final MultiPath path); WiresShapeView(final MultiPath path, final LayoutContainer layoutC...
### Question: DecisionNavigatorItemFactory { Consumer<DecisionNavigatorItem> getOnRemove(final DMNDiagramElement dmnDiagramElement) { return (item) -> { removeFromModel(dmnDiagramElement); removeFromSession(dmnDiagramElement); selectedEvent.fire(new DMNDiagramSelected(dmnDiagramsSession.getDRGDiagramElement())); }; } @...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override @SuppressWarnings("unchecked") public T showControlPoints(final ControlPointType type) { if (null != getControl()) { if (ControlPointType.POINTS.equals...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override @SuppressWarnings("unchecked") public T hideControlPoints() { if (null != getControl()) { getControl().hideControlPoints(); } return cast(); } WiresCon...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override public T addControlPoint(final ControlPoint controlPoint, final int index) { addControlPoint(controlPoint.getLocation().getX(), controlPoint.getLocatio...
### Question: DecisionNavigatorItemFactory { public DecisionNavigatorItem makeItem(final Node<View, Edge> node) { final String nodeClassName = Optional.ofNullable(DefinitionUtils.getElementDefinition(node)) .map(elementDefinition -> elementDefinition.getClass().getSimpleName()) .orElse(Node.class.getSimpleName()); retu...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override public T deleteControlPoint(final int index) { destroyControlPoints(new int[]{index + 1}); return cast(); } WiresConnectorView(final AbstractDirectiona...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override public T updateControlPoints(final ControlPoint[] controlPoints) { for (int i = 0; i < controlPoints.length; i++) { final Point2D location = controlPoi...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override public T setShadow(final String color, final int blur, final double offx, final double offy) { getDirectionalLine().setShadow(new Shadow(color, blur, o...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { @Override public T removeShadow() { getDirectionalLine().setShadow(null); return cast(); } WiresConnectorView(final AbstractDirectionalMultiPointShape<?> line, ...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { public T setDashArray(DashArray dashArray) { if (dashArray != null) { getDirectionalLine().setDashArray(dashArray.getDash(), dashArray.getDashes()); } return cas...
### Question: WiresConnectorView extends WiresConnector implements LienzoShapeView<T>, IsConnector<T>, HasManageableControlPoints<T> { public T setListening(final boolean listening) { listen(listening); return cast(); } WiresConnectorView(final AbstractDirectionalMultiPointShape<?> line, ...
### Question: ViewEventHandlerManager { public void enable() { listen(true); this.enabled = true; } ViewEventHandlerManager(final Node<?> node, final ViewEventType... supportedTypes); ViewEventHandlerManager(final Node<?> node, final Shape<?> shape,...
### Question: ViewEventHandlerManager { public void disable() { listen(false); this.enabled = false; } ViewEventHandlerManager(final Node<?> node, final ViewEventType... supportedTypes); ViewEventHandlerManager(final Node<?> node, final Shape<?> sha...
### Question: ViewEventHandlerManager { public boolean supports(final ViewEventType type) { if (null != supportedTypes) { for (final ViewEventType type1 : supportedTypes) { if (type.equals(type1)) { return true; } } } return false; } ViewEventHandlerManager(final Node<?> node, final V...
### Question: ShapeStateDefaultHandler implements ShapeStateHandler { @Override public ShapeState reset() { getShadowShape().ifPresent(this::removeShadow); return handler.reset(); } ShapeStateDefaultHandler(); ShapeStateDefaultHandler(final ShapeStateAttributeAnimationHandler<LienzoShapeView<?>> handler); ShapeStateD...
### Question: ShapeStateDefaultHandler implements ShapeStateHandler { public ShapeStateDefaultHandler setBorderShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { handler.getAttributesHandler().setView(shapeSupplier); borderShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, Shap...
### Question: ShapeStateDefaultHandler implements ShapeStateHandler { public ShapeStateDefaultHandler setBackgroundShape(final Supplier<LienzoShapeView<?>> shapeSupplier) { backgroundShapeSupplier = shapeSupplier; shapeViewDataEncoder.applyShapeViewType(shapeSupplier, ShapeType.BACKGROUND); return this; } ShapeStateDef...
### Question: ShapeStateAttributeAnimationHandler implements ShapeStateHandler { @Override public ShapeState reset() { if (null != animationHandle) { animationHandle.stop(); setAnimationHandle(null); } return handler.reset(); } ShapeStateAttributeAnimationHandler(); ShapeStateAttributeHandler<V> getAttributesHandler();...