Updated copyright dates.
[trakem2.git] / ini / trakem2 / display / FallLine.java
blobf669895b49f731eed65e1d9668cdf58f95b9456a
1 package ini.trakem2.display;
3 import java.awt.Point;
5 public class FallLine {
7 final Display display;
8 final ZDisplayable source;
10 Object previous;
11 Object next;
13 Layer current;
14 Layer target;
15 Point position;
17 public FallLine(Display display, ZDisplayable source) {
18 this.display = display;
19 this.source = source;
20 this.target = this.current = display.getLayer();
23 public Layer getLayer() { return current; }
25 public boolean isSource(ZDisplayable zd) { return source == zd; }
27 public void go(Layer target) {
28 this.current = this.target;
29 this.target = target;
30 source.setPosition(this);