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