public final class BackgroundPosition extends java.lang.Object implements StyleElement
| Modifier and Type | Class and Description |
|---|---|
static class |
BackgroundPosition.TypeX
The background-position X property sets the starting position of a
background image
|
static class |
BackgroundPosition.TypeY
The background-position Y property sets the starting position of a
background image
|
| Constructor and Description |
|---|
BackgroundPosition()
Creates "background-position: initial"
|
BackgroundPosition(BackgroundPosition.TypeX typeX,
BackgroundPosition.TypeY typeY)
Creates background position with one or both types.
|
BackgroundPosition(BackgroundPosition.TypeX typeX,
Length y)
Creates background position with type x or/and y length.
|
BackgroundPosition(Length x,
BackgroundPosition.TypeY typeY)
Creates background position with type y or/and x length.
|
BackgroundPosition(Length x,
Length y)
Creates background position with one or both lengths.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
draw()
All descendant have to implement how to draw it
|
BackgroundPosition.TypeX |
getTypeX() |
BackgroundPosition.TypeY |
getTypeY() |
Length |
getX() |
Length |
getY() |
public BackgroundPosition()
public BackgroundPosition(BackgroundPosition.TypeX typeX, BackgroundPosition.TypeY typeY)
typeX - position type BackgroundPosition.TypeXtypeY - position type BackgroundPosition.TypeYpublic BackgroundPosition(Length x, Length y)
public BackgroundPosition(BackgroundPosition.TypeX typeX, Length y)
typeX - position type BackgroundPosition.TypeXy - position y with Lengthpublic BackgroundPosition(Length x, BackgroundPosition.TypeY typeY)
x - position x with LengthtypeY - position type BackgroundPosition.TypeYpublic BackgroundPosition.TypeX getTypeX()
public BackgroundPosition.TypeY getTypeY()
public Length getX()
public Length getY()
public java.lang.String draw()
StyleElementdraw in interface StyleElement