public static class Trait.Background extends Object implements Serializable
Constructor and Description |
---|
Background() |
Modifier and Type | Method and Description |
---|---|
Color |
getColor()
Returns the background color.
|
int |
getHoriz()
Returns the horizontal offset for images.
|
org.apache.xmlgraphics.image.loader.ImageInfo |
getImageInfo()
Returns the ImageInfo object representing the background image
|
int |
getImageTargetHeight() |
int |
getImageTargetWidth() |
int |
getRepeat()
Returns the image repetition behaviour for images.
|
String |
getURL()
Returns the URL to the background image
|
int |
getVertical()
Returns the vertical offset for images.
|
void |
setColor(Color color)
Sets the color.
|
void |
setHoriz(int horiz)
Sets the horizontal offset.
|
void |
setImageInfo(org.apache.xmlgraphics.image.loader.ImageInfo info)
Sets the ImageInfo of the image to use as the background image.
|
void |
setImageTargetHeight(int value) |
void |
setImageTargetWidth(int value) |
void |
setRepeat(int repeat)
Sets the image repetition behaviour for images.
|
void |
setRepeat(String repeat)
Sets the image repetition behaviour for images.
|
void |
setURL(String url)
Sets the URL to the background image.
|
void |
setVertical(int vertical)
Sets the vertical offset for images.
|
String |
toString()
Return the string for debugging.
|
public Color getColor()
public int getHoriz()
public int getRepeat()
public String getURL()
public org.apache.xmlgraphics.image.loader.ImageInfo getImageInfo()
public int getVertical()
public void setColor(Color color)
color
- The color to setpublic void setHoriz(int horiz)
horiz
- The horizontal offset to setpublic void setRepeat(int repeat)
repeat
- The image repetition behaviour to setpublic void setRepeat(String repeat)
repeat
- The image repetition behaviour to setpublic void setURL(String url)
url
- The URL to setpublic void setImageInfo(org.apache.xmlgraphics.image.loader.ImageInfo info)
info
- The background image's info objectpublic void setVertical(int vertical)
vertical
- The vertical offset to setpublic String toString()
public void setImageTargetWidth(int value)
public int getImageTargetWidth()
public void setImageTargetHeight(int value)
public int getImageTargetHeight()
Copyright © 2025 Apache Software Foundation. All rights reserved.