org.pdfsam.console.business.dto
Class PageRotation

java.lang.Object
  extended by org.pdfsam.console.business.dto.PageRotation
All Implemented Interfaces:
java.io.Serializable

public class PageRotation
extends java.lang.Object
implements java.io.Serializable

Model for a page rotation

Author:
Andrea Vacondio
See Also:
Serialized Form

Field Summary
static int ALL_PAGES
           
static int DEGREES_0
           
static int DEGREES_180
           
static int DEGREES_270
           
static int DEGREES_90
           
static int EVEN_PAGES
           
static int NO_PAGE
           
static int ODD_PAGES
           
static int SINGLE_PAGE
           
 
Constructor Summary
PageRotation()
           
PageRotation(int pageNumber, int degrees)
          type is SINGLE_PAGE
PageRotation(int pageNumber, int degrees, int type)
           
 
Method Summary
 int getDegrees()
           
 int getPageNumber()
           
 int getType()
           
 void setDegrees(int degrees)
           
 void setPageNumber(int pageNumber)
           
 void setType(int type)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEGREES_0

public static final int DEGREES_0
See Also:
Constant Field Values

DEGREES_90

public static final int DEGREES_90
See Also:
Constant Field Values

DEGREES_180

public static final int DEGREES_180
See Also:
Constant Field Values

DEGREES_270

public static final int DEGREES_270
See Also:
Constant Field Values

NO_PAGE

public static final int NO_PAGE
See Also:
Constant Field Values

SINGLE_PAGE

public static final int SINGLE_PAGE
See Also:
Constant Field Values

ODD_PAGES

public static final int ODD_PAGES
See Also:
Constant Field Values

EVEN_PAGES

public static final int EVEN_PAGES
See Also:
Constant Field Values

ALL_PAGES

public static final int ALL_PAGES
See Also:
Constant Field Values
Constructor Detail

PageRotation

public PageRotation()

PageRotation

public PageRotation(int pageNumber,
                    int degrees)
type is SINGLE_PAGE

Parameters:
degrees -
pageNumber -

PageRotation

public PageRotation(int pageNumber,
                    int degrees,
                    int type)
Parameters:
degrees -
pageNumber -
type -
Method Detail

getPageNumber

public int getPageNumber()
Returns:
the pageNumber

setPageNumber

public void setPageNumber(int pageNumber)
Parameters:
pageNumber - the pageNumber to set

getDegrees

public int getDegrees()
Returns:
the degrees

setDegrees

public void setDegrees(int degrees)
Parameters:
degrees - the degrees to set

getType

public int getType()
Returns:
the type

setType

public void setType(int type)
Parameters:
type - the type to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object