diff --git a/src/Change.java b/src/Change.java index be5054d..b9d400f 100644 --- a/src/Change.java +++ b/src/Change.java @@ -17,7 +17,6 @@ public class Change { protected int lastListNum, startListNum; protected int totalImages; - // Initializing change data public Change(ArrayList imgs, int sln, int pln) { images = imgs; startListNum = sln; @@ -25,27 +24,22 @@ public Change(ArrayList imgs, int sln, int pln) { totalImages = (lastListNum - startListNum) + 1; } - // Gets start image of change sequence public int getStartListNum() { return startListNum; } - // Gets last image before change public int getLastListNum() { return lastListNum; } - // Gets number of images within this change sequence public int getTotalImages() { return totalImages; } - // Gets the increments dispersed among all images in change sequence public double getIncrements() { return increments; } - // Sets start image of change sequence public void setStartListNum(int sln) { startListNum = sln; } @@ -62,13 +56,10 @@ public void updateMetadata(String key) { for(int i = startListNum; i <= lastListNum; i++) { Image currImg = images.get(i); - // Gets the xmp file File file = currImg.getXMP(); - // Creates new value, incremented double newValue = startValue + (increments * (i-startListNum)); - // Replaces string data with new value String newData = util.replace(file, key, newValue); if(key.equals("Exposure")) { @@ -80,7 +71,6 @@ else if(key.equals("Temperature")) { currImg.setWhiteBalance(whiteBalance); } - // Overwrites xmp file with new string data util.writeFile(currImg, newData); } }