public class BackgroundSize extends Object
| Constructor and Description |
|---|
BackgroundSize() |
| Modifier and Type | Method and Description |
|---|---|
UnitValue |
getBackgroundHeightSize()
Gets the background height property of the image.
|
UnitValue |
getBackgroundWidthSize()
Gets the background width property of the image.
|
boolean |
isContain()
Returns value of the "contain" property.
|
boolean |
isCover()
Returns value of the "cover" property.
|
boolean |
isSpecificSize()
Returns is size has specific property.
|
void |
setBackgroundSizeToContain()
Clears all size values and sets the "contain" property
true. |
void |
setBackgroundSizeToCover()
Clears all size values and sets the "cover" property
true. |
void |
setBackgroundSizeToValues(UnitValue width,
UnitValue height)
Clears all current properties and sets new width and height values.
|
public void setBackgroundSizeToValues(UnitValue width, UnitValue height)
public void setBackgroundSizeToContain()
true.containpublic void setBackgroundSizeToCover()
true.coverpublic UnitValue getBackgroundWidthSize()
UnitValue width for this image.backgroundWidthSizepublic UnitValue getBackgroundHeightSize()
UnitValue height for this image.backgroundHeightSizepublic boolean isSpecificSize()
true if size set to "contain" or "cover", otherwise false.public boolean isContain()
true if property "contain" is set to the size, otherwise false.containpublic boolean isCover()
true if property "cover" is set to the size, otherwise false.coverCopyright © 1998–2020 iText Group NV. All rights reserved.