Examples of BasicElement


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

@Override
protected Command getCreateCommand(CreateRequest request) {
  CreateCommand create = new CreateCommand();
  create.setParent((MusicContainerForm)getHost().getModel());
  BasicElement newPart = (BasicElement)request.getNewObject();
  create.setChild(newPart);
  Rectangle constraint = (Rectangle)getConstraintFor(request);
  create.setLocation(constraint);
  create.setLabel(MusicMessages.MusicXYLayoutEditPolicy_CreateCommandLabelText);
  return create;
View Full Code Here

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

  @Override
  protected void fireSelectionChanged() {
    // 2 selected, 0 deselected
    super.fireSelectionChanged();
    BasicElement selectedForm = ((BasicElement) getModel());
    selectedForm.setPropertyValue(BasicElement.BASIC_SELECTED, new Boolean(
        getSelected() == 2));
    if(!(selectedForm instanceof MusicDiagram))
      MusicPlugin.getDefault().getActiveDiagram().setSelectedForm(selectedForm);
    else
      System.out.println("diag selected");
View Full Code Here

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

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

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

            .findAncestorForm(ScoreDefForm.class, parentForm))
            .getMeiNode()).isSetClefShape()) {
      staffDef.setClefShape(GraphicalConstants.DEFAULT_SYSTEM_CLEF);
    }
    for (MeiNode child : staffDef.getMensursAndProportsAndClefGrps()) {
      BasicElement handleLayerContent = handleMeiElement(child,
          staffDefForm);
      if (handleLayerContent != null)
        staffDefForm.addChild(handleLayerContent);
    }
    return staffDefForm;
View Full Code Here

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

  private static BasicElement handleLayer(Layer layer, BasicElement parentForm) {
    LayerForm layerForm = new LayerForm();
    layerForm.setParent(parentForm);
    layerForm.setMeiNode(layer);
    for (MeiNode child : layer.getBarLinesAndSyllablesAndGaps()) {
      BasicElement handleLayerContent = handleMeiElement(child, layerForm);
      if (handleLayerContent != null)
        layerForm.addChild(handleLayerContent);
    }
    return layerForm;
  }
View Full Code Here

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

      BasicElement parentForm) {
    MeasureForm measureForm = new MeasureForm();
    measureForm.setMeiNode(measure);
    measureForm.setParent(parentForm);
    for (MeiNode child : measure.getAnnotsAndSlursAndTupletSpen()) {
      BasicElement handleMeasureContent = handleMeiElement(child,
          measureForm);
      if (handleMeasureContent != null)
        measureForm.addChild(handleMeasureContent);
    }
    return measureForm;
View Full Code Here

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

      BasicElement parentForm) {
    AppForm appForm = new AppForm();
    appForm.setMeiNode(app);
    appForm.setParent(parentForm);
    for (MeiNode child : app.getRdgs()) {
      BasicElement handleMeasureApp = handleMeiElement(child, appForm);
      if (handleMeasureApp != null)
        appForm.addChild(handleMeasureApp);
    }
    return appForm;
  }
View Full Code Here

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

      BasicElement parentForm) {
    StaffForm staffForm = new StaffForm();
    staffForm.setParent(parentForm);
    staffForm.setMeiNode(staff);
    for (MeiNode child : staff.getSbsAndSymbolsAndOrigs()) {
      BasicElement handleMeasureContent = handleMeiElement(child,
          staffForm);
      if (handleMeasureContent != null)
        staffForm.addChild(handleMeasureContent);
    }
    return staffForm;
View Full Code Here

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

  private static BasicElement handleChord(Chord chord, BasicElement parentForm) {
    ChordGroupForm chordGroupForm = new ChordGroupForm();
    chordGroupForm.setMeiNode(chord);
    for (MeiNode child : chord.getRestoresAndArticsAndUnclears()) {
      BasicElement handleChordContent = handleMeiElement(child,
          chordGroupForm);
      if (handleChordContent != null)
        chordGroupForm.addChild(handleChordContent);
    }
    return chordGroupForm;
View Full Code Here

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

  private static BasicElement handleBeam(Beam beam, BasicElement parentForm) {
    BeamGroupForm beamGroupForm = new BeamGroupForm();
    beamGroupForm.setMeiNode(beam);
    for (MeiNode child : beam.getFTremsAndChordsAndDamages()) {
      BasicElement handleBeamContent = handleMeiElement(child,
          beamGroupForm);
      if (handleBeamContent != null)
        beamGroupForm.addChild(handleBeamContent);
    }
    return beamGroupForm;
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.