sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 01/05: Renamed TranslatedTransform as TileTranslation.
Date Sat, 15 Feb 2020 17:12:59 GMT
This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git

commit ce34db43d01b41200b15c41d7542b6c5b8548f36
Author: Martin Desruisseaux <martin.desruisseaux@geomatys.com>
AuthorDate: Sat Feb 15 10:36:03 2020 +0100

    Renamed TranslatedTransform as TileTranslation.
---
 .../java/org/apache/sis/internal/referencing/j2d/TileOrganizer.java | 6 +++---
 .../j2d/{TranslatedTransform.java => TileTranslation.java}          | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileOrganizer.java
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileOrganizer.java
index fb4f0a4..8be2c96 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileOrganizer.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileOrganizer.java
@@ -254,12 +254,12 @@ public class TileOrganizer {
                     groupBounds.translate(dx, dy);
                 }
                 reference = new AffineTransform2D(reference);               // Make immutable.
-                final Map<Dimension,TranslatedTransform> pool = new HashMap<>();
+                final Map<Dimension,TileTranslation> pool = new HashMap<>();
                 for (final Tile tile : tilesArray) {
                     final Dimension subsampling = tile.getSubsampling();
-                    TranslatedTransform translated = pool.get(subsampling);
+                    TileTranslation translated = pool.get(subsampling);
                     if (translated == null) {
-                        translated = new TranslatedTransform(subsampling, reference, dx,
dy);
+                        translated = new TileTranslation(subsampling, reference, dx, dy);
                         pool.put(subsampling, translated);
                     }
                     translated.applyTo(tile);
diff --git a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TranslatedTransform.java
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileTranslation.java
similarity index 95%
rename from core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TranslatedTransform.java
rename to core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileTranslation.java
index 59b2b30..095ad78 100644
--- a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TranslatedTransform.java
+++ b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/j2d/TileTranslation.java
@@ -30,7 +30,7 @@ import java.awt.geom.AffineTransform;
  * @since   1.1
  * @module
  */
-final class TranslatedTransform {
+final class TileTranslation {
     /**
      * The translated "grid to real world" transform, as an immutable instance.
      */
@@ -50,7 +50,7 @@ final class TranslatedTransform {
      * @param  dx           the translation along <var>x</var> axis in "absolute
units".
      * @param  dy           the translation along <var>y</var> axis in "absolute
units".
      */
-    TranslatedTransform(final Dimension subsampling, AffineTransform reference, int dx, int
dy) {
+    TileTranslation(final Dimension subsampling, AffineTransform reference, int dx, int dy)
{
         this.dx = dx / subsampling.width;                           // It is okay to round
toward zero.
         this.dy = dy / subsampling.height;
         dx %= subsampling.width;


Mime
View raw message