Examples of displayBox()


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

        // So we use the compact display box, which should be constant, if possible.
        centerBox = ((Expandable) centerFigure).compactDisplayBox();
      }
      else
      {
        centerBox = centerFigure.displayBox();
      }
    }
    return centerBox;
  }
View Full Code Here

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

    Rectangle db = presentationFigure.displayBox();

    for (FigureEnumeration fe = figures(); fe.hasMoreElements();)
    {
      Figure f = fe.nextFigure();
      Rectangle kind = f.displayBox();
      db = db.union(kind);
    }

    return db;
  }
View Full Code Here

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

      {
        r = ((LayoutableTag) subFigure).getLayouter().calculateSize();
      }
      else
      {
        r = subFigure.displayBox();
      }

      width = Math.max(r.width, width);

      // Add sub figure height and vertical insets
View Full Code Here

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

      {
        r = ((LayoutableTag) subFigure).getLayouter().calculateSize();
      }
      else
      {
        r = subFigure.displayBox();
      }

      // Set the sub figure position and size
      int x = xBaseLine + CommonUtil.rnd(xFactor * r.width);
      r.setLocation(x, yPos);
View Full Code Here

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

      }

      // Set the sub figure position and size
      int x = xBaseLine + CommonUtil.rnd(xFactor * r.width);
      r.setLocation(x, yPos);
      subFigure.displayBox(r);

      // Add sub figure height and vertical insets
      yPos += insets.top + insets.bottom + r.height;
    }
  }
View Full Code Here

Examples of org.jhotdraw.framework.Figure.displayBox()

  public Figure implyReservoir(int x, int y, Drawing drawing) {
    Figure target = findConnectableFigure(x, y, drawing);
    if (target == null) {
      target = new ReservoirFigure();
      target.displayBox(new Point(x - 15, y - 15),
          new Point(x + 15, y + 15));
      view().add(target);
    }
    if (target.canConnect()
        && ((target instanceof ReservoirFigure)
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.XFigure.displayBox()

        XFigure figure = overlayFigures [i];

        if (figure.getClass().isAssignableFrom(presentationClass))
        {
          // Yes, we do. Adjust the overlay figure position and orientation accordingly and return it
          figure.displayBox(presentationFigure.displayBox());
          if (presentationFigure instanceof XFigure)
          {
            figure.setOrientation(((XFigure) presentationFigure).getOrientation());
          }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.XFigure.displayBox()

        transactionFigure = rollbackBeginFigure;
        break;
    }
    if (transactionFigure != null)
    {
      Rectangle taDb = transactionFigure.displayBox();
      ret.add(taDb.width, taDb.height);
    }

    return ret.union(label.displayBox());
  }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.process.HLineFigure.displayBox()

      {
        editor.startUndo("Add Horizontal Swimlane Line");

        HLineFigure hLineFigure = new HLineFigure(this);

        Rectangle db = hLineFigure.displayBox();
        db.x = p.x;
        db.y = p.y;
        hLineFigure.displayBox(db);

        add(hLineFigure);
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.process.HLineFigure.displayBox()

        HLineFigure hLineFigure = new HLineFigure(this);

        Rectangle db = hLineFigure.displayBox();
        db.x = p.x;
        db.y = p.y;
        hLineFigure.displayBox(db);

        add(hLineFigure);

        addedFigure = hLineFigure;
      }
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.