public class BackgroundSize extends Object
Constructor and Description |
---|
BackgroundSize()
Creates a new BackgroundSize instance.
|
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 BackgroundSize()
BackgroundSize
instance. The "cover" and "contain" properties are not set.
public void setBackgroundSizeToValues(UnitValue width, UnitValue height)
public void setBackgroundSizeToContain()
true
.
contain
public void setBackgroundSizeToCover()
true
.
cover
public UnitValue getBackgroundWidthSize()
UnitValue
width for this image.
backgroundWidthSize
public UnitValue getBackgroundHeightSize()
UnitValue
height for this image.
backgroundHeightSize
public 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.
contain
public boolean isCover()
true
if property "cover" is set to the size, otherwise false.
cover
Copyright © 1998–2022 iText Group NV. All rights reserved.