Package org.openbp.cockpit.modeler.figures.generic

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


      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();
      }

      int newX = origX * (100 + x - anchorX) / 100;
      int newY = origY * (100 + y - anchorY) / 100;
      newX = Math.min(newX, maxX);
View Full Code Here


   * By default, this is an {@link XRoundRectangleFigure}
   * @return The presentation figure
   */
  protected XFigure createPresentationFigure()
  {
    XFigureDescriptor desc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_TAG);
    return desc.createFigure();
  }
View Full Code Here

      rollbackColor = linkDesc.getColor3();
      defaultColor = linkDesc.getColor4();
    }

    // TODO Refactor 6 This should not be created for each figure, should do to create it once and synchronize access to it.
    XFigureDescriptor figureDesc;

    figureDesc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_BEGIN);
    if (figureDesc != null)
    {
      beginFigure = figureDesc.createFigure();
    }

    figureDesc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_COMMIT);
    if (figureDesc != null)
    {
      commitFigure = figureDesc.createFigure();
    }

    figureDesc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_COMMIT_BEGIN);
    if (figureDesc != null)
    {
      commitBeginFigure = figureDesc.createFigure();
    }

    figureDesc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_ROLLBACK);
    if (figureDesc != null)
    {
      rollbackFigure = figureDesc.createFigure();
    }

    figureDesc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_ROLLBACK_BEGIN);
    if (figureDesc != null)
    {
      rollbackBeginFigure = figureDesc.createFigure();
    }
  }
View Full Code Here

   * By default, this is an {@link XRoundRectangleFigure}
   * @return The presentation figure
   */
  protected XFigure createPresentationFigure()
  {
    XFigureDescriptor desc = getDrawing().getProcessSkin().getSymbolDescriptor(FigureTypes.SYMBOLTYPE_PARAM);
    if (desc != null)
    {
      return desc.createFigure();
    }

    // Revert to the regular tag figure
    return super.createPresentationFigure();
  }
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.modeler.figures.generic.XFigureDescriptor

Copyright © 2018 www.massapicom. 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.