Examples of moveToPrevious()


Examples of com.google.collide.shared.document.LineInfo.moveToPrevious()

           * - On Mac, always go to first column, or
           * - On all platforms, shift+up should select to first column
           */
          column = 0;
        } else {
          lineInfo.moveToPrevious();
        }

        column = rubberbandColumn(lineInfo.line(), column);
        shouldUpdatePreferredColumn = false;
        break;
View Full Code Here

Examples of com.google.collide.shared.document.LineInfo.moveToPrevious()

        shouldUpdatePreferredColumn = false;
        break;

      case PAGE_UP:
        for (int i = buffer.getFlooredHeightInLines(); i > 0; i--) {
          lineInfo.moveToPrevious();
        }
        column = rubberbandColumn(lineInfo.line(), preferredCursorColumn);
        shouldUpdatePreferredColumn = false;
        break;
View Full Code Here

Examples of com.google.collide.shared.document.LineInfo.moveToPrevious()

        column = LineUtils.getLastCursorColumn(lineInfo.line());
        break;
    }

    if (column < 0) {
      if (lineInfo.moveToPrevious()) {
        column = getLastCursorColumn(lineInfo.line());
      } else {
        column = 0;
      }
    } else if (column > getLastCursorColumn(lineInfo.line())) {
View Full Code Here

Examples of com.google.collide.shared.document.LineInfo.moveToPrevious()

   */
  private void shiftBottomAnchor(int lineCount) {
    LineInfo bottomLineInfo = bottomAnchor.getLineInfo();
    if (lineCount < 0) {
      for (; lineCount < 0; lineCount++) {
        bottomLineInfo.moveToPrevious();
      }
    } else {
      for (; lineCount > 0; lineCount--) {
        bottomLineInfo.moveToNext();
      }
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveToPrevious()

      a = (AnnotationFS) it.get();
      // System.out.println(
      // a.getType().getName() + " - " + a.getStart() + " - " +
      // a.getEnd());
      assertTrue(it.get().hashCode() == v.get(current));
      it.moveToPrevious();
      --current;
    }
    assertTrue(current == -1);
    assertFalse(it.isValid());
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveToPrevious()

      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current));
      it.moveToNext();
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current + 1));
      it.moveToPrevious();
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current));
      ++current;
    }
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveToPrevious()

      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current));
      it.moveToNext();
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current + 1));
      it.moveToPrevious();
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current));
      ++current;
    }
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveToPrevious()

    // Check that reverse iterator produces reverse sequence.
    it.moveToLast();
    for (int i = v.size() - 1; i >= 0; i--) {
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(i));
      it.moveToPrevious();
    }

    // /////////////////////////////////////////////////////////////////////////
    // Use an iterator to move forwards and backwards and make sure the
    // sequence
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveToPrevious()

      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current));
      it.moveToNext();
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current + 1));
      it.moveToPrevious();
      assertTrue(it.isValid());
      assertTrue(it.get().hashCode() == v.get(current));
      ++current;
    }
View Full Code Here

Examples of org.apache.uima.cas.FSIterator.moveToPrevious()

    AnnotationFS pointer = cas.createAnnotation(frameType, begin, begin);
    FSIterator iterator = cas.getAnnotationIndex().iterator(pointer);
    int nextEnd = -1;

    // ???
    iterator.moveToPrevious();
    iterator.moveToPrevious();
    while (iterator.isValid()) {
      FeatureStructure fs = iterator.get();
      if (fs instanceof AnnotationFS) {
        AnnotationFS a = (AnnotationFS) fs;
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.