Package net.webpdf.wsclient.openapi
Class MetadataTransition
- java.lang.Object
-
- net.webpdf.wsclient.openapi.MetadataTransition
-
public class MetadataTransition extends Object
Defines a page transition for the full screen mode of the document.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataTransition.DirectionEnumThe direction of the transition animation (provided that it can be applied to the animation)static classMetadataTransition.StyleEnumThe style of transition animation
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTO_SCROLLstatic StringJSON_PROPERTY_DIRECTIONstatic StringJSON_PROPERTY_DURATIONstatic StringJSON_PROPERTY_FLY_AREA_OPAQUEstatic StringJSON_PROPERTY_FLY_SCALEstatic StringJSON_PROPERTY_OBJECT_KEYstatic StringJSON_PROPERTY_PAGEstatic StringJSON_PROPERTY_STYLE
-
Constructor Summary
Constructors Constructor Description MetadataTransition()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadataTransitionautoScroll(Boolean autoScroll)MetadataTransitiondirection(MetadataTransition.DirectionEnum direction)MetadataTransitionduration(Float duration)booleanequals(Object o)MetadataTransitionflyAreaOpaque(Boolean flyAreaOpaque)MetadataTransitionflyScale(Float flyScale)@Nullable BooleangetAutoScroll()Whether or not the page is automatically flipped after a short period.@Nullable MetadataTransition.DirectionEnumgetDirection()The direction of the transition animation (provided that it can be applied to the animation)@Nullable FloatgetDuration()Selects the duration in seconds, that the animation shall be played for.@Nullable BooleangetFlyAreaOpaque()For a fly animation, this determines whether or not the opacity shall stay constantly opaque during the animation.@Nullable FloatgetFlyScale()For a fly animation, this determines the initial scale of the page, when flying in.@Nullable StringgetObjectKey()The object ID of the transition definition.@Nullable IntegergetPage()The page a transition shall be defined for.@Nullable MetadataTransition.StyleEnumgetStyle()The style of transition animationinthashCode()MetadataTransitionobjectKey(String objectKey)MetadataTransitionpage(Integer page)voidsetAutoScroll(Boolean autoScroll)voidsetDirection(MetadataTransition.DirectionEnum direction)voidsetDuration(Float duration)voidsetFlyAreaOpaque(Boolean flyAreaOpaque)voidsetFlyScale(Float flyScale)voidsetObjectKey(String objectKey)voidsetPage(Integer page)voidsetStyle(MetadataTransition.StyleEnum style)MetadataTransitionstyle(MetadataTransition.StyleEnum style)StringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTO_SCROLL
public static final String JSON_PROPERTY_AUTO_SCROLL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DIRECTION
public static final String JSON_PROPERTY_DIRECTION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DURATION
public static final String JSON_PROPERTY_DURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FLY_AREA_OPAQUE
public static final String JSON_PROPERTY_FLY_AREA_OPAQUE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FLY_SCALE
public static final String JSON_PROPERTY_FLY_SCALE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_OBJECT_KEY
public static final String JSON_PROPERTY_OBJECT_KEY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAGE
public static final String JSON_PROPERTY_PAGE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_STYLE
public static final String JSON_PROPERTY_STYLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
autoScroll
public MetadataTransition autoScroll(Boolean autoScroll)
-
getAutoScroll
@Nullable public @Nullable Boolean getAutoScroll()
Whether or not the page is automatically flipped after a short period.- Returns:
- autoScroll
-
setAutoScroll
public void setAutoScroll(Boolean autoScroll)
-
direction
public MetadataTransition direction(MetadataTransition.DirectionEnum direction)
-
getDirection
@Nullable public @Nullable MetadataTransition.DirectionEnum getDirection()
The direction of the transition animation (provided that it can be applied to the animation). * leftToRight = From left to right * bottomToTop = From bottom to top * rightToLeft = From right to left * topToBottom = From top to bottom * topLeftToBottomRight = From top left to bottom right * none = Use the default value for the animation- Returns:
- direction
-
setDirection
public void setDirection(MetadataTransition.DirectionEnum direction)
-
duration
public MetadataTransition duration(Float duration)
-
getDuration
@Nullable public @Nullable Float getDuration()
Selects the duration in seconds, that the animation shall be played for. minimum: 0- Returns:
- duration
-
setDuration
public void setDuration(Float duration)
-
flyAreaOpaque
public MetadataTransition flyAreaOpaque(Boolean flyAreaOpaque)
-
getFlyAreaOpaque
@Nullable public @Nullable Boolean getFlyAreaOpaque()
For a fly animation, this determines whether or not the opacity shall stay constantly opaque during the animation.- Returns:
- flyAreaOpaque
-
setFlyAreaOpaque
public void setFlyAreaOpaque(Boolean flyAreaOpaque)
-
flyScale
public MetadataTransition flyScale(Float flyScale)
-
getFlyScale
@Nullable public @Nullable Float getFlyScale()
For a fly animation, this determines the initial scale of the page, when flying in.- Returns:
- flyScale
-
setFlyScale
public void setFlyScale(Float flyScale)
-
objectKey
public MetadataTransition objectKey(String objectKey)
-
getObjectKey
@Nullable public @Nullable String getObjectKey()
The object ID of the transition definition. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.- Returns:
- objectKey
-
setObjectKey
public void setObjectKey(String objectKey)
-
page
public MetadataTransition page(Integer page)
-
getPage
@Nullable public @Nullable Integer getPage()
The page a transition shall be defined for. minimum: 0- Returns:
- page
-
setPage
public void setPage(Integer page)
-
style
public MetadataTransition style(MetadataTransition.StyleEnum style)
-
getStyle
@Nullable public @Nullable MetadataTransition.StyleEnum getStyle()
The style of transition animation. * blinds = Crossfades * box = Crossfades in a rectangular pattern * cover = Covers * dissolve = Dissolves * fade = Fades * fly = Page flies in * glitter = Page dissolves and is replaced * push = Page is pushed out * split = Splits page * uncover = Uncovers page * wipe = Wipes page * none = No special effect- Returns:
- style
-
setStyle
public void setStyle(MetadataTransition.StyleEnum style)
-
-