Package org.openbp.cockpit.modeler.skins

Examples of org.openbp.cockpit.modeler.skins.LinkDescriptor


  /**
   * Initializes the figure's drawing attributes.
   */
  protected void initializeFigureAttributes()
  {
    LinkDescriptor linkDesc = getDrawing().getProcessSkin().getLinkDescriptor(FigureTypes.LINKTYPE_CONTROL);
    if (linkDesc != null)
    {
      setStroke(linkDesc.getStroke());
      setFrameColor(linkDesc.getColor());
      commitColor = linkDesc.getColor2();
      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;

View Full Code Here


   */
  protected void initializeFigureAttributes()
  {
    setEndDecoration(endDecoration);

    LinkDescriptor desc = getDrawing().getProcessSkin().getLinkDescriptor(FigureTypes.LINKTYPE_DATA);
    if (desc != null)
    {
      setStroke(desc.getStroke());
      setFrameColor(desc.getColor());
      memberPathColor = desc.getColor2();
    }
  }
View Full Code Here

    setVerticalLine(true);

    if (drawing != null)
    {
      // Get the stroke and color from the 'HLine' link descriptor of the skin
      LinkDescriptor desc = drawing.getProcessSkin().getLinkDescriptor(FigureTypes.LINKTYPE_VLINE);
      if (desc != null)
      {
        setStroke(desc.getStroke());
        setColor(desc.getColor());
      }
    }
  }
View Full Code Here

    this.dataLink = link;
    dataLink.setRepresentation(this);

    start = new Point();

    LinkDescriptor desc = getDrawing().getProcessSkin().getLinkDescriptor(FigureTypes.LINKTYPE_DATA);
    if (desc != null)
    {
      stroke = desc.getStroke();
      color = desc.getColor();
      color2 = desc.getColor2();
    }
  }
View Full Code Here

    setVerticalLine(false);

    if (drawing != null)
    {
      // Get the stroke and color from the 'HLine' link descriptor of the skin
      LinkDescriptor desc = drawing.getProcessSkin().getLinkDescriptor(FigureTypes.LINKTYPE_HLINE);
      if (desc != null)
      {
        setStroke(desc.getStroke());
        setColor(desc.getColor());
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.openbp.cockpit.modeler.skins.LinkDescriptor

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.