Class DropboxUtils

  • Direct Known Subclasses:
    DropboxUtils

    public class DropboxUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      DropboxUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Geometry figureGeometry​(java.util.Collection<Location> tileLocations)
      Figures the tile geometry based on all locations present in the it.
      static java.lang.String translateRowNumberIntoLetterCode​(int rowNumber)
      Translates a row number into letter code.
      static java.util.Map<java.lang.Integer,​Location> tryFigureLocations​(java.util.Map<java.lang.Integer,​ch.systemsx.cisd.common.geometry.SpatialPoint> tileToSpatialPointMap, double epsilon)
      Tries to figure out tile locations based on their spatial coordinates.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DropboxUtils

        public DropboxUtils()
    • Method Detail

      • translateRowNumberIntoLetterCode

        public static java.lang.String translateRowNumberIntoLetterCode​(int rowNumber)
        Translates a row number into letter code. Thus, 1 -> A, 2 -> B, 26 -> Z, 27 -> AA, 28 -> AB, etc.
      • figureGeometry

        public static Geometry figureGeometry​(java.util.Collection<Location> tileLocations)
        Figures the tile geometry based on all locations present in the it.
      • tryFigureLocations

        public static java.util.Map<java.lang.Integer,​Location> tryFigureLocations​(java.util.Map<java.lang.Integer,​ch.systemsx.cisd.common.geometry.SpatialPoint> tileToSpatialPointMap,
                                                                                         double epsilon)
        Tries to figure out tile locations based on their spatial coordinates.

        Two spatial points (x1, y1) and (x2, y2) are assumed lie in the same tile when abs(x1-x2) < epsilon and abs(y1-y2) < epsilon.

        Parameters:
        epsilon - see the javadoc of the method