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

View differences:

ColorEvent.java
43 43
import java.awt.Color;
44 44

  
45 45
/**
46
 * <p>The class <code>ColorEvent</code> stores all necessary information of an event 
47
 * produced on a layer by a color change.</p>
48
 * 
49
 * @see FMapEvent
46
 * <p>Event produced when changes the background color of the <i>view port</i>.</p>
47
 *
50 48
 * @author Vicente Caballero Navarro
51 49
 */
52 50
public class ColorEvent extends FMapEvent {
51
	/**
52
	 * <p>Identifier of this kind of event.</p>
53
	 */
53 54
	private static final int COLOR_EVENT = 0;
54 55
	
56
	/**
57
	 * <p>Reference to the new color</p> 
58
	 */
55 59
	private Color color;
60

  
56 61
	/**
57
	 * Constructor method
58
	 * @param c Color
59
	 * @return
62
	 * <p>Returns a new color event.</p>
63
	 * 
64
	 * @param c the new color
65
	 *
66
	 * @return a new color event
60 67
	 */
61 68
	public static ColorEvent createColorEvent(Color c){
62 69
		return new ColorEvent(c, COLOR_EVENT);
63 70
	}
64 71
	
65 72
	/**
66
	 * Constructor method.
73
	 * <p>Creates a new color event.</p>
67 74
	 *
68
	 * @param c Color.
75
	 * @param c the new color
76
	 * @param eventType identifier of this kind of event
69 77
	 */
70 78
	private ColorEvent(Color c, int eventType) {
71 79
		color = c;
......
73 81
	}
74 82

  
75 83
	/**
76
	 * Returns a new color.
84
	 * <p>Gets the new color.</p>
77 85
	 *
78
	 * @return New Color.
86
	 * @return the new color
79 87
	 */
80 88
	public Color getNewColor() {
81 89
		return color;

Also available in: Unified diff