Examples of Notes


Examples of com.gmail.jafelds.ppedits.enums.Notes

            int k = b.getKey();
           
            ROW_LOOP:
            for (int j = 0; j < cols; j++)
            {
              Notes z = c.getNote(j);
              if (z.getType() == '0')
              {
                continue ROW_LOOP;
              }
              Point p = new Point(j * ARROW_SIZE + ARROW_SIZE,
                  i * MAX_BEATS + k + ARROW_SIZE);
View Full Code Here

Examples of com.gmail.jafelds.ppedits.enums.Notes

            int k = b.getKey();
           
            ROW_LOOP:
            for (int j = 0; j < cols; j++)
            {
              Notes z = c.getNote(j);
              if (z.getType() == '0')
              {
                continue ROW_LOOP;
              }
              Point p = new Point(j * ARROW_SIZE + ARROW_SIZE,
                  i * MAX_BEATS + k + ARROW_SIZE);
View Full Code Here

Examples of com.nevernote.domain.Notes

    writer.write(wholeNote);
    writer.flush();
    writer.close();

    //Update database to add a new note
    Notes theNote = new Notes(noteName);
    if (notesService.findOne(theNote.getFileName()) == null) {
             Set<Users> noteUsers = new HashSet<Users>();
             noteUsers.add(u);
             theNote.setUsers(noteUsers);
             notesService.save(theNote);

             userFromDB.addNote(theNote);
             Users savedUser = usersService.save(userFromDB.getId(), userFromDB);
             session.setAttribute("userSession", savedUser);
View Full Code Here

Examples of com.nevernote.domain.Notes

    File file = new File(absoluteDiskPath + "/" + u.getId() + "/" + noteName);
    boolean success = file.delete();

    if (success) {
      //Update database with the note deletion
      Notes theNote = notesService.findOne(noteName);
      if (theNote != null) {
        theNote.removeUsers(u);
        notesService.delete(theNote);
      }
    }
    String url = "/ClientDashServlet";
    RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(url);
View Full Code Here

Examples of org.apache.poi.hslf.model.Notes

    // Finally, generate model objects for everything
    // Notes first
    _notes = new Notes[notesRecords.length];
    for (int i = 0; i < _notes.length; i++) {
      _notes[i] = new Notes(notesRecords[i]);
      _notes[i].setSlideShow(this);
    }
    // Then slides
    _slides = new Slide[slidesRecords.length];
    for (int i = 0; i < _slides.length; i++) {
      SlideAtomsSet sas = slidesSets[i];
      int slideIdentifier = sas.getSlidePersistAtom().getSlideIdentifier();

      // Do we have a notes for this?
      Notes notes = null;
      // Slide.SlideAtom.notesId references the corresponding notes slide.
      // 0 if slide has no notes.
      int noteId = slidesRecords[i].getSlideAtom().getNotesID();
      if (noteId != 0) {
        Integer notesPos = (Integer) slideIdToNotes.get(Integer.valueOf(noteId));
View Full Code Here

Examples of org.apache.poi.hslf.model.Notes

  // Finally, generate model objects for everything
  // Notes first
  _notes = new Notes[notesRecords.length];
  for(int i=0; i<_notes.length; i++) {
    _notes[i] = new Notes(notesRecords[i]);
    _notes[i].setSlideShow(this);
  }
  // Then slides
  _slides = new Slide[slidesRecords.length];
  for(int i=0; i<_slides.length; i++) {
    SlideAtomsSet sas = slidesSets[i];
    int slideIdentifier = sas.getSlidePersistAtom().getSlideIdentifier();

    // Do we have a notes for this?
    Notes notes = null;
        //Slide.SlideAtom.notesId references the corresponding notes slide. 0 if slide has no notes.
        int noteId = slidesRecords[i].getSlideAtom().getNotesID();
        if (noteId != 0){
            Integer notesPos = (Integer)slideIdToNotes.get(new Integer(noteId));
            if (notesPos != null) notes = _notes[notesPos.intValue()];
View Full Code Here

Examples of org.apache.poi.hslf.model.Notes

    //  but ensure no duplicates
    HashSet seenNotes = new HashSet();
    HeadersFooters hf = _show.getNotesHeadersFooters();

    for(int i=0; i<_slides.length; i++) {
      Notes notes = _slides[i].getNotesSheet();
      if(notes == null) { continue; }
      Integer id = new Integer(notes._getSheetNumber());
      if(seenNotes.contains(id)) { continue; }
      seenNotes.add(id);

      // Repeat the Notes header, if set
      if(hf != null && hf.isHeaderVisible() && hf.getHeaderText() != null) {
        ret.append(hf.getHeaderText() + "\n");
      }

      // Notes text
      TextRun[] runs = notes.getTextRuns();
      if(runs != null && runs.length > 0) {
        for(int j=0; j<runs.length; j++) {
          TextRun run = runs[j];
          String text = run.getText();
          ret.append(text);
View Full Code Here

Examples of org.apache.poi.hslf.model.Notes

    // Finally, generate model objects for everything
    // Notes first
    _notes = new Notes[notesRecords.length];
    for (int i = 0; i < _notes.length; i++) {
        if (notesRecords[i] != null) {
            _notes[i] = new Notes(notesRecords[i]);
          _notes[i].setSlideShow(this);
        }
    }
    // Then slides
    _slides = new Slide[slidesRecords.length];
    for (int i = 0; i < _slides.length; i++) {
      SlideAtomsSet sas = slidesSets[i];
      int slideIdentifier = sas.getSlidePersistAtom().getSlideIdentifier();

      // Do we have a notes for this?
      Notes notes = null;
      // Slide.SlideAtom.notesId references the corresponding notes slide.
      // 0 if slide has no notes.
      int noteId = slidesRecords[i].getSlideAtom().getNotesID();
      if (noteId != 0) {
        Integer notesPos = slideIdToNotes.get(noteId);
View Full Code Here

Examples of org.apache.poi.hslf.model.Notes

        SlideShow ppt = new SlideShow(hslf);
        assertTrue("No Exceptions while reading file", true);
        assertEquals(2, ppt.getSlides().length);

        TextRun txrun;
        Notes notes;

        notes = ppt.getSlides()[0].getNotesSheet();
        assertNotNull(notes);
        txrun = notes.getTextRuns()[0];
        assertEquals("Notes-1", txrun.getRawText());
        assertEquals(false, txrun.getRichTextRuns()[0].isBold());

        //notes for the second slide are in bold
        notes = ppt.getSlides()[1].getNotesSheet();
        assertNotNull(notes);
        txrun = notes.getTextRuns()[0];
        assertEquals("Notes-2", txrun.getRawText());
        assertEquals(true, txrun.getRichTextRuns()[0].isBold());

    }
View Full Code Here

Examples of org.apache.poi.hslf.model.Notes

        notesMap.put(Integer.valueOf(8), "The bus Z is split into Z_H and Z_L");

        Slide[] slide = ppt.getSlides();
        for (int i = 0; i < slide.length; i++) {
            Integer slideNumber = Integer.valueOf(slide[i].getSlideNumber());
            Notes notes = slide[i].getNotesSheet();
            if (notesMap.containsKey(slideNumber)){
                assertNotNull(notes);
                String text = notes.getTextRuns()[0].getRawText();
                String startingPhrase = notesMap.get(slideNumber);
                assertTrue("Notes for slide " + slideNumber + " must start with " +
                        startingPhrase , text.startsWith(startingPhrase));
            }
        }
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.