Package info.textgrid.lab.noteeditor.model

Examples of info.textgrid.lab.noteeditor.model.DynamForm


    return candidate.equals(DynamForm.class);
  }

  @Override
  public void run() {
    this.child = new DynamForm();
    super.run();
  }
View Full Code Here


    } else if (childForm instanceof SpaceForm) {
      SpaceForm contentForm = (SpaceForm) childForm;
      Space contentNode = (Space) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof DynamForm) {
      DynamForm contentForm = (DynamForm) childForm;
      Dynam contentNode = (Dynam) contentForm.getMeiNode();
      for (BasicElement contentChildForm : contentForm.getChildren()) {
        contentNode.getContent().add(
            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof TieForm) {
      TieForm contentForm = (TieForm) childForm;
      Tie contentNode = (Tie) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof SlurForm) {
      SlurForm contentForm = (SlurForm) childForm;
      Slur contentNode = (Slur) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof FermataForm) {
      FermataForm contentForm = (FermataForm) childForm;
      Fermata contentNode = (Fermata) contentForm.getMeiNode();
      return contentNode;
    } else {
      // write back a node of a currently unknown type
      UnknownMeiNodeForm contentForm = (UnknownMeiNodeForm) childForm;
      return contentForm.getMeiNode();
    }
  }
View Full Code Here

    } else
      return handleUnknownMeiNode(child, parentForm);
  }

  private static BasicElement handleDynam(Dynam dynam, BasicElement parentForm) {
    DynamForm dynamForm = new DynamForm();
    dynamForm.setParent(parentForm);
    dynamForm.setMeiNode(dynam);
    for (Object childObject : dynam.getContent()) {
      if (childObject instanceof MeiNode) {
        MeiNode child = (MeiNode) childObject;
        BasicElement handleLayerContent = handleMeiElement(child,
            dynamForm);
        if (handleLayerContent != null)
          dynamForm.addChild(handleLayerContent);
      } else {
        if (!(childObject instanceof String)) {
          LogService.error(MusicMessages.Mei2FormsConverter_1
              + childObject.toString());
        }
View Full Code Here

TOP

Related Classes of info.textgrid.lab.noteeditor.model.DynamForm

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.