class WiresLayer extends LienzoLayer {

    public WiresLayer dock(final WiresContainer parent,
                           final WiresShape child) {
        final WiresDockingControl dockingControl = child.getControl().getDockingControl();
        dockingControl.dock(parent);
        final Point2D candidateLocation = dockingControl.getCandidateLocation();
        if (null != candidateLocation) {
            child.setLocation(candidateLocation);
        }
        return this;
    }

}