|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sejda.model.rotation.PageRotation
public final class PageRotation
Model representing a rotation to be applied to a single page or to a class of pages (even, odd, all)
| Method Summary | |
|---|---|
boolean |
accept(int page)
|
static PageRotation |
createMultiplePagesRotation(Rotation rotation,
RotationType rotationType)
Creates a non single page rotation |
static PageRotation |
createSinglePageRotation(int pageNumber,
Rotation rotation)
Creates a single page rotation for the given pageNumber and the given Rotation |
boolean |
equals(Object other)
|
int |
getPageNumber()
|
Rotation |
getRotation()
|
RotationType |
getRotationType()
|
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public int getPageNumber()
public Rotation getRotation()
public RotationType getRotationType()
public boolean accept(int page)
page -
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
public static PageRotation createSinglePageRotation(int pageNumber,
Rotation rotation)
Rotation
pageNumber - rotation -
IllegalStateException - if the page number is not positive.
public static PageRotation createMultiplePagesRotation(Rotation rotation,
RotationType rotationType)
rotation - rotationType -
IllegalStateException - if the rotation type is single page rotation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||