View Javadoc

1   package de.desy.acop.video.displayer;
2   
3   /**
4    * To resize an image in the ImageDisplayer pane
5    * 
6    * @author mdavid
7    * 
8    */
9   public enum ImageZoom {
10  	/**
11  	 * The image automatically resizes to fit the dimensions of the ImageDisplayer
12  	 */
13  	AUTO("Auto"),
14  
15  	/**
16  	 * Zoom at 50%
17  	 */
18  	HALF("50%"),
19  
20  	/**
21  	 * Zoom at 100%
22  	 */
23  	NORMAL("100%"),
24  
25  	/**
26  	 * Zoom at 200%
27  	 */
28  	DOUBLE("200%");
29  
30  	private String descr;
31  
32  	/**
33  	 * Sets a description of the zoom mode
34  	 * 
35  	 * @param description
36  	 */
37  	private ImageZoom(String description) {
38  		descr = description;
39  	}
40  
41  	/**
42  	 * @return Description of the zoom mode
43  	 */
44  	public String getDescription() {
45  		return descr;
46  	}
47  }