Examples of DiagramElement


Examples of fd2.DiagramElement

    }
    Diagram modelElement = (Diagram) view.getElement();
    List result = new LinkedList();
    for (Iterator it = modelElement.getDiagramElements().iterator(); it
        .hasNext();) {
      DiagramElement childElement = (DiagramElement) it.next();
      int visualID = Fd2VisualIDRegistry.getNodeVisualID(view,
          childElement);
      if (visualID == FeatureNodeEditPart.VISUAL_ID) {
        result.add(new Fd2NodeDescriptor(childElement, visualID));
        continue;
View Full Code Here

Examples of org.eclipse.dd.di.DiagramElement

        generator.writeEndObject();
        generator.writeEndArray();
    }
   
    private DiagramElement findDiagramElement(BPMNPlane plane, BaseElement baseElement) {
      DiagramElement result = _diagramElements.get(baseElement.getId());
      if (result != null) {
        return result;
      }
      for (DiagramElement element: plane.getPlaneElement()) {
          if ((element instanceof BPMNEdge && ((BPMNEdge) element).getBpmnElement() == baseElement) ||
View Full Code Here

Examples of org.eclipse.dd.di.DiagramElement

     * <!-- end-user-doc -->
     * @generated
     */
    public NotificationChain basicSetRootElement(DiagramElement newRootElement,
            NotificationChain msgs) {
        DiagramElement oldRootElement = rootElement;
        rootElement = newRootElement;
        if (eNotificationRequired()) {
            ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
                    DiPackage.DIAGRAM__ROOT_ELEMENT, oldRootElement, newRootElement);
            if (msgs == null)
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

  public static NounFormat asGlyph(final String stereotypeOverride) {
    return new NounFormat() {
      public Connected returnElement(Container c, SimpleNoun to,
          InsertionInterface ii) {
        DiagramElement de = ii.returnGlyph(c, to, to.getLabel(),
            stereotypeOverride == null ? to.getStereotype()
                : stereotypeOverride);

        if (to.getDisambiguation() != null) {
          for (NounPart item : to.getDisambiguation()) {
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

 
  public static NounFormat asConnectionBody( ) {
    return new NounFormat() {
      public Connected returnElement(Container c, SimpleNoun to,
          InsertionInterface ii) {
        DiagramElement de = ii.returnConnectionBody(c, to, to.getLabel());

        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

    return new NounFormat() {
      public Connected returnElement(Container c, SimpleNoun to,
          InsertionInterface ii) {
        Label toUse = (l == null) ? (to.getLabel() == null ? null
            : new TextLine(to.getLabel())) : l;
        DiagramElement de = ii.returnContext(c, to, border ? toUse
            : null, border, d);
        if (de instanceof Connected) {
          return (Connected) de;
        } else {
          throw new Kite9ProcessingException(
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

        PropositionBinding or = new PropositionBinding(subject, verb, object);
       

        SimpleNoun to = NounFactory.getRawSimpleNoun(object);
        Container cont = c == null ? getContainerFor(from, verb, ii) : c;
        DiagramElement toEl = toElementFormat.returnElement(cont, to,
            ii);

        if ((from != null) && (verb != null)) {
          DiagramElement fromEl = ii.returnExisting(from);

          if ((fromEl instanceof Container)
              && (contains(toEl, fromEl))) {
            return;
          }

          if (fromEl == null)
            return;

          Relationship activeVerb = verb.getActiveRelationship();
          boolean arrowPreExists = ii.returnExisting(sr) instanceof Arrow;
         
          DiagramElement arrowEl = ii.returnConnectionBody(cont, sr,
              (String) activeVerb.getObjectForAlias());
          String fromLabel = getLabel(subject, from, ii);
          TextLine fromLabelTL = fromLabel.length() == 0 ? null
              : new TextLine(fromLabel);
          String toLabel = getLabel(object, to, ii);
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

  public static PropositionFormat asSymbols(final InsertionInterface ii) {
    return new PropositionFormat() {

      public void write(NounPart context, Relationship key, NounPart value) {
        SimpleNoun from = NounFactory.getRawSimpleNoun(context);
        DiagramElement de = ii.returnExisting(from);

        String fromLabel = getLabel(context, from, ii);
        String toLabel = getLabel(value, null, ii);
        String text = (fromLabel.length() == 0 ? "" : (fromLabel + " "))
            + key.getName() + ": " + toLabel;
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

  public static PropositionFormat asTextLines(final InsertionInterface ii) {
    return new PropositionFormat() {
      public void write(NounPart context, Relationship key, NounPart value) {
        PropositionBinding pb = new PropositionBinding(context, key, value);
        SimpleNoun from = getExistingNounOnDiagram(context, ii);
        DiagramElement de = ii.returnExisting(from);

        String fromLabel = getLabel(context, from, ii);
        String toLabel = getLabel(value, null, ii);
        String text = (fromLabel.length() == 0 ? "" : (fromLabel + " "))
            + (key == null ? "" : key.getName() + ": ") + toLabel;

        DiagramElement out = null;
       
        if (de instanceof Glyph) {
          // add a text line to the glyph
          out = ii.returnTextLine((Glyph) de, pb, text);
        } else if (de instanceof TextLine) {
View Full Code Here

Examples of org.kite9.diagram.primitives.DiagramElement

   */
  public static Container getContainerFor(Object o, Relationship rel, InsertionInterface ii) {
    if (o == null)
      return null;

    DiagramElement within = ii.returnExisting(o);
    if (within == null) {
      // no context to place the element in, so put in the
      // diagram.
      return null;
    }
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.