/Users/lyon/j4p/src/graphics/graph/PickBean.java

1    package graphics.graph; 
2     
3    /** 
4     PickBean is a nice example of a bean, 
5     that uses the Singleton Pattern. 
6     this is the nodes that was selected by the gui.mouse.m2.mouse. 
7     */ 
8     
9    public final class PickBean { 
10       private PickBean() { 
11       }; 
12    
13       private static PickBean pb = new PickBean(); 
14    
15       public static PickBean getPickBean() { 
16           return pb; 
17       } 
18    
19       private Node pick; 
20    
21       public Node getPick() { 
22           return pick; 
23       } 
24    
25       public void setPick(Node n) { 
26           pick = n; 
27       } 
28   } 
29