Echo.Sync
FillImage
Class Hierarchy:

Provides tools for rendering fill image (background image) properties.

Class Method Summary
Public getPosition()
Determines the background-position CSS attribute of a FillImage.
Public getRepeat()
Determines the background-repeat CSS attribute of a FillImage.
Public getUrl()
Returns the URL of a FillImage.
Public render()
Renders a FillImage to an element.
Public renderClear()
Renders a FillImage to an element, clearing any existing value.

Class Method Detail
getPosition
Determines the background-position CSS attribute of a FillImage.
Parameters:
fillImage (#FillImage) - the FillImage
Returns:
(String) the appropriate CSS background-position attribute, or null if it is not specified

getRepeat
Determines the background-repeat CSS attribute of a FillImage.
Parameters:
fillImage (#FillImage) - the FillImage
Returns:
(String) the appropriate CSS background-repeat attribute, or null if it is not specified/invalid

getUrl
Returns the URL of a FillImage.
Parameters:
fillImage (#FillImage) - the FillImage
Returns:
(String) the URL

render
Renders a FillImage to an element.
Parameters:
fillImage (#FillImage) - the FillImage (may be null)
element (Element) - the target element
flags (Number) - (optional) the rendering flags, one or more of the following values:
  • FLAG_ENABLE_IE_PNG_ALPHA_FILTER

    renderClear
    Renders a FillImage to an element, clearing any existing value.
    Parameters:
    fillImage (#FillImage) - the FillImage (may be null)
    element (Element) - the target element
    flags (Number) - (optional) the rendering flags, one or more of the following values:
    • FLAG_ENABLE_IE_PNG_ALPHA_FILTER