Package org.apache.fop.area
Class Trait.Background
- java.lang.Object
-
- org.apache.fop.area.Trait.Background
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Trait
public static class Trait.Background extends java.lang.Object implements java.io.SerializableBackground trait structure. Used for storing back trait information which are related.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.ColorcolorThe background color if any.private inthorizBackground horizontal offset for images.private org.apache.xmlgraphics.image.loader.ImageInfoimageInfoThe background image if any.private intimageTargetHeightprivate intimageTargetWidthprivate intrepeatBackground repeat enum for images.private static longserialVersionUIDprivate java.lang.StringurlThe background image url if any.private intverticalBackground vertical offset for images.
-
Constructor Summary
Constructors Constructor Description Background()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.ColorgetColor()Returns the background color.private static intgetConstantForRepeat(java.lang.String repeat)intgetHoriz()Returns the horizontal offset for images.org.apache.xmlgraphics.image.loader.ImageInfogetImageInfo()Returns the ImageInfo object representing the background imageintgetImageTargetHeight()intgetImageTargetWidth()intgetRepeat()Returns the image repetition behaviour for images.private java.lang.StringgetRepeatString()java.lang.StringgetURL()Returns the URL to the background imageintgetVertical()Returns the vertical offset for images.voidsetColor(java.awt.Color color)Sets 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.voidsetRepeat(java.lang.String repeat)Sets the image repetition behaviour for images.voidsetURL(java.lang.String url)Sets the URL to the background image.voidsetVertical(int vertical)Sets the vertical offset for images.java.lang.StringtoString()Return the string for debugging.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
color
private java.awt.Color color
The background color if any.
-
url
private java.lang.String url
The background image url if any.
-
imageInfo
private org.apache.xmlgraphics.image.loader.ImageInfo imageInfo
The background image if any.
-
repeat
private int repeat
Background repeat enum for images.
-
horiz
private int horiz
Background horizontal offset for images.
-
vertical
private int vertical
Background vertical offset for images.
-
imageTargetWidth
private int imageTargetWidth
-
imageTargetHeight
private int imageTargetHeight
-
-
Method Detail
-
getColor
public java.awt.Color getColor()
Returns the background color.- Returns:
- background color, null if n/a
-
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
public java.lang.String 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
public void setColor(java.awt.Color color)
Sets the color.- Parameters:
color- The color to set
-
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
public void setRepeat(java.lang.String repeat)
Sets the image repetition behaviour for images.- Parameters:
repeat- The image repetition behaviour to set
-
setURL
public void setURL(java.lang.String url)
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
private java.lang.String getRepeatString()
-
getConstantForRepeat
private static int getConstantForRepeat(java.lang.String repeat)
-
toString
public java.lang.String toString()
Return the string for debugging.- Overrides:
toStringin classjava.lang.Object
-
setImageTargetWidth
public void setImageTargetWidth(int value)
-
getImageTargetWidth
public int getImageTargetWidth()
-
setImageTargetHeight
public void setImageTargetHeight(int value)
-
getImageTargetHeight
public int getImageTargetHeight()
-
-