Normand Briere
2018-07-07 e416acb9b012b17d1efe49ad2199ea7132d874d1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package timeflow.vis;
 
import java.awt.Graphics2D;
import java.util.ArrayList;
 
import timeflow.data.db.Act;
import timeflow.data.db.ActDB;
import timeflow.data.db.Field;
import timeflow.model.Display;
 
public class MouseoverLabel extends Mouseover {
 
   String label1, label2;
   
   public MouseoverLabel(String label1, String label2, int x, int y, int w, int h) {
       super(label1, x, y, w, h);
       this.label1=label1;
       this.label2=label2;
   }
 
 
   public void draw(Graphics2D g, int maxW, int maxH, Display display)
   {
       super.draw(g, maxW, maxH, display);
       ArrayList labels=new ArrayList();
       labels.add(label1);
       labels.add(label2);
       int numLines=1;
       draw(g, maxW, maxH, display, labels, numLines);
   }
}