@Test public void testInitTransitionMotionBoxInward() { PDTransition to = new PDTransition(); TransitionUtils.initTransitionMotion(PdfPageTransition.newInstance(PdfPageTransitionStyle.BOX_INWARD, 2, 2), to); assertEquals("I", to.getMotion()); }
public static void initTransitionMotion(PdfPageTransition from, PDTransition to) { switch (from.getStyle()) { case BOX_INWARD: case SPLIT_HORIZONTAL_INWARD: case SPLIT_VERTICAL_INWARD: to.setMotion(PDTransitionMotion.I); break; case BOX_OUTWARD: case SPLIT_HORIZONTAL_OUTWARD: case SPLIT_VERTICAL_OUTWARD: to.setMotion(PDTransitionMotion.O); break; } }
TransitionUtils { public static void initTransitionMotion(PdfPageTransition from, PDTransition to) { switch (from.getStyle()) { case BOX_INWARD: case SPLIT_HORIZONTAL_INWARD: case SPLIT_VERTICAL_INWARD: to.setMotion(PDTransitionMotion.I); break; case BOX_OUTWARD: case SPLIT_HORIZONTAL_OUTWARD: case SPLIT_VERTICAL_OUTWARD: to.setMotion(PDTransitionMotion.O); break; } } }
TransitionUtils { public static void initTransitionMotion(PdfPageTransition from, PDTransition to) { switch (from.getStyle()) { case BOX_INWARD: case SPLIT_HORIZONTAL_INWARD: case SPLIT_VERTICAL_INWARD: to.setMotion(PDTransitionMotion.I); break; case BOX_OUTWARD: case SPLIT_HORIZONTAL_OUTWARD: case SPLIT_VERTICAL_OUTWARD: to.setMotion(PDTransitionMotion.O); break; } } private  TransitionUtils(); }
TransitionUtils { public static void initTransitionMotion(PdfPageTransition from, PDTransition to) { switch (from.getStyle()) { case BOX_INWARD: case SPLIT_HORIZONTAL_INWARD: case SPLIT_VERTICAL_INWARD: to.setMotion(PDTransitionMotion.I); break; case BOX_OUTWARD: case SPLIT_HORIZONTAL_OUTWARD: case SPLIT_VERTICAL_OUTWARD: to.setMotion(PDTransitionMotion.O); break; } } private  TransitionUtils(); static PDTransitionStyle getTransition(PdfPageTransitionStyle transition); static void initTransitionDimension(PdfPageTransition from, PDTransition to); static void initTransitionMotion(PdfPageTransition from, PDTransition to); static void initTransitionDirection(PdfPageTransition from, PDTransition to); }
TransitionUtils { public static void initTransitionMotion(PdfPageTransition from, PDTransition to) { switch (from.getStyle()) { case BOX_INWARD: case SPLIT_HORIZONTAL_INWARD: case SPLIT_VERTICAL_INWARD: to.setMotion(PDTransitionMotion.I); break; case BOX_OUTWARD: case SPLIT_HORIZONTAL_OUTWARD: case SPLIT_VERTICAL_OUTWARD: to.setMotion(PDTransitionMotion.O); break; } } private  TransitionUtils(); static PDTransitionStyle getTransition(PdfPageTransitionStyle transition); static void initTransitionDimension(PdfPageTransition from, PDTransition to); static void initTransitionMotion(PdfPageTransition from, PDTransition to); static void initTransitionDirection(PdfPageTransition from, PDTransition to);  }