org.netbeans.api.visual 2.28.1

org.netbeans.api.visual.print
Enum ScenePrinter.ScaleStrategy

java.lang.Object
  extended by java.lang.Enum<ScenePrinter.ScaleStrategy>
      extended by org.netbeans.api.visual.print.ScenePrinter.ScaleStrategy
All Implemented Interfaces:
Serializable, Comparable<ScenePrinter.ScaleStrategy>
Enclosing class:
ScenePrinter

public static enum ScenePrinter.ScaleStrategy
extends Enum<ScenePrinter.ScaleStrategy>

Scaling strategies to be used for printing a scene.


Enum Constant Summary
NO_SCALING
          Print the Scene exactly as it would be if not scaled at all.
SCALE_CURRENT_ZOOM
          Scale the printed scene to exactly the same scale level as the supplied scene.
SCALE_PERCENT
          Scale the printed scene by a supplied percent.
SCALE_TO_FIT
          Scale the printed scene to fit on a single page
SCALE_TO_FIT_X
          Determine the scale percentage necessay to fit on the horizontal page.
SCALE_TO_FIT_Y
          Determine the scale percentage necessay to fit on the vertical page.
 
Method Summary
static ScenePrinter.ScaleStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ScenePrinter.ScaleStrategy[] 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

SCALE_CURRENT_ZOOM

public static final ScenePrinter.ScaleStrategy SCALE_CURRENT_ZOOM
Scale the printed scene to exactly the same scale level as the supplied scene.


SCALE_PERCENT

public static final ScenePrinter.ScaleStrategy SCALE_PERCENT
Scale the printed scene by a supplied percent. This will scale the X and Y dimensions equally.


SCALE_TO_FIT

public static final ScenePrinter.ScaleStrategy SCALE_TO_FIT
Scale the printed scene to fit on a single page


SCALE_TO_FIT_X

public static final ScenePrinter.ScaleStrategy SCALE_TO_FIT_X
Determine the scale percentage necessay to fit on the horizontal page. The vertical is scaled equally but no garuntees are made on the page fit.


SCALE_TO_FIT_Y

public static final ScenePrinter.ScaleStrategy SCALE_TO_FIT_Y
Determine the scale percentage necessay to fit on the vertical page. The horizontal is scaled equally but no garuntees are made on the page fit.


NO_SCALING

public static final ScenePrinter.ScaleStrategy NO_SCALING
Print the Scene exactly as it would be if not scaled at all. Note that this is different from SCALE_CURRENT_ZOOM where the page is printed as shown visually, including the zoom.

Method Detail

values

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

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

valueOf

public static ScenePrinter.ScaleStrategy 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.28.1

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