Class Trait.Background
java.lang.Object
org.apache.fop.area.Trait.Background
- All Implemented Interfaces:
Serializable
- Enclosing class:
Trait
Background trait structure.
Used for storing back trait information which are related.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ColorThe background color if any.private intBackground horizontal offset for images.private org.apache.xmlgraphics.image.loader.ImageInfoThe background image if any.private intprivate intprivate intBackground repeat enum for images.private static final longprivate StringThe background image url if any.private intBackground vertical offset for images. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Returns the background color.private static intgetConstantForRepeat(String repeat) intgetHoriz()Returns the horizontal offset for images.org.apache.xmlgraphics.image.loader.ImageInfoReturns the ImageInfo object representing the background imageintintintReturns the image repetition behaviour for images.private StringgetURL()Returns the URL to the background imageintReturns the vertical offset for images.voidSets the color.voidsetHoriz(int horiz) Sets the horizontal offset.voidsetImageInfo(org.apache.xmlgraphics.image.loader.ImageInfo info) Sets the ImageInfo of the image to use as the background image.voidsetImageTargetHeight(int value) voidsetImageTargetWidth(int value) voidsetRepeat(int repeat) Sets the image repetition behaviour for images.voidSets the image repetition behaviour for images.voidSets the URL to the background image.voidsetVertical(int vertical) Sets the vertical offset for images.toString()Return the string for debugging.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
color
The background color if any. -
url
The background image url if any. -
imageInfo
private org.apache.xmlgraphics.image.loader.ImageInfo imageInfoThe background image if any. -
repeat
private int repeatBackground repeat enum for images. -
horiz
private int horizBackground horizontal offset for images. -
vertical
private int verticalBackground vertical offset for images. -
imageTargetWidth
private int imageTargetWidth -
imageTargetHeight
private int imageTargetHeight
-
-
Constructor Details
-
Background
public Background()
-
-
Method Details
-
getColor
-
getHoriz
public int getHoriz()Returns the horizontal offset for images.- Returns:
- the horizontal offset
-
getRepeat
public int getRepeat()Returns the image repetition behaviour for images.- Returns:
- the image repetition behaviour
-
getURL
Returns the URL to the background image- Returns:
- URL to the background image, null if n/a
-
getImageInfo
public org.apache.xmlgraphics.image.loader.ImageInfo getImageInfo()Returns the ImageInfo object representing the background image- Returns:
- the background image, null if n/a
-
getVertical
public int getVertical()Returns the vertical offset for images.- Returns:
- the vertical offset
-
setColor
-
setHoriz
public void setHoriz(int horiz) Sets the horizontal offset.- Parameters:
horiz- The horizontal offset to set
-
setRepeat
public void setRepeat(int repeat) Sets the image repetition behaviour for images.- Parameters:
repeat- The image repetition behaviour to set
-
setRepeat
Sets the image repetition behaviour for images.- Parameters:
repeat- The image repetition behaviour to set
-
setURL
Sets the URL to the background image.- Parameters:
url- The URL to set
-
setImageInfo
public void setImageInfo(org.apache.xmlgraphics.image.loader.ImageInfo info) Sets the ImageInfo of the image to use as the background image.- Parameters:
info- The background image's info object
-
setVertical
public void setVertical(int vertical) Sets the vertical offset for images.- Parameters:
vertical- The vertical offset to set
-
getRepeatString
-
getConstantForRepeat
-
toString
-
setImageTargetWidth
public void setImageTargetWidth(int value) -
getImageTargetWidth
public int getImageTargetWidth() -
setImageTargetHeight
public void setImageTargetHeight(int value) -
getImageTargetHeight
public int getImageTargetHeight()
-