Class Style
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.style.Style
-
- All Implemented Interfaces:
Serializable
public class Style extends AbstractConfigurationObject
Style options for CSS styling- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Style()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ColorgetColor()StringgetFontFamily()StringgetFontSize()FontWeightgetFontWeight()StringgetLeft()StringgetLineHeight()StylePositiongetPosition()StringgetTextShadow()StringgetTop()voidsetColor(Color color)Sets thecolorCSS attribute.voidsetFontFamily(String fontFamily)Sets thefont-familyCSS attribute.voidsetFontSize(String fontSize)Sets thefont-sizeCSS attribute.voidsetFontWeight(FontWeight fontWeight)Sets thefont-weightCSS attribute.voidsetLeft(String left)Sets theleftCSS attributevoidsetLineHeight(String lineHeight)Sets theline-heightCSS attributevoidsetPosition(StylePosition position)Sets thepositionCSS attributevoidsetTextShadow(String textShadow)Sets thetextShadowCSS attributevoidsetTop(String top)Sets thetopCSS attribute
-
-
-
Method Detail
-
getColor
public Color getColor()
- See Also:
setColor(Color)
-
setColor
public void setColor(Color color)
Sets thecolorCSS attribute.- Parameters:
color-
-
getFontWeight
public FontWeight getFontWeight()
- See Also:
setFontWeight(FontWeight)
-
setFontWeight
public void setFontWeight(FontWeight fontWeight)
Sets thefont-weightCSS attribute.- Parameters:
fontWeight-
-
getFontFamily
public String getFontFamily()
- See Also:
setFontFamily(String)
-
setFontFamily
public void setFontFamily(String fontFamily)
Sets thefont-familyCSS attribute.- Parameters:
fontFamily-
-
getFontSize
public String getFontSize()
- See Also:
setFontSize(String)
-
setFontSize
public void setFontSize(String fontSize)
Sets thefont-sizeCSS attribute.- Parameters:
fontSize-
-
getLeft
public String getLeft()
- See Also:
setLeft(String)
-
setLeft
public void setLeft(String left)
Sets theleftCSS attribute- Parameters:
left-
-
getTop
public String getTop()
- See Also:
setTop(String)
-
setTop
public void setTop(String top)
Sets thetopCSS attribute- Parameters:
top-
-
setPosition
public void setPosition(StylePosition position)
Sets thepositionCSS attribute- Parameters:
position-
-
getPosition
public StylePosition getPosition()
- See Also:
setPosition(StylePosition)
-
setLineHeight
public void setLineHeight(String lineHeight)
Sets theline-heightCSS attribute
-
getLineHeight
public String getLineHeight()
- See Also:
setLineHeight(String)
-
getTextShadow
public String getTextShadow()
- See Also:
setTextShadow(String)
-
setTextShadow
public void setTextShadow(String textShadow)
Sets thetextShadowCSS attribute- Parameters:
textShadow-
-
-