Search in sources :

Example 1 with WiresResizeStepEvent

use of com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent in project lienzo-core by ahome-it.

the class WiresShapeControlHandleList method resizeMove.

protected void resizeMove(final AbstractNodeDragEvent<?> dragEvent) {
    if (m_wires_shape.isResizable()) {
        final double[] r = resizeWhileDrag(dragEvent);
        m_wires_shape.getHandlerManager().fireEvent(new WiresResizeStepEvent(m_wires_shape, dragEvent, (int) r[0], (int) r[1], r[2], r[3]));
    }
}
Also used : WiresResizeStepEvent(com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent)

Example 2 with WiresResizeStepEvent

use of com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent in project kie-wb-common by kiegroup.

the class DecisionServiceSVGShapeViewTest method testResize.

@Test
public void testResize() {
    view.getHandlerManager().fireEvent(new WiresResizeStepEvent(view, nodeDragMoveEvent, 0, 0, WIDTH, HEIGHT));
    assertThat(getMoveDividerControlHandle().getControl().getX()).isEqualTo(WIDTH / 2);
}
Also used : WiresResizeStepEvent(com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent) Test(org.junit.Test)

Aggregations

WiresResizeStepEvent (com.ait.lienzo.client.core.shape.wires.event.WiresResizeStepEvent)2 Test (org.junit.Test)1