public final class PDTransition extends PDDictionaryWrapper
Constructor and Description |
---|
PDTransition()
creates a new transition with default "replace" style
PDTransitionStyle.R |
PDTransition(COSDictionary dictionary)
creates a new transition for an existing dictionary
|
PDTransition(PDTransitionStyle style)
creates a new transition with the given style.
|
Modifier and Type | Method and Description |
---|---|
String |
getDimension() |
COSBase |
getDirection() |
float |
getDuration() |
float |
getFlyScale() |
String |
getMotion() |
String |
getStyle() |
boolean |
isFlyAreaOpaque() |
void |
setDimension(PDTransitionDimension dimension)
Sets the dimension in which the specified transition effect shall occur.
|
void |
setDirection(PDTransitionDirection direction)
Sets the direction in which the specified transition effect shall moves.
|
void |
setDuration(float duration) |
void |
setFlyAreaOpaque(boolean opaque) |
void |
setFlyScale(float scale) |
void |
setMotion(PDTransitionMotion motion)
Sets the direction of motion for the specified transition effect.
|
equals, getCOSObject, hashCode
public PDTransition()
PDTransitionStyle.R
public PDTransition(PDTransitionStyle style)
style
- the style to be used.public PDTransition(COSDictionary dictionary)
dictionary
- the dictionary to be used.public String getStyle()
PDTransitionStyle.valueOf(String)
public String getDimension()
PDTransitionDimension.H
if no dimension is found.PDTransitionDimension
public void setDimension(PDTransitionDimension dimension)
PDTransitionStyle.Split
and PDTransitionStyle.Blinds
.dimension
- the dimension.public String getMotion()
PDTransitionMotion.I
if no motion is found.PDTransitionMotion
public void setMotion(PDTransitionMotion motion)
PDTransitionStyle.Split
,
PDTransitionStyle.Blinds
and PDTransitionStyle.Fly
.motion
- the motion for the specified effect.public COSBase getDirection()
COSInteger
or COSName.NONE
. Default to COSInteger.ZERO
PDTransitionDirection
public void setDirection(PDTransitionDirection direction)
PDTransitionStyle.Wipe
,
PDTransitionStyle.Glitter
, PDTransitionStyle.Fly
, PDTransitionStyle.Cover
,
PDTransitionStyle.Uncover
and PDTransitionStyle.Push
.direction
- the direction in which the specified transition effect shall move.public float getDuration()
public void setDuration(float duration)
duration
- The duration of the transition effect, in seconds.public float getFlyScale()
PDTransitionStyle.Fly
.public void setFlyScale(float scale)
scale
- The starting or ending scale at which the changes shall be drawn. Only for
PDTransitionStyle.Fly
.public boolean isFlyAreaOpaque()
PDTransitionStyle.Fly
.public void setFlyAreaOpaque(boolean opaque)
opaque
- If true, the area that shall be flown in is rectangular and opaque. Only for
PDTransitionStyle.Fly
.Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.