PDTransition extends PDDictionaryWrapper { public String getStyle() { return getCOSObject().getNameAsString(COSName.S, PDTransitionStyle.R.name()); } PDTransition();  PDTransition(PDTransitionStyle style);  PDTransition(COSDictionary dictionary); String getStyle(); String getDimension(); void setDimension(PDTransitionDimension dimension); String getMotion(); void setMotion(PDTransitionMotion motion); COSBase getDirection(); void setDirection(PDTransitionDirection direction); float getDuration(); void setDuration(float duration); float getFlyScale(); void setFlyScale(float scale); boolean isFlyAreaOpaque(); void setFlyAreaOpaque(boolean opaque);  }
@Test public void defaultStyle() { PDTransition transition = new PDTransition(); assertEquals(COSName.TRANS, transition.getCOSObject().getCOSName(COSName.TYPE)); assertEquals(PDTransitionStyle.R.name(), transition.getStyle()); }
@Test public void getStyle() { PDTransition transition = new PDTransition(PDTransitionStyle.Fade); assertEquals(COSName.TRANS, transition.getCOSObject().getCOSName(COSName.TYPE)); assertEquals(PDTransitionStyle.Fade.name(), transition.getStyle()); }