Examples of Dynam


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

  public static void renderDynam(Graphics graphics, DynamForm dynamForm,
      Point location) {
    graphics.setFont(GraphicalConstants.FONT_SYMBOL_BIG);
    graphics.setLineStyle(SWT.LINE_SOLID);
    graphics.setForegroundColor(calculateVariantColor(dynamForm));
    Dynam dynam = (Dynam) dynamForm.getMeiNode();
    int yShift = +GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 2 - 16;
    switch (dynam.getPlace()) {
    case ABOVE:
      yShift -= GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
      break;
    case BELOW:
      yShift += GraphicalConstants.SHAPE_SINGLESYSTEM_HEIGHT / 3;
      break;
    default:
      break;
    }
    Point dynamSymbolCenterLocation = new Point(location.x + 12, location.y
        + yShift);
    String drawString = StringConstants.STRING_EMPTY;
    for (Object childObject : dynam.getContent()) {
      if (childObject instanceof String) {
        // concatenate all strings within this to a single string
        drawString += (String) childObject;
      }
    }
View Full Code Here

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

      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

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

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

  private void createDefaultDynam() {
    this.dynam = new Dynam();
    getDynam().getContent()
        .add(0, GraphicalConstants.DEFAULT_DYNAM_CONTENT);
    getDynam().setPlace(DataSTAFFREL.BELOW);
  }
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.