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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()getLeft()getTop()voidSets thecolorCSS attribute.voidsetFontFamily(String fontFamily) Sets thefont-familyCSS attribute.voidsetFontSize(String fontSize) Sets thefont-sizeCSS attribute.voidsetFontWeight(FontWeight fontWeight) Sets thefont-weightCSS attribute.voidSets theleftCSS attributevoidsetLineHeight(String lineHeight) Sets theline-heightCSS attributevoidsetPosition(StylePosition position) Sets thepositionCSS attributevoidsetTextShadow(String textShadow) Sets thetextShadowCSS attributevoidSets thetopCSS attribute
-
Constructor Details
-
Style
public Style()
-
-
Method Details
-
getColor
- See Also:
-
setColor
Sets thecolorCSS attribute.- Parameters:
color-
-
getFontWeight
- See Also:
-
setFontWeight
Sets thefont-weightCSS attribute.- Parameters:
fontWeight-
-
getFontFamily
- See Also:
-
setFontFamily
Sets thefont-familyCSS attribute.- Parameters:
fontFamily-
-
getFontSize
- See Also:
-
setFontSize
Sets thefont-sizeCSS attribute.- Parameters:
fontSize-
-
getLeft
- See Also:
-
setLeft
Sets theleftCSS attribute- Parameters:
left-
-
getTop
- See Also:
-
setTop
Sets thetopCSS attribute- Parameters:
top-
-
setPosition
Sets thepositionCSS attribute- Parameters:
position-
-
getPosition
- See Also:
-
setLineHeight
Sets theline-heightCSS attribute -
getLineHeight
- See Also:
-
getTextShadow
- See Also:
-
setTextShadow
Sets thetextShadowCSS attribute- Parameters:
textShadow-
-