Package info.textgrid.lab.noteeditor.mei2013

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


        } catch (java.util.ConcurrentModificationException e) {
        }
      }
    } else {
      boolean verseAlreadyContained = false;
      Syl newSyl = new Syl();
      newSyl.getContent().add(0, newString);
      Verse verse = new Verse();
      for (Object contentElement : getNote()
          .getDamagesAndSylsAndCorrs()) {
        if (contentElement instanceof Verse) {
          verse = ((Verse) contentElement);
View Full Code Here


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

      processSlur(graphics, (SlurForm) slurForm);
    }
  }

  private void processTie(Graphics graphics, TieForm tieForm) {
    Tie tieNode = (Tie) tieForm.getMeiNode();
    String startId = tieNode.getStartid();
    String endId = tieNode.getEndid();
    if (startId != null
        && endId != null
        && this.figurePassingObject.getNoteHeadLocationMap()
            .containsKey(startId)
        && this.figurePassingObject.getNoteHeadLocationMap()
View Full Code Here

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

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

  private void createDefaultTie() {
    Tie tie = new Tie();
    setMeiNode(tie);
  }
View Full Code Here

  public static Mei createDefaultMeiTree(int stavesCount, int measureCount) {
    Mei mei = new Mei();
    MeiHead meiHead = new MeiHead();
    FileDesc fileDesc = new FileDesc();
    TitleStmt titleStmt = new TitleStmt();
    Title title = new Title();
    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();
View Full Code Here

   */
  public static Mei createDefaultMeiTree(int stavesCount, int measureCount) {
    Mei mei = new Mei();
    MeiHead meiHead = new MeiHead();
    FileDesc fileDesc = new FileDesc();
    TitleStmt titleStmt = new TitleStmt();
    Title title = new Title();
    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();
View Full Code Here

      }
    } else {
      boolean verseAlreadyContained = false;
      Syl newSyl = new Syl();
      newSyl.getContent().add(0, newString);
      Verse verse = new Verse();
      for (Object contentElement : getNote()
          .getDamagesAndSylsAndCorrs()) {
        if (contentElement instanceof Verse) {
          verse = ((Verse) contentElement);
          verseAlreadyContained = true;
          break;
        }
      }
      if (!verseAlreadyContained) {
        getNote().getDamagesAndSylsAndCorrs().add(verse);
      }
      verse.getSyls().clear();
      verse.getSyls().add(newSyl);
    }
  }
View Full Code Here

TOP

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

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.