public class Background extends AttributeSubSet
Modifier and Type | Class and Description |
---|---|
static class |
Background.Attachment |
static class |
Background.Repeat |
Modifier and Type | Field and Description |
---|---|
static Background.Attachment |
ATTACHMENT_FIXED |
static Background.Attachment |
ATTACHMENT_SCROLL |
static java.lang.String[] |
KEY_SET |
static Background.Repeat |
REPEAT_NONE |
static Background.Repeat |
REPEAT_ONLY_X |
static Background.Repeat |
REPEAT_ONLY_y |
static Background.Repeat |
REPEAT_X_AND_Y |
Constructor and Description |
---|
Background() |
Background(java.lang.String imageUrl,
Measure posHor,
Measure posVer) |
Modifier and Type | Method and Description |
---|---|
Background.Attachment |
getAttachment()
Gets the attachment.
|
java.lang.Object |
getAttribute(int keyIdx) |
java.awt.Color |
getColor()
Gets the color.
|
Measure |
getHorizontalPos()
Gets the horizontal position.
|
java.lang.String |
getImage()
Gets the url of the image.
|
Background.Repeat |
getRepeatMode()
Gets the repeat mode.
|
Measure |
getVerticalPos()
Gets the vertical position.
|
void |
setAttachment(Background.Attachment a)
Sets the attachment, can be fixed or scroll.
|
void |
setColor(java.awt.Color value)
Sets the color.
|
void |
setHorizontalPos(Measure value)
Sets the horizontal position.
|
void |
setImage(java.lang.String value)
Sets an image-url.
|
void |
setRepeatMode(Background.Repeat value)
Sets the repeat mode.
|
void |
setVerticalPos(Measure value)
Sets the vertical position.
|
addDefinedAttributes, applyAttributes, clone, isMutable, makeImmutable, setAttribute
public static final Background.Attachment ATTACHMENT_SCROLL
public static final Background.Attachment ATTACHMENT_FIXED
public static final Background.Repeat REPEAT_X_AND_Y
public static final Background.Repeat REPEAT_ONLY_X
public static final Background.Repeat REPEAT_ONLY_y
public static final Background.Repeat REPEAT_NONE
public static final java.lang.String[] KEY_SET
public void setAttachment(Background.Attachment a)
a
- Attachment (See Background.ATTACHMENT_*).public Background.Attachment getAttachment()
public void setColor(java.awt.Color value)
value
- Color.public java.awt.Color getColor()
public void setImage(java.lang.String value)
value
- URL of image.public java.lang.String getImage()
public void setRepeatMode(Background.Repeat value)
value
- Repeat mode (see Background.REPEAT_*)public Background.Repeat getRepeatMode()
public void setHorizontalPos(Measure value)
value
- Horizontal position.public Measure getHorizontalPos()
public void setVerticalPos(Measure value)
value
- Vertical Position.public Measure getVerticalPos()
public java.lang.Object getAttribute(int keyIdx)
getAttribute
in class AttributeSubSet
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.