Examples of XFigure


Examples of org.openbp.cockpit.modeler.figures.generic.XFigure

      // Figures that do not have a fill (non-solid figures) color may not have a shadow
      // or else the shadow would be visible within the figure.
      return null;
    }

    XFigure shadow = (XFigure) presentationFigure.clone();

    shadow.setParent(null);
    shadow.setFillColor(ModelerColors.SHADOW_FILL);
    shadow.setFillColor2(ModelerColors.SHADOW_FILL);
    shadow.setFrameColor(ModelerColors.SHADOW_BORDER);
    shadow.invalidate();

    return shadow;
  }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.XFigure

    {
      // Check if we support this type of figure
      Class presentationClass = presentationFigure.getClass();
      for (int i = 0; i < overlayFigures.length; ++i)
      {
        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());
          }

          if (presentationFigure instanceof XRoundRectangleFigure)
          {
            XRoundRectangleFigure sourceRR = (XRoundRectangleFigure) presentationFigure;
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.XFigure

      NodeFigure nf = null;
      if (getAffectedObject() instanceof NodeFigure)
      {
        nf = (NodeFigure) getAffectedObject();
        XFigure presentationFigure = (XFigure) nf.getPresentationFigure();
        XFigureDescriptor fd = presentationFigure.getDescriptor();
        minX = fd.getMinSizeX();
        minY = fd.getMinSizeY();
        maxX = fd.getMaxSizeX();
        maxY = fd.getMaxSizeY();
      }
View Full Code Here

Examples of org.openbp.cockpit.modeler.figures.generic.XFigure

  public Rectangle displayBox()
  {
    Rectangle ret = super.displayBox();

    XFigure transactionFigure = null;
    switch (controlLink.getTransactionControl())
    {
      case ControlLink.TA_BEGIN:
        transactionFigure = beginFigure;
        break;

      case ControlLink.TA_COMMIT:
        transactionFigure = commitFigure;
        break;

      case ControlLink.TA_COMMIT_BEGIN:
        transactionFigure = commitBeginFigure;
        break;

      case ControlLink.TA_ROLLBACK:
        transactionFigure = rollbackFigure;
        break;

      case ControlLink.TA_ROLLBACK_BEGIN:
        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.generic.XFigure

    g2.setStroke(getStroke());

    Color oldColor = g2.getColor();

    Color c = null;
    XFigure transactionFigure = null;
    switch (controlLink.getTransactionControl())
    {
      case ControlLink.TA_BEGIN:
        transactionFigure = beginFigure;
        break;

      case ControlLink.TA_COMMIT:
        c = commitColor;
        transactionFigure = commitFigure;
        break;

      case ControlLink.TA_COMMIT_BEGIN:
        c = commitColor;
        transactionFigure = commitBeginFigure;
        break;

      case ControlLink.TA_ROLLBACK:
        c = rollbackColor;
        transactionFigure = rollbackFigure;
        break;

      case ControlLink.TA_ROLLBACK_BEGIN:
        c = rollbackColor;
        transactionFigure = rollbackBeginFigure;
        break;
    }
    if (c == null)
    {
      c = defaultColor;
    }
    g2.setColor(c);

    drawSpline(g2);

    if (transactionFigure != null)
    {
      setTransactionFigurePosition(transactionFigure);
      g2.setColor(c);
      transactionFigure.draw(g2);
    }

    if (drawDecorations)
    {
      g2.setColor(c);
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.