Package cz.mp.k3bg.core

Examples of cz.mp.k3bg.core.PersonalNotesGenerator$Note


        generatedFileName = null;
        this.bookFiles = bookFiles;

        if (bookFiles != null) {
            pnGen = new PersonalNotesGenerator(bookFiles);
           
            setVisible(true);
        }

        return generatedFileName;
View Full Code Here


  /**
   * Create a note with default values
   */
  private void createDefaultNote() {
    Note note = new Note();
    note.setPname(GraphicalConstants.DEFAULT_NOTE_PITCHNAME);
    note.setDur(GraphicalConstants.DEFAULT_NOTE_DURATION);
    note.setOct(GraphicalConstants.DEFAULT_NOTE_OCTAVE);
    setMeiNode(note);
  }
View Full Code Here

        } catch (Exception e) {
          LogService.error(e.getMessage(), e);
        }
      }
      if(meiNode instanceof Note) {
        Note newNote = new Note();
        Note meiNote = (Note) meiNode;
        if(meiNote.isSetDur())
          newNote.setDur(meiNote.getDur());
        if(meiNote.isSetDots())
          newNote.setDots(meiNote.getDots());
        if(meiNote.isSetOct())
        newNote.setOct(((Note) meiNode).getOct());
        if(meiNote.isSetN())
          newNote.setN(meiNote.getN());
        if(meiNote.isSetPname())
          newNote.setPname(meiNote.getPname());
        this.child.setMeiNode(newNote);
        return;
      }
      this.child.setMeiNode(meiNode);
    }
View Full Code Here

            handleScoreChild(contentChildForm, saveAllVariants));
      }
      return contentNode;
    } else if (childForm instanceof NoteForm) {
      NoteForm contentForm = (NoteForm) childForm;
      Note contentNode = (Note) contentForm.getMeiNode();
      if (contentNode.getArtics().isEmpty())
        contentNode.unsetArtics();
      return contentNode;
    } else if (childForm instanceof RestForm) {
      RestForm contentForm = (RestForm) childForm;
      Rest contentNode = (Rest) contentForm.getMeiNode();
      return contentNode;
    } else if (childForm instanceof MRestForm) {
      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 cz.mp.k3bg.core.PersonalNotesGenerator$Note

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.