PageRenderTime 24ms CodeModel.GetById 11ms app.highlight 8ms RepoModel.GetById 2ms app.codeStats 0ms

/extensions/org/mt4jx/input/inputProcessors/componentProcessors/Group3DProcessorNew/MTClusterEvent.java

http://mt4j.googlecode.com/
Java | 41 lines | 27 code | 14 blank | 0 comment | 0 complexity | 5ee3a8d73697a906a1b5ed4f326c51d4 MD5 | raw file
 1package org.mt4jx.input.inputProcessors.componentProcessors.Group3DProcessorNew;
 2
 3import org.mt4j.input.MTEvent;
 4
 5public class MTClusterEvent extends MTEvent {
 6
 7	public static final int CLUSTER_CREATED = 1;
 8	
 9	public static final int CLUSTER_UPDATED = 2;
10	
11	public static final int CLUSTER_DELETED = 3;
12	
13	public static final int CLUSTER_SELECTED = 4;
14	
15	private Cluster cluster;
16	
17	private int id;
18	
19	public MTClusterEvent(Object source,int id,Cluster cluster) {
20		super(source);
21		this.cluster = cluster;
22		this.id = id;
23	}
24
25	public void setCluster(Cluster cluster) {
26		this.cluster = cluster;
27	}
28
29	public Cluster getCluster() {
30		return cluster;
31	}
32
33	public void setId(int id) {
34		this.id = id;
35	}
36
37	public int getId() {
38		return id;
39	}
40
41}