@Test public void backgroundImageWithoutRepeatYTest() throws IOException, InterruptedException { PdfImageXObject xObject = new PdfImageXObject(ImageDataFactory.create(SOURCE_FOLDER + "itis.jpg")); BackgroundImage backgroundImage = new BackgroundImage .Builder().setImage(xObject).setBackgroundRepeat(new BackgroundRepeat(BackgroundRepeatValue.REPEAT, BackgroundRepeatValue.NO_REPEAT)).build(); Assert.assertEquals(BackgroundRepeatValue.REPEAT, backgroundImage.getRepeat().getXAxisRepeat()); Assert.assertEquals(BackgroundRepeatValue.NO_REPEAT, backgroundImage.getRepeat().getYAxisRepeat()); backgroundImageGenericTest("backgroundImageWithoutRepeatY", backgroundImage); }
public BackgroundRepeat getRepeat() { if (repeatX == repeat.isNoRepeatOnXAxis()) { repeat = new BackgroundRepeat(repeatX ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT, repeat.getYAxisRepeat()); } if (repeatY == repeat.isNoRepeatOnYAxis()) { repeat = new BackgroundRepeat(repeat.getXAxisRepeat(), repeatY ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT); } return repeat; }
BackgroundImage { public BackgroundRepeat getRepeat() { if (repeatX == repeat.isNoRepeatOnXAxis()) { repeat = new BackgroundRepeat(repeatX ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT, repeat.getYAxisRepeat()); } if (repeatY == repeat.isNoRepeatOnYAxis()) { repeat = new BackgroundRepeat(repeat.getXAxisRepeat(), repeatY ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT); } return repeat; } }
BackgroundImage { public BackgroundRepeat getRepeat() { if (repeatX == repeat.isNoRepeatOnXAxis()) { repeat = new BackgroundRepeat(repeatX ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT, repeat.getYAxisRepeat()); } if (repeatY == repeat.isNoRepeatOnYAxis()) { repeat = new BackgroundRepeat(repeat.getXAxisRepeat(), repeatY ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT); } return repeat; } BackgroundImage(BackgroundImage backgroundImage); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfImageXObject image); @Deprecated  BackgroundImage(final PdfFormXObject image); @Deprecated  BackgroundImage(final PdfImageXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final PdfFormXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder, final BlendMode blendMode); private  BackgroundImage(PdfXObject image, BackgroundRepeat repeat, BackgroundPosition position,
            BackgroundSize backgroundSize, AbstractLinearGradientBuilder linearGradientBuilder,
            BlendMode blendMode, BackgroundBox clip, BackgroundBox origin); }
BackgroundImage { public BackgroundRepeat getRepeat() { if (repeatX == repeat.isNoRepeatOnXAxis()) { repeat = new BackgroundRepeat(repeatX ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT, repeat.getYAxisRepeat()); } if (repeatY == repeat.isNoRepeatOnYAxis()) { repeat = new BackgroundRepeat(repeat.getXAxisRepeat(), repeatY ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT); } return repeat; } BackgroundImage(BackgroundImage backgroundImage); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfImageXObject image); @Deprecated  BackgroundImage(final PdfFormXObject image); @Deprecated  BackgroundImage(final PdfImageXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final PdfFormXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder, final BlendMode blendMode); private  BackgroundImage(PdfXObject image, BackgroundRepeat repeat, BackgroundPosition position,
            BackgroundSize backgroundSize, AbstractLinearGradientBuilder linearGradientBuilder,
            BlendMode blendMode, BackgroundBox clip, BackgroundBox origin); PdfImageXObject getImage(); PdfFormXObject getForm(); BackgroundPosition getBackgroundPosition(); AbstractLinearGradientBuilder getLinearGradientBuilder(); boolean isBackgroundSpecified(); @Deprecated boolean isRepeatX(); @Deprecated boolean isRepeatY(); BackgroundSize getBackgroundSize(); float getImageWidth(); float getImageHeight(); @Deprecated float getWidth(); @Deprecated float getHeight(); BackgroundRepeat getRepeat(); BlendMode getBlendMode(); BackgroundBox getBackgroundClip(); BackgroundBox getBackgroundOrigin(); }
BackgroundImage { public BackgroundRepeat getRepeat() { if (repeatX == repeat.isNoRepeatOnXAxis()) { repeat = new BackgroundRepeat(repeatX ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT, repeat.getYAxisRepeat()); } if (repeatY == repeat.isNoRepeatOnYAxis()) { repeat = new BackgroundRepeat(repeat.getXAxisRepeat(), repeatY ? BackgroundRepeatValue.REPEAT : BackgroundRepeatValue.NO_REPEAT); } return repeat; } BackgroundImage(BackgroundImage backgroundImage); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfImageXObject image); @Deprecated  BackgroundImage(final PdfFormXObject image); @Deprecated  BackgroundImage(final PdfImageXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final PdfFormXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder, final BlendMode blendMode); private  BackgroundImage(PdfXObject image, BackgroundRepeat repeat, BackgroundPosition position,
            BackgroundSize backgroundSize, AbstractLinearGradientBuilder linearGradientBuilder,
            BlendMode blendMode, BackgroundBox clip, BackgroundBox origin); PdfImageXObject getImage(); PdfFormXObject getForm(); BackgroundPosition getBackgroundPosition(); AbstractLinearGradientBuilder getLinearGradientBuilder(); boolean isBackgroundSpecified(); @Deprecated boolean isRepeatX(); @Deprecated boolean isRepeatY(); BackgroundSize getBackgroundSize(); float getImageWidth(); float getImageHeight(); @Deprecated float getWidth(); @Deprecated float getHeight(); BackgroundRepeat getRepeat(); BlendMode getBlendMode(); BackgroundBox getBackgroundClip(); BackgroundBox getBackgroundOrigin();  }