Interface BackgroundIntf<T extends BackgroundIntf<T>>

All Known Implementing Classes:
ClassRule, CssRule, CssStyle, ElementRule, IdRule, KeyFrameRule, TagRule

public interface BackgroundIntf<T extends BackgroundIntf<T>>
CSS background properties interface for styling element backgrounds.

BackgroundIntf provides methods for configuring all CSS background properties including colors, images, positioning, sizing, and blending.

Key Features:

  • Background colors and images
  • Position and sizing control
  • Repeat and attachment behavior
  • Clipping and origin settings
  • Blend mode effects
Since:
2016
Version:
1.0
Author:
Marvin P. Warble Jr.
See Also:
  • Method Details

    • setBackground

      T setBackground(String attrValue)
      Sets the background shorthand property.
      Parameters:
      attrValue - the background shorthand value
      Returns:
      this for method chaining
    • setBackground

      T setBackground(Color color)
      Sets the background to a solid color.
      Parameters:
      color - the background color
      Returns:
      this for method chaining
    • setBackgroundAttachment

      T setBackgroundAttachment(String attrValue)
      Sets the background attachment behavior.
      Parameters:
      attrValue - the attachment value string
      Returns:
      this for method chaining
    • setBackgroundAttachment

      T setBackgroundAttachment(BackgroundAttachment attrValue)
      Sets the background attachment behavior.
      Parameters:
      attrValue - the BackgroundAttachment enum value
      Returns:
      this for method chaining
    • setBackgroundBlendMode

      T setBackgroundBlendMode(String attrValue)
      Sets the background blend mode.
      Parameters:
      attrValue - the blend mode value string
      Returns:
      this for method chaining
    • setBackgroundBlendMode

      T setBackgroundBlendMode(BackgroundBlendMode attrValue)
      Sets the background blend mode.
      Parameters:
      attrValue - the BackgroundBlendMode enum value
      Returns:
      this for method chaining
    • setBackgroundColor

      T setBackgroundColor(String attrValue)
      Sets the background color.
      Parameters:
      attrValue - the color value string
      Returns:
      this for method chaining
    • setBackgroundColor

      T setBackgroundColor(Color attrValue)
      Sets the background color.
      Parameters:
      attrValue - the Color object
      Returns:
      this for method chaining
    • setBackgroundColor

      T setBackgroundColor(BackgroundColor attrValue)
      Sets the background color using a keyword.
      Parameters:
      attrValue - the BackgroundColor enum value
      Returns:
      this for method chaining
    • setBackgroundImage

      T setBackgroundImage(String attrValue)
      Sets the background image URL.
      Parameters:
      attrValue - the image URL or gradient function
      Returns:
      this for method chaining
    • setBackgroundPosition

      T setBackgroundPosition(String attrValue)
      Sets the background position.
      Parameters:
      attrValue - the position value string
      Returns:
      this for method chaining
    • setBackgroundPosition

      T setBackgroundPosition(BackgroundPosition attrValue)
      Sets the background position using a keyword.
      Parameters:
      attrValue - the BackgroundPosition enum value
      Returns:
      this for method chaining
    • setBackgroundPosition

      T setBackgroundPosition(String xpos, String ypos)
      Sets the background position with x and y coordinates.
      Parameters:
      xpos - the horizontal position
      ypos - the vertical position
      Returns:
      this for method chaining
    • setBackgroundPosition

      T setBackgroundPosition(int xpos, int ypos)
      Sets the background position in pixels.
      Parameters:
      xpos - the horizontal position in pixels
      ypos - the vertical position in pixels
      Returns:
      this for method chaining
    • setBackgroundPosition

      T setBackgroundPosition(Units xpos, Units ypos)
      Sets the background position with CSS units.
      Parameters:
      xpos - the horizontal position
      ypos - the vertical position
      Returns:
      this for method chaining
    • setBackgroundRepeat

      T setBackgroundRepeat(String attrValue)
      Sets the background repeat behavior.
      Parameters:
      attrValue - the repeat value string
      Returns:
      this for method chaining
    • setBackgroundRepeat

      T setBackgroundRepeat(BackgroundRepeat attrValue)
      Sets the background repeat behavior.
      Parameters:
      attrValue - the BackgroundRepeat enum value
      Returns:
      this for method chaining
    • setBackgroundClip

      T setBackgroundClip(String attrValue)
      Sets the background clip area.
      Parameters:
      attrValue - the clip value string
      Returns:
      this for method chaining
    • setBackgroundClip

      T setBackgroundClip(BackgroundClip attrValue)
      Sets the background clip area.
      Parameters:
      attrValue - the BackgroundClip enum value
      Returns:
      this for method chaining
    • setBackgroundOrigin

      T setBackgroundOrigin(String attrValue)
      Sets the background origin.
      Parameters:
      attrValue - the origin value string
      Returns:
      this for method chaining
    • setBackgroundOrigin

      T setBackgroundOrigin(BackgroundOrigin attrValue)
      Sets the background origin.
      Parameters:
      attrValue - the BackgroundOrigin enum value
      Returns:
      this for method chaining
    • setBackgroundSize

      T setBackgroundSize(String attrValue)
      Sets the background size.
      Parameters:
      attrValue - the size value string
      Returns:
      this for method chaining
    • setBackgroundSize

      T setBackgroundSize(BackgroundSize attrValue)
      Sets the background size using a keyword.
      Parameters:
      attrValue - the BackgroundSize enum value
      Returns:
      this for method chaining
    • setBackgroundSize

      T setBackgroundSize(String width, String height)
      Sets the background size with width and height.
      Parameters:
      width - the width value
      height - the height value
      Returns:
      this for method chaining
    • setBackgroundSize

      T setBackgroundSize(int width, int height)
      Sets the background size in pixels.
      Parameters:
      width - the width in pixels
      height - the height in pixels
      Returns:
      this for method chaining
    • setBackgroundSize

      T setBackgroundSize(Units width, Units height)
      Sets the background size with CSS units.
      Parameters:
      width - the width
      height - the height
      Returns:
      this for method chaining