Package info.textgrid.lab.noteeditor.mei2013

Examples of info.textgrid.lab.noteeditor.mei2013.Source


   * @param endPoint
   */
  public static void renderSlur(Graphics graphics, SlurForm slurForm,
      Point startPoint, Point endPoint) {
    graphics.setForegroundColor(calculateVariantColor(slurForm));
    Slur slurNode = (Slur) slurForm.getMeiNode();
    boolean isAbove = true;
    if (slurNode.isSetCurvedir()) {
      isAbove = slurNode.getCurvedir().equalsIgnoreCase(
          GraphicalConstants.PROPCOMBO_STRING_ARRAY_CURVEDIR[0]);
    }
    if (startPoint != null
        && endPoint != null
        && (isVisibleArea(MusicPlugin.getDefault().getActiveEditor()
View Full Code Here


    getSlur().unsetLayers();
    getSlur().getLayers().add(new BigInteger(StringConstants.STRING_EMPTY + newLayer));
  }

  private void createDefaultSlur() {
    Slur slur = new Slur();
    setMeiNode(slur);
  }
View Full Code Here

          noteTieEndpoint);
    }
  }

  private void processSlur(Graphics graphics, SlurForm slurForm) {
    Slur slurNode = (Slur) slurForm.getMeiNode();
    String startId = slurNode.getStartid();
    String endId = slurNode.getEndid();
   
//    System.out.println(startId + "  " + endId);
   
    if (startId != null
        && endId != null
View Full Code Here

      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;
View Full Code Here

    container.setLayoutData(new GridData(GridData.FILL_BOTH));
    Button btnCreateSource = new Button(container, SWT.NONE);
    btnCreateSource.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        Source newSource = new Source();
        newSource.setId("Source_" + (table.getItemCount() + 1)); //$NON-NLS-1$
        SourceBindingWrapper sourceBindingWrapper = new SourceBindingWrapper(newSource);
        writableList.add(sourceBindingWrapper);
        tableViewer.setSelection(new StructuredSelection(sourceBindingWrapper));
      }
    });
View Full Code Here

    titleStmt.getTitles().add(title);
    fileDesc.setTitleStmt(titleStmt);
    PubStmt pubStmt = new PubStmt();
    fileDesc.setPubStmt(pubStmt);
    SourceDesc sourceDesc = new SourceDesc();
    Source source = new Source();
    sourceDesc.getSources().add(source);
    fileDesc.setSourceDesc(sourceDesc);   
    meiHead.setFileDesc(fileDesc)
    mei.setMeiHead(meiHead);
    Music music = new Music();
View Full Code Here

    title.getContent().add("New MEI-2013 document");
    titleStmt.getTitles().add(title);
    fileDesc.setTitleStmt(titleStmt);
    PubStmt pubStmt = new PubStmt();
    fileDesc.setPubStmt(pubStmt);
    SourceDesc sourceDesc = new SourceDesc();
    Source source = new Source();
    sourceDesc.getSources().add(source);
    fileDesc.setSourceDesc(sourceDesc);   
    meiHead.setFileDesc(fileDesc)
    mei.setMeiHead(meiHead);
    Music music = new Music();
    Body body = new Body();
View Full Code Here

    if (!meiData.isSetMeiHead())
      meiData.setMeiHead(new MeiHead());
    if (!meiData.getMeiHead().isSetFileDesc())
      meiData.getMeiHead().setFileDesc(new FileDesc());
    if (!meiData.getMeiHead().getFileDesc().isSetSourceDesc())
      meiData.getMeiHead().getFileDesc().setSourceDesc(new SourceDesc());
    if (!rootDiagram.getSourceList().isEmpty()) {
      meiData.getMeiHead().getFileDesc().getSourceDesc().getSources()
          .clear();
      meiData.getMeiHead().getFileDesc().getSourceDesc().getSources()
          .addAll(rootDiagram.getRawSourceList());
View Full Code Here

    cpd.setDescription(MusicMessages.MEI_documentation_generic_dur);
    descriptors.add(cpd);
  }

  private void createDefaultSpace() {
    setMeiNode(new Space());
  }
View Full Code Here

      MRestForm contentForm = (MRestForm) childForm;
      MRest contentNode = (MRest) contentForm.getMeiNode();
      return contentNode;
    } 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;
View Full Code Here

TOP

Related Classes of info.textgrid.lab.noteeditor.mei2013.Source

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.