svn-gvsig-desktop / trunk / libraries / libFMap / src / com / iver / cit / gvsig / fmap / ProjectionEvent.java @ 12148
History | View | Annotate | Download (650 Bytes)
1 | 5942 | jmvivo | package com.iver.cit.gvsig.fmap; |
---|---|---|---|
2 | |||
3 | import org.cresques.cts.IProjection; |
||
4 | |||
5 | public class ProjectionEvent extends FMapEvent { |
||
6 | private IProjection newProyection;
|
||
7 | private static final int PROJECTION_EVENT = 0; |
||
8 | |||
9 | public static ProjectionEvent createProjectionEvent(IProjection proj){ |
||
10 | return new ProjectionEvent(proj, PROJECTION_EVENT); |
||
11 | } |
||
12 | /**
|
||
13 | * Crea un nuevo ExtentEvent.
|
||
14 | *
|
||
15 | * @param r Extent.
|
||
16 | */
|
||
17 | private ProjectionEvent(IProjection proj, int eventType) { |
||
18 | setEventType(eventType); |
||
19 | newProyection = proj; |
||
20 | } |
||
21 | |||
22 | /**
|
||
23 | * Devuelve el nuevo extent.
|
||
24 | *
|
||
25 | * @return Extent.
|
||
26 | */
|
||
27 | public IProjection getNewProjection() {
|
||
28 | return newProyection;
|
||
29 | } |
||
30 | } |