com.supermap.services.tilesource

Class VersionUpdate

  • java.lang.Object
    • com.supermap.services.tilesource.VersionUpdate


  • public class VersionUpdate
    extends java.lang.Object
    

    Slice version update information. Refers to the update information based on the parent version.

    Since:
    6.1.3
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Compares whether the current object VersionUpdate is the same as the incoming object
      int hashCode()
      Gets the hash code value for this object VersionUpdate
      boolean tileUpdated(Point2D original, int tileWidthInPix, Tile tile)
      Determines whether the current update contains the given slice.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • scaleDenominators

        public double[] scaleDenominators
        
        The updated scale of the denominator array
      • resolutions

        public double[] resolutions
        
        Updated resolution array
    • Constructor Detail

      • VersionUpdate

        public VersionUpdate()
        
      • VersionUpdate

        public VersionUpdate(VersionUpdate versionUpdate)
        
      • VersionUpdate

        public VersionUpdate(Rectangle2D bounds,
                     double[] scaleDenominators,
                     double[] resolutions)
        
    • Method Detail

      • hashCode

        public int hashCode()
        

        Gets the hash code value for this object VersionUpdate

        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        

        Compares whether the current object VersionUpdate is the same as the incoming object

        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to be compared.
      • tileUpdated

        public boolean tileUpdated(Point2D original,
                          int tileWidthInPix,
                          Tile tile)
        

        Determines whether the current update contains the given slice.

        Parameters:
        original - origin
        tileWidthInPix - Tile pixel width
        tile - Tiles
        Returns:
        whether to be updated
        Since:
        6.1.3