Package org.openbp.cockpit.modeler.skins

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


   *
   * @param g the graphics object where the shadow has to paint
   */
  public void drawShadow(final Graphics g)
  {
    Skin skin = ((ProcessDrawing) drawing()).getProcessSkin();

    if (shadowLayouter != null && ! skin.isDisableShadows())
    {
      shadowLayouter.drawShadows(ShadowEnumerator.enumerate((CompositeFigure) drawing()), g);
    }
  }
View Full Code Here


   * @param process Process
   * @return the skin
   */
  public static Skin determineProcessSkin(ProcessItem process)
  {
    Skin skin = null;

    String skinName = process.getSkinName();
    if (skinName != null)
    {
      // Skin specified
View Full Code Here

    if (! process.getNodes().hasNext())
    {
      // Initialize empty processes
      // Determine which skin the process should use and initialize some process properties from the skin settings
      Skin processSkin = FigureUtil.determineProcessSkin(process);
      processSkin.initalizeNewProcess(process);

      // Re-setup the standard configuration of the process now that we have obtained the process type
      ItemCreationUtil.setupStandardConfiguration(process);

      // Update the geometry (i. e. the size) or the item node according to the default skin
View Full Code Here

  protected void initContent(Object modelObject)
  {
    // Add the spacer figure
    super.initContent(modelObject);

    Skin skin = getDrawing().getProcessSkin();

    // Connect the model object to this tag
    this.socket = (NodeSocket) modelObject;
    socket.setRepresentation(this);

    // Create title figure holding the name of the Socket.
    // This will return the node name in case of entry or final node sockets.
    titleFigure = new MoveableTitleFigure(getReferredProcessElement());
    titleFigure.setTitleFormat(skin.getSocketTitleFormat());
    titleFigure.setVerboseDisplay(true);
    addContent(titleFigure, CONTENT_TEXT);

    // Add the socket parameters
    initParams();
View Full Code Here

          ProcessItem dummyProcess = new ProcessItemImpl();
          dummyProcess.setName(NODEEDITOR_PROCESS_NAME);
          dummyProcess.setModel(item.getModel());

          // Determine which skin the process should use and initialize some process properties from the skin settings
          Skin processSkin = FigureUtil.determineProcessSkin(dummyProcess);
          processSkin.initalizeNewProcess(dummyProcess);

          node = ((NodeProvider) item).toNode(dummyProcess, ItemSynchronization.SYNC_ALL);

          dummyProcess.addNode(node);
View Full Code Here

TOP

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

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.