Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/Change.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,29 @@ public class Change {
protected int lastListNum, startListNum;
protected int totalImages;

// Initializing change data
public Change(ArrayList<Image> imgs, int sln, int pln) {
images = imgs;
startListNum = sln;
lastListNum = 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;
}
Expand All @@ -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")) {
Expand All @@ -80,7 +71,6 @@ else if(key.equals("Temperature")) {
currImg.setWhiteBalance(whiteBalance);
}

// Overwrites xmp file with new string data
util.writeFile(currImg, newData);
}
}
Expand Down