Package CH.ifa.draw.framework

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


    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


   */
  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

    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

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.