Package org.openbp.cockpit.modeler.skins

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


   * @param o Object to display
   * @return The symbol descriptor
   */
  public static SymbolDescriptor getSymbolDescriptorForModelObject(Skin skin, ModelObject o)
  {
    SymbolDescriptor desc = null;

    String nodeType = o.getModelObjectSymbolName();
    if (nodeType != null)
    {
      desc = skin.getSymbolDescriptor(nodeType);
View Full Code Here


      // Use default skin
      skin = SkinMgr.getInstance().getDefaultSkin();
    }

    // Get the node descriptor for this type of item node
    SymbolDescriptor desc = getSymbolDescriptorForModelObject(skin, item);

    // Adjust default width and height
    int width = desc.getSizeX();
    int height = desc.getSizeY();
    if (additionalSockets > 0)
    {
      factor += additionalSockets / 2;
    }
    width = (int) (width * factor);
 
View Full Code Here

  /**
   * Initializes the presentation figure and its shadow.
   */
  protected void initPresentationFigure()
  {
    SymbolDescriptor desc = FigureUtil.getSymbolDescriptorForModelObject(getDrawing().getProcessSkin(), node);
    presentationFigure = desc.createFigure();

    presentationFigure.setParent(this);
    initShadow();

    String textPosition = ((SymbolDescriptor) presentationFigure.getDescriptor()).getTextPosition();
View Full Code Here

TOP

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

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.