for (ColoredStationAnimation station : stations) {
addStation(station);
}
EdgeAnimation[] links = new EdgeAnimation[linkPts.length];
for (int i = 0; i < linkPts.length; i++) {
links[i] = new EdgeAnimation(linkPts[i], 20);
}
ColoredStationAnimation[] sourceStations = { stations[1], stations[1], stations[0], stations[2], stations[1] };
ColoredStationAnimation[] targetStations = { stations[2], stations[0], stations[1], stations[1], stations[1] };
for (int i = 0; i < links.length; i++) {
addEdge(links[i], sourceStations[i], targetStations[i]);