Package com.google.collide.client.document.linedimensions.ColumnOffsetCache

Examples of com.google.collide.client.document.linedimensions.ColumnOffsetCache.ColumnOffset


  private double convertColumnToXMeasuringIfNeeded(Line line, int column) {
    LineDimensionsUtils.markTimeline(getClass(), "Begin converting Column To X via offset cache.");

    ColumnOffsetCache cache = ColumnOffsetCache.getOrCreate(line, getColumnWidth());
    checkColumnInCacheAndMeasureIfNeeded(cache, line, column);
    ColumnOffset offset = cache.getColumnOffsetForColumn(column);

    LineDimensionsUtils.markTimeline(getClass(), "End converting Column To X via offset cache.");
    return smartColumnToX(offset, column);
  }
View Full Code Here


    if (result != null) {
      double x = 0;
      do {
        // Calculate any x offset up to this point in the line
        ColumnOffset offset = cache.getLastColumnOffsetInCache();
        double baseXOffset = smartColumnToX(offset, result.getIndex());

        /*
         * TODO: we can be smarter here, if i > 1, then this character
         * is a mark. We could separate out the RegExp into non-spacing,
View Full Code Here

TOP

Related Classes of com.google.collide.client.document.linedimensions.ColumnOffsetCache.ColumnOffset

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.