ca.sqlpower.wabit.report
Enum Page.PageOrientation

java.lang.Object
  extended by java.lang.Enum<Page.PageOrientation>
      extended by ca.sqlpower.wabit.report.Page.PageOrientation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Page.PageOrientation>
Enclosing class:
Page

public static enum Page.PageOrientation
extends java.lang.Enum<Page.PageOrientation>

Indicates the transformation that should be applied when this page is rendered. Portrait is normal (the identity transform), landscape is rotated 90 degrees clockwise, and reverse landscape is rotated 90 degrees counterclockwise.

The orientation doesn't affect what width and height the page reports having; it simply prescribes which direction should be "up" for rendered content.


Enum Constant Summary
LANDSCAPE
           
PORTRAIT
           
REVERSE_LANDSCAPE
           
 
Method Summary
static Page.PageOrientation forPrintApiCode(int apiCode)
           
 int getPrintApiCode()
          Returns the correct integer code for this orientation in the Java Print API.
static Page.PageOrientation valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Page.PageOrientation[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PORTRAIT

public static final Page.PageOrientation PORTRAIT

LANDSCAPE

public static final Page.PageOrientation LANDSCAPE

REVERSE_LANDSCAPE

public static final Page.PageOrientation REVERSE_LANDSCAPE
Method Detail

values

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

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

valueOf

public static Page.PageOrientation 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

getPrintApiCode

public int getPrintApiCode()
Returns the correct integer code for this orientation in the Java Print API.


forPrintApiCode

public static Page.PageOrientation forPrintApiCode(int apiCode)


Copyright © 2009. All Rights Reserved.