Class Style
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.style.Style
- All Implemented Interfaces:
Serializable
Style options for CSS styling
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
getLeft()
getTop()
void
Sets thecolor
CSS attribute.void
setFontFamily
(String fontFamily) Sets thefont-family
CSS attribute.void
setFontSize
(String fontSize) Sets thefont-size
CSS attribute.void
setFontWeight
(FontWeight fontWeight) Sets thefont-weight
CSS attribute.void
Sets theleft
CSS attributevoid
setLineHeight
(String lineHeight) Sets theline-height
CSS attributevoid
setPosition
(StylePosition position) Sets theposition
CSS attributevoid
setTextShadow
(String textShadow) Sets thetextShadow
CSS attributevoid
Sets thetop
CSS attribute
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
getColor
- See Also:
-
setColor
Sets thecolor
CSS attribute.- Parameters:
color
-
-
getFontWeight
- See Also:
-
setFontWeight
Sets thefont-weight
CSS attribute.- Parameters:
fontWeight
-
-
getFontFamily
- See Also:
-
setFontFamily
Sets thefont-family
CSS attribute.- Parameters:
fontFamily
-
-
getFontSize
- See Also:
-
setFontSize
Sets thefont-size
CSS attribute.- Parameters:
fontSize
-
-
getLeft
- See Also:
-
setLeft
Sets theleft
CSS attribute- Parameters:
left
-
-
getTop
- See Also:
-
setTop
Sets thetop
CSS attribute- Parameters:
top
-
-
setPosition
Sets theposition
CSS attribute- Parameters:
position
-
-
getPosition
- See Also:
-
setLineHeight
Sets theline-height
CSS attribute -
getLineHeight
- See Also:
-
getTextShadow
- See Also:
-
setTextShadow
Sets thetextShadow
CSS attribute- Parameters:
textShadow
-
-