org.netbeans.api.visual 2.21.1

org.netbeans.api.visual.export
Enum SceneExporter.ZoomType

java.lang.Object
  extended by java.lang.Enum<SceneExporter.ZoomType>
      extended by org.netbeans.api.visual.export.SceneExporter.ZoomType
All Implemented Interfaces:
Serializable, Comparable<SceneExporter.ZoomType>
Enclosing class:
SceneExporter

public static enum SceneExporter.ZoomType
extends Enum<SceneExporter.ZoomType>

This enumeration holds the zooming capabilities that the SceneExporter can export according to.


Enum Constant Summary
ACTUAL_SIZE
          Used to export an image of the scene according to its boundary dimensions.
CURRENT_ZOOM_LEVEL
          Used when the objects in the scene are to be exported into an image scaled the same as the scene.
CUSTOM_SIZE
          Used to set the horizontal and vertical sizes directly.
FIT_IN_WINDOW
          Used when the objects in the scene are to be exported into an image with the identical dimensions of the scene's visual window.
 
Method Summary
static SceneExporter.ZoomType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SceneExporter.ZoomType[] 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

CUSTOM_SIZE

public static final SceneExporter.ZoomType CUSTOM_SIZE
Used to set the horizontal and vertical sizes directly.


FIT_IN_WINDOW

public static final SceneExporter.ZoomType FIT_IN_WINDOW
Used when the objects in the scene are to be exported into an image with the identical dimensions of the scene's visual window.


CURRENT_ZOOM_LEVEL

public static final SceneExporter.ZoomType CURRENT_ZOOM_LEVEL
Used when the objects in the scene are to be exported into an image scaled the same as the scene.


ACTUAL_SIZE

public static final SceneExporter.ZoomType ACTUAL_SIZE
Used to export an image of the scene according to its boundary dimensions.

Method Detail

values

public static SceneExporter.ZoomType[] 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 (SceneExporter.ZoomType c : SceneExporter.ZoomType.values())
    System.out.println(c);

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

valueOf

public static SceneExporter.ZoomType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

org.netbeans.api.visual 2.21.1

Built on December 7 2010.  |  Portions Copyright 1997-2010 Sun Microsystems, Inc. All rights reserved.