Package com.oorian.css
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 Summary
Modifier and TypeMethodDescriptionsetBackground(Color color) Sets the background to a solid color.setBackground(String attrValue) Sets the background shorthand property.setBackgroundAttachment(BackgroundAttachment attrValue) Sets the background attachment behavior.setBackgroundAttachment(String attrValue) Sets the background attachment behavior.setBackgroundBlendMode(BackgroundBlendMode attrValue) Sets the background blend mode.setBackgroundBlendMode(String attrValue) Sets the background blend mode.setBackgroundClip(BackgroundClip attrValue) Sets the background clip area.setBackgroundClip(String attrValue) Sets the background clip area.setBackgroundColor(BackgroundColor attrValue) Sets the background color using a keyword.setBackgroundColor(Color attrValue) Sets the background color.setBackgroundColor(String attrValue) Sets the background color.setBackgroundImage(String attrValue) Sets the background image URL.setBackgroundOrigin(BackgroundOrigin attrValue) Sets the background origin.setBackgroundOrigin(String attrValue) Sets the background origin.setBackgroundPosition(int xpos, int ypos) Sets the background position in pixels.setBackgroundPosition(BackgroundPosition attrValue) Sets the background position using a keyword.setBackgroundPosition(Units xpos, Units ypos) Sets the background position with CSS units.setBackgroundPosition(String attrValue) Sets the background position.setBackgroundPosition(String xpos, String ypos) Sets the background position with x and y coordinates.setBackgroundRepeat(BackgroundRepeat attrValue) Sets the background repeat behavior.setBackgroundRepeat(String attrValue) Sets the background repeat behavior.setBackgroundSize(int width, int height) Sets the background size in pixels.setBackgroundSize(BackgroundSize attrValue) Sets the background size using a keyword.setBackgroundSize(Units width, Units height) Sets the background size with CSS units.setBackgroundSize(String attrValue) Sets the background size.setBackgroundSize(String width, String height) Sets the background size with width and height.
-
Method Details
-
setBackground
Sets the background shorthand property.- Parameters:
attrValue- the background shorthand value- Returns:
- this for method chaining
-
setBackground
Sets the background to a solid color.- Parameters:
color- the background color- Returns:
- this for method chaining
-
setBackgroundAttachment
Sets the background attachment behavior.- Parameters:
attrValue- the attachment value string- Returns:
- this for method chaining
-
setBackgroundAttachment
Sets the background attachment behavior.- Parameters:
attrValue- the BackgroundAttachment enum value- Returns:
- this for method chaining
-
setBackgroundBlendMode
Sets the background blend mode.- Parameters:
attrValue- the blend mode value string- Returns:
- this for method chaining
-
setBackgroundBlendMode
Sets the background blend mode.- Parameters:
attrValue- the BackgroundBlendMode enum value- Returns:
- this for method chaining
-
setBackgroundColor
Sets the background color.- Parameters:
attrValue- the color value string- Returns:
- this for method chaining
-
setBackgroundColor
Sets the background color.- Parameters:
attrValue- the Color object- Returns:
- this for method chaining
-
setBackgroundColor
Sets the background color using a keyword.- Parameters:
attrValue- the BackgroundColor enum value- Returns:
- this for method chaining
-
setBackgroundImage
Sets the background image URL.- Parameters:
attrValue- the image URL or gradient function- Returns:
- this for method chaining
-
setBackgroundPosition
Sets the background position.- Parameters:
attrValue- the position value string- Returns:
- this for method chaining
-
setBackgroundPosition
Sets the background position using a keyword.- Parameters:
attrValue- the BackgroundPosition enum value- Returns:
- this for method chaining
-
setBackgroundPosition
Sets the background position with x and y coordinates.- Parameters:
xpos- the horizontal positionypos- the vertical position- Returns:
- this for method chaining
-
setBackgroundPosition
Sets the background position in pixels.- Parameters:
xpos- the horizontal position in pixelsypos- the vertical position in pixels- Returns:
- this for method chaining
-
setBackgroundPosition
Sets the background position with CSS units.- Parameters:
xpos- the horizontal positionypos- the vertical position- Returns:
- this for method chaining
-
setBackgroundRepeat
Sets the background repeat behavior.- Parameters:
attrValue- the repeat value string- Returns:
- this for method chaining
-
setBackgroundRepeat
Sets the background repeat behavior.- Parameters:
attrValue- the BackgroundRepeat enum value- Returns:
- this for method chaining
-
setBackgroundClip
Sets the background clip area.- Parameters:
attrValue- the clip value string- Returns:
- this for method chaining
-
setBackgroundClip
Sets the background clip area.- Parameters:
attrValue- the BackgroundClip enum value- Returns:
- this for method chaining
-
setBackgroundOrigin
Sets the background origin.- Parameters:
attrValue- the origin value string- Returns:
- this for method chaining
-
setBackgroundOrigin
Sets the background origin.- Parameters:
attrValue- the BackgroundOrigin enum value- Returns:
- this for method chaining
-
setBackgroundSize
Sets the background size.- Parameters:
attrValue- the size value string- Returns:
- this for method chaining
-
setBackgroundSize
Sets the background size using a keyword.- Parameters:
attrValue- the BackgroundSize enum value- Returns:
- this for method chaining
-
setBackgroundSize
Sets the background size with width and height.- Parameters:
width- the width valueheight- the height value- Returns:
- this for method chaining
-
setBackgroundSize
Sets the background size in pixels.- Parameters:
width- the width in pixelsheight- the height in pixels- Returns:
- this for method chaining
-
setBackgroundSize
Sets the background size with CSS units.- Parameters:
width- the widthheight- the height- Returns:
- this for method chaining
-