public class BackgroundRepeat extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BackgroundRepeat.BackgroundRepeatValue
Defines all possible background repeat values for one axis.
|
| Constructor and Description |
|---|
BackgroundRepeat()
Creates a new
BackgroundRepeat instance. |
BackgroundRepeat(BackgroundRepeat.BackgroundRepeatValue repeat)
Creates a new
BackgroundRepeat instance based on one BackgroundRepeat instance. |
BackgroundRepeat(BackgroundRepeat.BackgroundRepeatValue xAxisRepeat,
BackgroundRepeat.BackgroundRepeatValue yAxisRepeat)
Creates a new
BackgroundRepeat instance based on two BackgroundRepeat instance. |
| Modifier and Type | Method and Description |
|---|---|
BackgroundRepeat.BackgroundRepeatValue |
getXAxisRepeat()
Gets the
BackgroundRepeat.BackgroundRepeatValue value for X axis. |
BackgroundRepeat.BackgroundRepeatValue |
getYAxisRepeat()
Gets the
BackgroundRepeat.BackgroundRepeatValue value for Y axis. |
boolean |
isNoRepeatOnXAxis()
Checks whether the
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT value is set on X axis or not. |
boolean |
isNoRepeatOnYAxis()
Checks whether the
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT value is set on Y axis or not. |
Point |
prepareRectangleToDrawingAndGetWhitespace(Rectangle imageRectangle,
Rectangle backgroundArea,
BackgroundSize backgroundSize)
Prepares the image rectangle for drawing.
|
public BackgroundRepeat()
BackgroundRepeat instance.
The axis will have the value BackgroundRepeat.BackgroundRepeatValue.REPEAT.public BackgroundRepeat(BackgroundRepeat.BackgroundRepeatValue repeat)
BackgroundRepeat instance based on one BackgroundRepeat instance.repeat - the repeat value that will be set for for both axespublic BackgroundRepeat(BackgroundRepeat.BackgroundRepeatValue xAxisRepeat, BackgroundRepeat.BackgroundRepeatValue yAxisRepeat)
BackgroundRepeat instance based on two BackgroundRepeat instance.xAxisRepeat - the repeat value that will be set for for X axisyAxisRepeat - the repeat value that will be set for for Y axispublic BackgroundRepeat.BackgroundRepeatValue getXAxisRepeat()
BackgroundRepeat.BackgroundRepeatValue value for X axis.public BackgroundRepeat.BackgroundRepeatValue getYAxisRepeat()
BackgroundRepeat.BackgroundRepeatValue value for Y axis.public boolean isNoRepeatOnXAxis()
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT value is set on X axis or not.BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT valuepublic boolean isNoRepeatOnYAxis()
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT value is set on Y axis or not.BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT valuepublic Point prepareRectangleToDrawingAndGetWhitespace(Rectangle imageRectangle, Rectangle backgroundArea, BackgroundSize backgroundSize)
BackgroundRepeat.BackgroundRepeatValue values for the axes.imageRectangle - the image rectangle which will be changedbackgroundArea - the background available areabackgroundSize - the image background size propertyCopyright © 1998–2020 iText Group NV. All rights reserved.