public class BackgroundPosition extends Object
Modifier and Type | Class and Description |
---|---|
static class |
BackgroundPosition.PositionX |
static class |
BackgroundPosition.PositionY |
Constructor and Description |
---|
BackgroundPosition()
Creates a new BackgroundPosition instance.
|
Modifier and Type | Method and Description |
---|---|
void |
calculatePositionValues(float fullWidth, float fullHeight, UnitValue outXValue, UnitValue outYValue)
Converts all percentage and enum values to point equivalent.
|
boolean |
equals(Object o) |
BackgroundPosition.PositionX |
getPositionX()
Gets horizontal position.
|
BackgroundPosition.PositionY |
getPositionY()
Gets vertical position.
|
UnitValue |
getXShift()
Gets horizontal shift.
|
UnitValue |
getYShift()
Gets vertical shift.
|
int |
hashCode() |
BackgroundPosition |
setPositionX(BackgroundPosition.PositionX xPosition)
Sets horizontal position.
|
BackgroundPosition |
setPositionY(BackgroundPosition.PositionY yPosition)
Sets vertical position.
|
BackgroundPosition |
setXShift(UnitValue xShift)
Sets horizontal shift.
|
BackgroundPosition |
setYShift(UnitValue yShift)
Sets vertical shift.
|
public BackgroundPosition()
BackgroundPosition
instance. Fills it with default values.
public void calculatePositionValues(float fullWidth, float fullHeight, UnitValue outXValue, UnitValue outYValue)
public BackgroundPosition.PositionX getPositionX()
public BackgroundPosition setPositionX(BackgroundPosition.PositionX xPosition)
xPosition
- position in x-dimension
BackgroundPosition
public BackgroundPosition.PositionY getPositionY()
public BackgroundPosition setPositionY(BackgroundPosition.PositionY yPosition)
yPosition
- position in y-dimension
BackgroundPosition
public UnitValue getXShift()
public BackgroundPosition setXShift(UnitValue xShift)
xShift
- shift in x-dimension from left
BackgroundPosition
public UnitValue getYShift()
public BackgroundPosition setYShift(UnitValue yShift)
yShift
- shift in y-dimension
BackgroundPosition
public boolean equals(Object o)
Copyright © 1998–2023 iText Group NV. All rights reserved.