public class Background extends StyleElement
Modifier and Type | Class and Description |
---|---|
static class |
Background.Attachment
The background-attachment property sets whether a background image is
fixed or scrolls with the rest of the page.
|
static class |
Background.Repeat
The background-repeat property sets if/how a background image will be
repeated.
|
Constructor and Description |
---|
Background() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
draw()
All descendant have to implement how to draw it
|
Background.Attachment |
getAttachment() |
Color |
getColor() |
protected StyleElementType |
getElementType() |
java.lang.String |
getImage() |
BackgroundPosition |
getPosition() |
Background.Repeat |
getRepeat() |
Background |
removePosition() |
Background |
setAttachment(Background.Attachment attachment) |
Background |
setColor(Color color) |
Background |
setColor(ColorName name) |
Background |
setImage(java.lang.String image) |
Background |
setPosition(BackgroundPosition position) |
Background |
setRepeat(Background.Repeat repeat) |
drawClass, drawScript, getRoot, setRoot, toString
protected StyleElementType getElementType()
getElementType
in class StyleElement
protected java.lang.String draw()
StyleElement
draw
in class StyleElement
public Background.Attachment getAttachment()
public Color getColor()
public java.lang.String getImage()
public BackgroundPosition getPosition()
public Background.Repeat getRepeat()
public Background setAttachment(Background.Attachment attachment)
attachment
- the attachment to setpublic Background setColor(Color color)
color
- the color to setpublic Background setColor(ColorName name)
name
- the color name to setpublic Background setImage(java.lang.String image)
image
- the image to setpublic Background setPosition(BackgroundPosition position)
position
- the position to setpublic Background removePosition()
public Background setRepeat(Background.Repeat repeat)
repeat
- the repeat to set