Search in sources :

Example 1 with NFastDoubleArray

use of com.ait.tooling.nativetools.client.collection.NFastDoubleArray in project lienzo-core by ahome-it.

the class WiresConnectorControlImpl method onMoveStart.

@Override
public void onMoveStart(final double x, final double y) {
    final IControlHandleList handles = m_connector.getPointHandles();
    m_startPoints = new NFastDoubleArray();
    for (int i = 0; i < handles.size(); i++) {
        final IControlHandle h = handles.getHandle(i);
        final IPrimitive<?> prim = h.getControl();
        m_startPoints.push(prim.getX());
        m_startPoints.push(prim.getY());
    }
}
Also used : NFastDoubleArray(com.ait.tooling.nativetools.client.collection.NFastDoubleArray) IControlHandle(com.ait.lienzo.client.core.shape.wires.IControlHandle) IControlHandleList(com.ait.lienzo.client.core.shape.wires.IControlHandleList)

Aggregations

IControlHandle (com.ait.lienzo.client.core.shape.wires.IControlHandle)1 IControlHandleList (com.ait.lienzo.client.core.shape.wires.IControlHandleList)1 NFastDoubleArray (com.ait.tooling.nativetools.client.collection.NFastDoubleArray)1