Revision 20098 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/ExtentEvent.java

View differences:

ExtentEvent.java
44 44

  
45 45

  
46 46
/**
47
 * <p>The class <code>ExtentEvent</code> stores all necessary information
48
 * in relation with an event associated to an extent
47
 * <p>Event produced when the adjusted extent of the view port has changed.</p>
49 48
 *
50
 * @see FMapEvent
51 49
 * @author Vicente Caballero Navarro
52 50
 */
53 51
public class ExtentEvent extends FMapEvent {
52
	/**
53
	 * <p>Reference to the new adjusted extent.</p>
54
	 */
54 55
	private Rectangle2D newExtent;
56
	
57
	/**
58
	 * <p>Identifier of this kind of event.</p>
59
	 */
55 60
	private static final int EXTENT_EVENT = 0;
56 61

  
62
	/**
63
	 * <p>Returns a new extent event.</p>
64
	 * 
65
	 * @param c the new adjusted extent
66
	 *
67
	 * @return a new extent event
68
	 */
57 69
	public static ExtentEvent createExtentEvent(Rectangle2D r){
58 70
		return new ExtentEvent(r, EXTENT_EVENT);
59 71
	}
60 72
	
61 73
	/**
62
	 * Constructor method.Creates a new ExtentEvent.
74
	 * <p>Creates a new extent event.</p>
63 75
	 *
64
	 * @param r Extent.
76
	 * @param c the new adjusted extent
77
	 * @param eventType identifier of this kind of event
65 78
	 */
66 79
	private ExtentEvent(Rectangle2D r, int eventType) {
67 80
		setEventType(eventType);
......
69 82
	}
70 83

  
71 84
	/**
72
	 * Returns the new extent.
85
	 * <p>Gets the new adjusted event.</p>
73 86
	 *
74
	 * @return Extent.
87
	 * @return the new adjusted extent
75 88
	 */
76 89
	public Rectangle2D getNewExtent() {
77 90
		return newExtent;

Also available in: Unified diff