Examples of canConnect()


Examples of CH.ifa.draw.framework.Figure.canConnect()

   * @return The figure or null
   */
  protected Figure findConnectionStart(int x, int y, Drawing drawing)
  {
    Figure target = findConnectableFigure(x, y, drawing);
    if ((target != null) && target.canConnect())
    {
      return target;
    }
    return null;
  }
View Full Code Here

Examples of CH.ifa.draw.framework.Figure.canConnect()

    for (FigureEnumeration k = drawing.figures(); k.hasMoreElements();)
    {
      Figure figure = k.nextFigure();
      figure = figure.findFigureInside(x, y);

      if (figure != null && !figure.includes(connectionFigure) && figure.canConnect())
      {
        return figure;
      }
    }
    return null;
View Full Code Here

Examples of CH.ifa.draw.framework.Figure.canConnect()

   */
  private Connector findConnectionTarget(int x, int y, Drawing drawing)
  {
    Figure target = findConnectableFigure(x, y, drawing);

    if (target != null && connectionFigure != null && target.canConnect() && !target.includes(source().owner()) && canLinkFigures(source().owner(), target))
    {
      return target.connectorAt(x, y);
    }
    return null;
  }
View Full Code Here

Examples of CH.ifa.draw.framework.Figure.canConnect()

    for (FigureEnumeration k = drawing.figures(); k.hasMoreElements();)
    {
      Figure figure = k.nextFigure();
      figure = figure.findFigureInside(x, y);

      if (figure != null && !figure.includes(connectionFigure) && figure.canConnect())
      {
        return figure;
      }
    }
    return null;
View Full Code Here

Examples of com.caucho.network.balance.ClientSocketFactory.canConnect()

  public boolean ping()
  {
    ClientSocketFactory pool = _server.getClusterSocketPool();

    if (pool != null)
      return pool.canConnect();
    else
      return true;
  }

  /**
 
View Full Code Here

Examples of com.caucho.network.balance.ClientSocketFactory.canConnect()

  public boolean ping()
  {
    ClientSocketFactory pool = _server.getServerPool();

    if (pool != null)
      return pool.canConnect();
    else
      return true;
  }

  /**
 
View Full Code Here

Examples of logisticspipes.routing.pathfinder.IPipeInformationProvider.canConnect()

    if(fromInfo == null && toInfo == null) return false;
    if(fromInfo != null) {
      if(!fromInfo.canConnect(to, way, ignoreSystemDisconnection)) return false;
    }
    if(toInfo != null) {
      if(!toInfo.canConnect(from, way.getOpposite(), ignoreSystemDisconnection)) return false;
    }
    return true;
  }

  public static boolean isPipeControllerEquipped(EntityPlayer entityplayer) {
View Full Code Here

Examples of org.apache.sshd.common.ForwardingFilter.canConnect()

        switch (type) {
            case Direct:    address = new SshdSocketAddress(hostToConnect, portToConnect); break;
            case Forwarded: address = service.getTcpipForwarder().getForwardedPort(portToConnect); break;
        }
        final ForwardingFilter filter = getSession().getFactoryManager().getTcpipForwardingFilter();
        if (address == null || filter == null || !filter.canConnect(address, getSession())) {
            super.close(true);
            f.setException(new OpenChannelException(SshConstants.SSH_OPEN_ADMINISTRATIVELY_PROHIBITED, "Connection denied"));
            return f;
        }
View Full Code Here

Examples of org.apache.sshd.common.ForwardingFilter.canConnect()

        switch (type) {
            case Direct:    address = new SshdSocketAddress(hostToConnect, portToConnect); break;
            case Forwarded: address = service.getTcpipForwarder().getForwardedPort(portToConnect); break;
        }
        final ForwardingFilter filter = getSession().getFactoryManager().getTcpipForwardingFilter();
        if (address == null || filter == null || !filter.canConnect(address, getSession())) {
            super.close(true);
            f.setException(new OpenChannelException(SshConstants.SSH_OPEN_ADMINISTRATIVELY_PROHIBITED, "Connection denied"));
            return f;
        }
View Full Code Here

Examples of org.apache.sshd.common.ForwardingFilter.canConnect()

        switch (type) {
            case Direct:    address = new SshdSocketAddress(hostToConnect, portToConnect); break;
            case Forwarded: address = getSession().getTcpipForwarder().getForwardedPort(portToConnect); break;
        }
        final ForwardingFilter filter = getSession().getFactoryManager().getTcpipForwardingFilter();
        if (address == null || filter == null || !filter.canConnect(address, getSession())) {
            super.close(true);
            f.setException(new OpenChannelException(SshConstants.SSH_OPEN_ADMINISTRATIVELY_PROHIBITED, "Connection denied"));
            return f;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.