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 axes
public 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 axis
yAxisRepeat
- the repeat value that will be set for for Y axis
public 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
value
public boolean isNoRepeatOnYAxis()
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT
value is set on Y axis or not.
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT
value
public Point prepareRectangleToDrawingAndGetWhitespace(Rectangle imageRectangle, Rectangle backgroundArea, BackgroundSize backgroundSize)
BackgroundRepeat.BackgroundRepeatValue
values for the axes.
imageRectangle
- the image rectangle which will be changed
backgroundArea
- the background available area
backgroundSize
- the image background size property
Copyright © 1998–2022 iText Group NV. All rights reserved.