Examples of Fermata


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

  public static void renderFermata(Graphics graphics,
      FermataForm fermataForm, Point location) {
    graphics.setFont(GraphicalConstants.FONT_SYMBOL_BIG);
    graphics.setLineStyle(SWT.LINE_SOLID);
    graphics.setForegroundColor(calculateVariantColor(fermataForm));
    Fermata fermata = (Fermata) fermataForm.getMeiNode();
    int yShift = GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 2 - 16;
    String fermataText = "\uE210";
    if (!fermata.isSetPlace()) {
      yShift -= GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
    } else {
      switch (fermata.getPlace()) {
      case ABOVE:
        yShift -= GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
        break;
      case BELOW:
        yShift += GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
View Full Code Here

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

      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

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

    cpd.setCategory(this.toString());
    descriptors.add(cpd);
  }

  private void createDefaultFermata() {
    Fermata fermata = new Fermata();
    setMeiNode(fermata);
  }
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.