DESY ACOP Beans Home

de.desy.acop.video.displayer
Enum ImageZoom

java.lang.Object
  extended by java.lang.Enum<ImageZoom>
      extended by de.desy.acop.video.displayer.ImageZoom
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ImageZoom>

public enum ImageZoom
extends java.lang.Enum<ImageZoom>

To resize an image in the ImageDisplayer pane

Author:
mdavid

Enum Constant Summary
AUTO
          The image automatically resizes to fit the dimensions of the ImageDisplayer
DOUBLE
          Zoom at 200%
HALF
          Zoom at 50%
NORMAL
          Zoom at 100%
 
Method Summary
 java.lang.String getDescription()
           
static ImageZoom valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ImageZoom[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTO

public static final ImageZoom AUTO
The image automatically resizes to fit the dimensions of the ImageDisplayer


HALF

public static final ImageZoom HALF
Zoom at 50%


NORMAL

public static final ImageZoom NORMAL
Zoom at 100%


DOUBLE

public static final ImageZoom DOUBLE
Zoom at 200%

Method Detail

values

public static ImageZoom[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ImageZoom c : ImageZoom.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ImageZoom valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDescription

public java.lang.String getDescription()
Returns:
Description of the zoom mode


Copyright © 2010. All Rights Reserved.