Class Background
java.lang.Object
ch.nolix.system.element.base.AbstractElement
ch.nolix.system.gui.background.Background
- All Implemented Interfaces:
IElement, IBackground
- Author:
- Silvan Wyss
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BackgroundfromSpecification(INode<?> specification) IContainer<INode<?>> getColor()getImage()getType()booleanisColor()booleanbooleanisImage()booleanstatic Backgroundstatic BackgroundwithColorGradient(IColorGradient colorGradient) static Backgroundstatic BackgroundwithImageAndImageApplication(IImage image, ImageApplication imageApplication) Methods inherited from class AbstractElement
equals, getSpecification, hashCode, toStringMethods inherited from interface IElement
getSpecification, toFormatedString, toXml
-
Field Details
-
TRANSPARENT_BACKGROUND
-
DEFAULT_IMAGE_APPLICATION
-
-
Method Details
-
fromSpecification
-
withColor
-
withColorGradient
-
withImage
-
withImageAndImageApplication
public static Background withImageAndImageApplication(IImage image, ImageApplication imageApplication) -
getAttributes
- Specified by:
getAttributesin interfaceIElement- Returns:
- the attributes of the current
IElement.
-
getColor
- Specified by:
getColorin interfaceIBackground
-
getColorGradient
- Specified by:
getColorGradientin interfaceIBackground
-
getImage
- Specified by:
getImagein interfaceIBackground
-
getImageApplication
- Specified by:
getImageApplicationin interfaceIBackground
-
getType
- Specified by:
getTypein interfaceIBackground
-
isColor
public boolean isColor() -
isColorGradient
public boolean isColorGradient() -
isImage
public boolean isImage() -
isTransparent
public boolean isTransparent() -
toCssProperties
- Specified by:
toCssPropertiesin interfaceIBackground
-