Search in sources :

Example 1 with AlignAndDistributeControlImpl

use of com.ait.lienzo.client.core.shape.wires.handlers.impl.AlignAndDistributeControlImpl in project lienzo-core by ahome-it.

the class AlignAndDistribute method addShape.

public AlignAndDistributeControl addShape(final IDrawable<?> group) {
    final String uuid = group.uuid();
    AlignAndDistributeControl handler = m_shapes.get(uuid);
    // only add if the group has not already been added
    if (null == handler) {
        handler = new AlignAndDistributeControlImpl((IPrimitive<?>) group, this, m_alignmentCallback, group.getBoundingBoxAttributes());
        m_shapes.put(uuid, handler);
    }
    return handler;
}
Also used : IPrimitive(com.ait.lienzo.client.core.shape.IPrimitive) AlignAndDistributeControl(com.ait.lienzo.client.core.shape.wires.handlers.AlignAndDistributeControl) AlignAndDistributeControlImpl(com.ait.lienzo.client.core.shape.wires.handlers.impl.AlignAndDistributeControlImpl)

Aggregations

IPrimitive (com.ait.lienzo.client.core.shape.IPrimitive)1 AlignAndDistributeControl (com.ait.lienzo.client.core.shape.wires.handlers.AlignAndDistributeControl)1 AlignAndDistributeControlImpl (com.ait.lienzo.client.core.shape.wires.handlers.impl.AlignAndDistributeControlImpl)1