Revision 1082 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/LayerPositionEvent.java

View differences:

LayerPositionEvent.java
16 16
	/** Indice de la capa en la coleccion */
17 17
	private int newPos;
18 18

  
19
	private final static int LAYER_MOVING = 4;
20

  
21
	private final static int LAYER_MOVED = 1;
22

  
23

  
24
	public static LayerPositionEvent createLayerMovedEvent(FLayer lyr, int oldp, int newp){
25
		return new LayerPositionEvent(lyr, oldp, newp, LAYER_MOVED);
26
	}
27

  
28
	public static LayerPositionEvent createLayerMovingEvent(FLayer lyr, int oldp, int newp){
29
		return new LayerPositionEvent(lyr, oldp, newp, LAYER_MOVING);
30
	}
31

  
19 32
	/**
20 33
	 * Crea un nuevo LayerPositionEvent.
21 34
	 *
......
23 36
	 * @param oldp Antigua posici?n.
24 37
	 * @param newp Nueva posici?n.
25 38
	 */
26
	public LayerPositionEvent(FLayer lyr, int oldp, int newp) {
27
		super(lyr);
39
	private LayerPositionEvent(FLayer lyr, int oldp, int newp, int eventType) {
40
		super(lyr, eventType);
28 41
		oldPos = oldp;
29 42
		newPos = newp;
30 43
	}

Also available in: Unified diff