diff --git a/Hello_World_Tutorials/Java_CDLL.html b/Hello_World_Tutorials/Java_CDLL.html
index ce0e2635f..c9c822c6f 100644
--- a/Hello_World_Tutorials/Java_CDLL.html
+++ b/Hello_World_Tutorials/Java_CDLL.html
@@ -137,11 +137,11 @@
Here's the final code:
diff --git a/Hello_World_Tutorials/Java_CSLL.html b/Hello_World_Tutorials/Java_CSLL.html
index 5158106e6..8e52a9e6d 100644
--- a/Hello_World_Tutorials/Java_CSLL.html
+++ b/Hello_World_Tutorials/Java_CSLL.html
@@ -146,11 +146,11 @@ Here's the final code:
diff --git a/Hello_World_Tutorials/Java_DLL.html b/Hello_World_Tutorials/Java_DLL.html
index d09a3edc2..88e8cf661 100644
--- a/Hello_World_Tutorials/Java_DLL.html
+++ b/Hello_World_Tutorials/Java_DLL.html
@@ -87,11 +87,11 @@ Here's the final code:
diff --git a/Hello_World_Tutorials/Java_SLL.html b/Hello_World_Tutorials/Java_SLL.html
index 6b7d2adef..2d1b5e06d 100644
--- a/Hello_World_Tutorials/Java_SLL.html
+++ b/Hello_World_Tutorials/Java_SLL.html
@@ -151,11 +151,11 @@ Here's the final code:
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL.zip
index 4d1c75a52..6d00ac6ec 100644
Binary files a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL.zip and b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL.zip differ
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java
index 875d5ddc2..9e2972f14 100644
--- a/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java
+++ b/Hello_World_Tutorials/tutorial-source-code/Java_CDLL/cdllist.java
@@ -1,13 +1,9 @@
-/**
-* Created by Lucas Estrella on 1/31/2017.
-*/
import bridges.base.CircDLelement;
import bridges.connect.Bridges;
-import model.Student;
public class Main {
- public static void main(String[] args) throws , ParseException {
+ public static void main(String[] args) throws Exception{
Bridges bridge = new Bridges(6, "YOUR_API_KEY", "YOUR_USER_ID");
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip
index 3d05a80ac..c3b152d25 100644
Binary files a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip and b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL.zip differ
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java
index 360bc4943..f50f57781 100644
--- a/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java
+++ b/Hello_World_Tutorials/tutorial-source-code/Java_CSLL/csllist.java
@@ -1,13 +1,9 @@
-/**
-* Created by Lucas Estrella on 1/31/2017.
-*/
import bridges.base.CircDLelement;
import bridges.connect.Bridges;
-import model.Student;
public class Main {
- public static void main(String[] args) throws , ParseException {
+ public static void main(String[] args) throws Exception {
Bridges bridge = new Bridges(5, "YOUR_API_KEY", "YOUR_USER_ID");
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip
index df50e984e..6abd0e0c8 100644
Binary files a/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip and b/Hello_World_Tutorials/tutorial-source-code/Java_DLL.zip differ
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java
index 957ad200d..029b91e70 100644
--- a/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java
+++ b/Hello_World_Tutorials/tutorial-source-code/Java_DLL/dllist.java
@@ -1,10 +1,9 @@
import bridges.base.CircDLelement;
import bridges.connect.Bridges;
-import model.Student;
public class Main {
- public static void main(String[] args) throws , ParseException {
+ public static void main(String[] args) throws Exception {
Bridges bridge = new Bridges(4, "YOUR_API_KEY", "YOUR_USER_ID");
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_SLL.zip b/Hello_World_Tutorials/tutorial-source-code/Java_SLL.zip
index c79faa7aa..6859a656c 100644
Binary files a/Hello_World_Tutorials/tutorial-source-code/Java_SLL.zip and b/Hello_World_Tutorials/tutorial-source-code/Java_SLL.zip differ
diff --git a/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java b/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java
index 5ba1d53d9..e552905f9 100644
--- a/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java
+++ b/Hello_World_Tutorials/tutorial-source-code/Java_SLL/sllist.java
@@ -4,20 +4,13 @@
*/
import bridges.connect.Bridges;
import bridges.base.SLelement;
-import com.google.gson.JsonObject;
-import model.Student;
-import org.json.simple.parser.ParseException;
-import provider.StudentProvider;
-import util.Auth;
-
-import java.io.FileNotFoundException;
public class Main {
- public static void main(String[] args) throws FileNotFoundException, ParseException {
+ public static void main(String[] args) throws Exception {
- Bridges bridges = new (1, "YOUR_API_KEY", "YOUR_USER_ID");
+ Bridges bridges = new (3, "YOUR_API_KEY", "YOUR_USER_ID");
/**
diff --git a/Hello_World_Tutorials/tutorial-source-code/Student.java b/Hello_World_Tutorials/tutorial-source-code/Student.java
deleted file mode 100644
index 4a6608f58..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/Student.java
+++ /dev/null
@@ -1,161 +0,0 @@
- package model;
-
- /**
- * Created by Lucas Estrella on 1/31/2017.
- */
- public class Student {
- private String studentID,
- fullName,
- program,
- email,
- dislikeColor,
- favoriteColor,
- avatar;
-
- private boolean visited;
-
- public boolean isVisited() {
- return visited;
- }
-
- public void setVisited(boolean visited) {
- this.visited = visited;
- }
-
- private double studentCreditHours;
-
- /**
- * @param studentID
- * @param fullName
- * @param program
- * @param email
- */
- public Student(String studentID,
- String fullName,
- String program,
- String email,
- String dislikeColor,
- String favoriteColor,
- double studentCreditHours,
- String avatar) {
- this.studentID = studentID;
- this.fullName = fullName;
- this.program = program;
- this.email = email;
- this.dislikeColor = dislikeColor;
- this.favoriteColor = favoriteColor;
- this.studentCreditHours = studentCreditHours;
- this.avatar = avatar;
- }
-
- /**
- * @return studentID
- */
- public String getStudentID() {
- return studentID;
- }
-
- /**
- * @param studentID
- */
- public void setStudentID(String studentID) {
- this.studentID = studentID;
- }
-
- /**
- * @return fullName
- */
- public String getFullName() {
- return fullName;
- }
-
- /**
- * @param fullName
- */
- public void setFullName(String fullName) {
- this.fullName = fullName;
- }
-
- /**
- * @return program
- */
- public String getProgram() {
- return program;
- }
-
- /**
- * @param program
- */
- public void setProgram(String program) {
- this.program = program;
- }
-
- /**
- * @return email
- */
- public String getEmail() {
- return email;
- }
-
- /**
- * @param email
- */
- public void setEmail(String email) {
- this.email = email;
- }
-
-
- /**
- * @return favoriteColor
- */
- public String getFavoriteColor() {
- return favoriteColor;
- }
-
- /**
- * @param favoriteColor
- */
- public void setFavoriteColor(String favoriteColor) {
- this.favoriteColor = favoriteColor;
- }
-
-
- public String getAvatar() {
- return avatar;
- }
-
- public void setAvatar(String avatar) {
- this.avatar = avatar;
- }
-
- public String getDislikeColor() {
- return dislikeColor;
- }
-
- public void setDislikeColor(String dislikeColor) {
- this.dislikeColor = dislikeColor;
- }
-
- public double getStudentCreditHours() {
- return studentCreditHours;
- }
-
- public void setStudentCreditHours(double studentCreditHours) {
- this.studentCreditHours = studentCreditHours;
- }
-
- public String getStudentLabel() {
- String $label =
- fullName + "\n" +
- "Email: " + email + "\n" +
- "Program: " + program + "\n" +
- "Student ID: " + studentID + "\n" +
- "Favorite Color: " + favoriteColor + "\n";
-
- if(avatar != null)
- $label += "<img width='100' src='" + avatar + "'/>";
-
-
- return $label;
- }
- }
\ No newline at end of file
diff --git a/Hello_World_Tutorials/tutorial-source-code/StudentInfo.java b/Hello_World_Tutorials/tutorial-source-code/StudentInfo.java
deleted file mode 100644
index 3cc44317f..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/StudentInfo.java
+++ /dev/null
@@ -1,65 +0,0 @@
-public class StudentInfo {
- private String studentID, fullName, program, email, dislikeColor, favoriteColor, avatar;
- private double studentCreditHours;
-
- public StudentInfo(String studentID, String fullName, String program, String email, String dislikeColor,
- String favoriteColor, double studentCreditHours, String avatar) {
- this.studentID = studentID;
- this.fullName = fullName;
- this.program = program;
- this.email = email;
- this.dislikeColor = dislikeColor;
- this.favoriteColor = favoriteColor;
- this.studentCreditHours = studentCreditHours;
- this.avatar = avatar;
- }
- public String getStudentID() {
- return studentID;
- }
- public void setStudentID(String studentID) {
- this.studentID = studentID;
- }
- public String getFullName() {
- return fullName;
- }
- public void setFullName(String fullName) {
- this.fullName = fullName;
- }
- public String getProgram() {
- return program;
- }
- public void setProgram(String program) {
- this.program = program;
- }
-
- public String getEmail() {
- return email;
- }
- public void setEmail(String email) {
- this.email = email;
- }
- public String getFavoriteColor() {
- return favoriteColor;
- }
- public void setFavoriteColor(String favoriteColor) {
- this.favoriteColor = favoriteColor;
- }
- public String getAvatar() {
- return avatar;
- }
- public void setAvatar(String avatar) {
- this.avatar = avatar;
- }
- public String getDislikeColor() {
- return dislikeColor;
- }
- public void setDislikeColor(String dislikeColor) {
- this.dislikeColor = dislikeColor;
- }
- public double getStudentCreditHours() {
- return studentCreditHours;
- }
- public void setStudentCreditHours(double studentCreditHours) {
- this.studentCreditHours = studentCreditHours;
- }
-}
\ No newline at end of file
diff --git a/Hello_World_Tutorials/tutorial-source-code/StudentProvider.java b/Hello_World_Tutorials/tutorial-source-code/StudentProvider.java
deleted file mode 100644
index 7078abb2c..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/StudentProvider.java
+++ /dev/null
@@ -1,77 +0,0 @@
- package provider;
-
- import model.Student;
-
- /**
- * Created by Lucas Estrella on 2/2/2017.
- */
- public class StudentProvider {
-
- /**
- * @param index
- * @return student at index
- */
- public static Student getStudentAt(int index){
- if(index >= students.length){
- throw new NullPointerException();
- }
- return students[index];
- }
-
- /**
- * @return all students
- */
- public static Student[] getStudents(){
- return students;
- }
-
- private static Student[] students = {
- new Student(
- "00000000000",
- "Gretel Chaney",
- "CS",
- "g.chaney@generated.com",
- "magenta",
- "blue",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/45.jpg"
- ),
- new Student(
- "00000000001",
- "Karol Soderman",
- "SIS",
- "k.soderman@generated.com",
- "magenta",
- "red",
- 11.0,
- "https://randomuser.me/api/portraits/med/women/46.jpg"
- ),
- new Student(
- "00000000002",
- "Lamont Kyler",
- "BIO",
- "l.kyler@generated.com",
- "yellow",
- "green",
- 12.0,
- "https://randomuser.me/api/portraits/med/men/80.jpg"
- ),
- new Student(
- "00000000003",
- "Gladys Serino",
- "CS","g.serino@generated.com",
- "blue",
- "magenta",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/2.jpg"
- ),
- new Student("00000000004",
- "Starr Mcginn",
- "CS",
- "s.mcginn@generated.com",
- "red",
- "yellow",
- 15.0,
- "https://randomuser.me/api/portraits/med/men/87.jpg")
- };
- }
diff --git a/Hello_World_Tutorials/tutorial-source-code/cdllist.java b/Hello_World_Tutorials/tutorial-source-code/cdllist.java
deleted file mode 100644
index 7dc2e6192..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/cdllist.java
+++ /dev/null
@@ -1,109 +0,0 @@
-package cdllist;
-
-import bridges.base.CircDLelement;
-import bridges.connect.Bridges;
-import model.Student;
-
-public class Main {
-
- public static void main(String[] args) throws , ParseException {
-
- Bridges bridge = new Bridges(6, "YOUR_API_KEY", "YOUR_USER_ID");
-
- Student[] students = {
- new Student(
- "00000000000",
- "Gretel Chaney",
- "CS",
- "g.chaney@generated.com",
- "magenta",
- "blue",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/45.jpg"
- ),
- new Student(
- "00000000001",
- "Karol Soderman",
- "SIS",
- "k.soderman@generated.com",
- "magenta",
- "red",
- 11.0,
- "https://randomuser.me/api/portraits/med/women/46.jpg"
- ),
- new Student(
- "00000000002",
- "Lamont Kyler",
- "BIO",
- "l.kyler@generated.com",
- "yellow",
- "green",
- 12.0,
- "https://randomuser.me/api/portraits/med/men/80.jpg"
- ),
- new Student(
- "00000000003",
- "Gladys Serino",
- "CS","g.serino@generated.com",
- "blue",
- "magenta",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/2.jpg"
- ),
- new Student("00000000004",
- "Starr Mcginn",
- "CS",
- "s.mcginn@generated.com",
- "red",
- "yellow",
- 15.0,
- "https://randomuser.me/api/portraits/med/men/87.jpg")
- };
-
- /**
- * new CircDLelement<>(label, genericData)
- */
- //initializing all elements with empty labels, and with the student data. See Object model.Student.java
- CircDLelement el0 = null;
- for(int i = 0; i < students.length; i++) {
- if(i > 0) {
- el0 = insertFront(el0, new CircDLelement("",students[i]));
- }else{
- el0 = new CircDLelement("",students[i]);
- }
- }
-
- CircDLelement current = el0;
- do{
- current.setLabel(current.getValue().getStudentLabel());
- current.getVisualizer().setColor(current.getValue().getFavoriteColor());
-
- current.getLinkVisualizer(current.getNext()).setColor(current.getValue().getDislikeColor());
- current.getLinkVisualizer(current.getNext()).setThickness(current.getValue().getStudentCreditHours()*.75);
-
- current.getLinkVisualizer(current.getPrev()).setColor(current.getValue().getDislikeColor());
- current.getLinkVisualizer(current.getPrev()).setThickness(current.getValue().getStudentCreditHours()*.75);
-
- current = current.getNext();
- }while(current.getIdentifier() != el0.getIdentifier());
-
- bridge.setDataStructure(el0);
- bridge.visualize();
-
-
- }
-
-
- public static CircDLelement insertFront(CircDLelement tailElement,
- CircDLelement newElement){
- CircDLelement tailNextElement = tailElement.getNext();
-
- newElement.setNext(tailNextElement);
- newElement.setPrev(tailElement);
-
- tailNextElement.setPrev(newElement);
- tailElement.setNext(newElement);
- return tailElement;
- }
-
-}
diff --git a/Hello_World_Tutorials/tutorial-source-code/csllist.java b/Hello_World_Tutorials/tutorial-source-code/csllist.java
deleted file mode 100644
index a95513631..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/csllist.java
+++ /dev/null
@@ -1,103 +0,0 @@
-package csllist;
-
-import bridges.base.CircDLelement;
-import bridges.connect.Bridges;
-import model.Student;
-
-public class Main {
-
- public static void main(String[] args) throws , ParseException {
-
- Bridges bridge = new Bridges(5, "YOUR_API_KEY", "YOUR_USER_ID");
-
- Student[] students = {
- new Student(
- "00000000000",
- "Gretel Chaney",
- "CS",
- "g.chaney@generated.com",
- "magenta",
- "blue",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/45.jpg"
- ),
- new Student(
- "00000000001",
- "Karol Soderman",
- "SIS",
- "k.soderman@generated.com",
- "magenta",
- "red",
- 11.0,
- "https://randomuser.me/api/portraits/med/women/46.jpg"
- ),
- new Student(
- "00000000002",
- "Lamont Kyler",
- "BIO",
- "l.kyler@generated.com",
- "yellow",
- "green",
- 12.0,
- "https://randomuser.me/api/portraits/med/men/80.jpg"
- ),
- new Student(
- "00000000003",
- "Gladys Serino",
- "CS","g.serino@generated.com",
- "blue",
- "magenta",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/2.jpg"
- ),
- new Student("00000000004",
- "Starr Mcginn",
- "CS",
- "s.mcginn@generated.com",
- "red",
- "yellow",
- 15.0,
- "https://randomuser.me/api/portraits/med/men/87.jpg")
- };
-
- /**
- * new CircSLelement<>(label, genericData)
- */
- CircSLelement el0 = new CircSLelement("",students[0]);
- CircSLelement current = el0;
-
- for(int i = 1; i < students.length; i++){
- current.setNext(new CircSLelement("", students[i]));
-
- //handles the last element
- if(i == students.length-1){
- //getting the last element
- current = current.getNext();
-
- //point the last element to the first element, so the list becomes circular.
- current.getNext().setNext(el0);
- }
-
- //set the current element to be the next element
- current = current.getNext();
- }
-
-
- current = el0;
-
- do{
- current.setLabel(current.getValue().getStudentLabel());
- current.getVisualizer().setColor(current.getValue().getFavoriteColor());
-
- current.getLinkVisualizer(current.getNext()).setColor(current.getValue().getDislikeColor());
- current.getLinkVisualizer(current.getNext()).setThickness(current.getValue().getStudentCreditHours()*0.75);
-
- current = current.getNext();
- }while(current.getIdentifier() != el0.getIdentifier());
-
- bridge.setDataStructure(el0);
- bridge.visualize();
-
- }
-
-}
diff --git a/Hello_World_Tutorials/tutorial-source-code/dllist.java b/Hello_World_Tutorials/tutorial-source-code/dllist.java
deleted file mode 100644
index 7c658fa11..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/dllist.java
+++ /dev/null
@@ -1,108 +0,0 @@
-package dllist;
-
-import bridges.base.CircDLelement;
-import bridges.connect.Bridges;
-import model.Student;
-
-public class Main {
-
- public static void main(String[] args) throws , ParseException {
-
- Bridges bridge = new Bridges(4, "YOUR_API_KEY", "YOUR_USER_ID");
-
- Student[] students = {
- new Student(
- "00000000000",
- "Gretel Chaney",
- "CS",
- "g.chaney@generated.com",
- "magenta",
- "blue",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/45.jpg"
- ),
- new Student(
- "00000000001",
- "Karol Soderman",
- "SIS",
- "k.soderman@generated.com",
- "magenta",
- "red",
- 11.0,
- "https://randomuser.me/api/portraits/med/women/46.jpg"
- ),
- new Student(
- "00000000002",
- "Lamont Kyler",
- "BIO",
- "l.kyler@generated.com",
- "yellow",
- "green",
- 12.0,
- "https://randomuser.me/api/portraits/med/men/80.jpg"
- ),
- new Student(
- "00000000003",
- "Gladys Serino",
- "CS","g.serino@generated.com",
- "blue",
- "magenta",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/2.jpg"
- ),
- new Student("00000000004",
- "Starr Mcginn",
- "CS",
- "s.mcginn@generated.com",
- "red",
- "yellow",
- 15.0,
- "https://randomuser.me/api/portraits/med/men/87.jpg")
- };
-
- /**
- * new DLelement<>(label, genericData)
- */
- //initializing all elements with empty labels, and with the student data. See Object model.Student.java
- DLelement el0 = null;
-
- for(int i = 0; i < students.length; i++){
- if(i > 1){
- el0 = insertFront(el0, new DLelement<>("",students[i]));
- }else if(i == 0){
- el0 = new DLelement<>("",students[0]);
- el0.setNext(new DLelement<>("",students[1]));
- }
- }
-
- DLelement current = el0;
- while(current != null){
- current.setLabel(current.getValue().getStudentLabel());
- current.getVisualizer().setColor(current.getValue().getFavoriteColor());
-
- if(current.getNext() != null)current.getLinkVisualizer(current.getNext()).setColor(current.getValue().getDislikeColor());
- if(current.getPrev() != null)current.getLinkVisualizer(current.getPrev()).setColor(current.getValue().getDislikeColor());
-
- current = current.getNext();
- }
-
- bridge.setDataStructure(el0);
- bridge.visualize();
-
-
- }
-
-
- public static DLelement insertFront(DLelement tail,
- DLelement newElement){
- DLelement tailNext = tail.getNext();
-
- newElement.setNext(tailNext);
- newElement.setPrev(tail);
-
- tailNext.setPrev(newElement);
- tail.setNext(newElement);
- return tail;
- }
-
-}
diff --git a/Hello_World_Tutorials/tutorial-source-code/sllist.java b/Hello_World_Tutorials/tutorial-source-code/sllist.java
deleted file mode 100644
index a115c16d2..000000000
--- a/Hello_World_Tutorials/tutorial-source-code/sllist.java
+++ /dev/null
@@ -1,122 +0,0 @@
-package sllist;
-/**
- * Created by Lucas Estrella on 1/31/2017.
- * lestrell@uncc.edu
- */
-import bridges.connect.Bridges;
-import bridges.base.SLelement;
-import com.google.gson.JsonObject;
-import model.Student;
-import org.json.simple.parser.ParseException;
-import provider.StudentProvider;
-import util.Auth;
-
-import java.io.FileNotFoundException;
-
-public class Main {
-
- public static void main(String[] args) throws FileNotFoundException, ParseException {
-
-
- Bridges bridges = new (1, "YOUR_API_KEY", "YOUR_USER_ID");
-
-
- /**
- * new SLelement<>(label, genericData)
- */
- //initializing all elements with empty labels, and with the student data. See Object model.Student.java
- SLelement el0 = new SLelement( "",
- new StudentInfo(
- "00000000000",
- "Gretel Chaney",
- "CS",
- "g.chaney@generated.com",
- "magenta",
- "blue",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/45.jpg"
- ));
- SLelement el1 = new SLelement( "",
- new StudentInfo(
- "00000000001",
- "Karol Soderman",
- "SIS",
- "k.soderman@generated.com",
- "magenta",
- "red",
- 11.0,
- "https://randomuser.me/api/portraits/med/women/46.jpg"
- ));
- SLelement el2 = new SLelement( "",
- new StudentInfo(
- "00000000002",
- "Lamont Kyler",
- "BIO",
- "l.kyler@generated.com",
- "yellow",
- "green",
- 12.0,
- "https://randomuser.me/api/portraits/med/men/80.jpg"
- ));
- SLelement el3 = new SLelement( "",
- new StudentInfo(
- "00000000003",
- "Gladys Serino",
- "CS",
- "g.serino@generated.com",
- "blue",
- "magenta",
- 9.0,
- "https://randomuser.me/api/portraits/med/women/2.jpg"
- ));
- SLelement el4 = new SLelement( "",
- new StudentInfo(
- "00000000004",
- "Starr Mcginn",
- "CS",
- "s.mcginn@generated.com",
- "red",
- "yellow",
- 15.0,
- "https://randomuser.me/api/portraits/med/men/87.jpg"
- ));
-
- //Linking the Singly LinkedList Element1 -> Element2 -> Element3 -> Element4 -> NULL
- el0.setNext(el1);
- el1.setNext(el2);
- el2.setNext(el3);
- el3.setNext(el4);
-
- SLelement currentElement = el0;
-
- while(currentElement != null){
- currentElement.getVisualizer().setColor(currentElement.getValue().getFavoriteColor());
-
- if(currentElement.getNext() != null){
-
- currentElement
- .getLinkVisualizer(currentElement.getNext())
- .setColor(currentElement.getValue().getDislikeColor());
-
- currentElement
- .getLinkVisualizer(currentElement.getNext())
- .setThickness(currentElement.getValue().getStudentCreditHours() * 0.75);//75 percent thinner
-
- }
-
- currentElement.setLabel(currentElement.getValue().getStudentLabel());
-
- currentElement = currentElement.getNext();
- }
-
- bridge.setDataStructure(el0);
- bridge.visualize();
-
-
- }
-
-
-
-
-
-}