Reverting some new graphics classes back to how they were on master.

This commit is contained in:
Calum
2017-07-31 23:35:28 +12:00
parent b82d0d0137
commit 47c5e6f155
8 changed files with 77 additions and 62 deletions
@@ -1,6 +1,5 @@
package seng302.model.mark;
import com.sun.deploy.util.StringUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
@@ -31,9 +30,13 @@ public class CompoundMark {
*/
@Override
public String toString(){
String info = String.format("CompoundMark: %d (%s), [", compoundMarkId, name);
info += StringUtils.join(marks, ", ") + "]";
return info;
String info = String.format(
"CompoundMark: %d (%s), [%s", compoundMarkId, name, marks.get(0).toString()
);
if (marks.size() > 1) {
info += String.format(", %s", marks.get(1).toString());
}
return info + "]";
}
public int getId() {