use of com.ait.lienzo.client.core.shape.wires.IDockingAcceptor in project lienzo-core by ahome-it.
the class WiresDockingControlImpl method isAllow.
@Override
public boolean isAllow() {
final WiresLayer layer = getParentPickerControl().getWiresLayer();
final WiresManager wiresManager = layer.getWiresManager();
final IDockingAcceptor dockingAcceptor = wiresManager.getDockingAcceptor();
return !isEnabled() || ((null != getParent()) && (null != getParentShapePart()) && (getParent() instanceof WiresShape) && (getParentShapePart() == PickerPart.ShapePart.BORDER) && (dockingAcceptor.dockingAllowed(getParent(), getShape())));
}
use of com.ait.lienzo.client.core.shape.wires.IDockingAcceptor in project lienzo-core by ahome-it.
the class WiresDockingControlImpl method _isAccept.
private boolean _isAccept() {
final WiresLayer layer = getParentPickerControl().getWiresLayer();
final WiresManager wiresManager = layer.getWiresManager();
final IDockingAcceptor dockingAcceptor = wiresManager.getDockingAcceptor();
return (null != getParent()) && (null != getParentShapePart()) && (getParentShapePart() == PickerPart.ShapePart.BORDER) && dockingAcceptor.acceptDocking(getParent(), getShape());
}
Aggregations