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 Color
getColor()
String
getFontFamily()
String
getFontSize()
FontWeight
getFontWeight()
String
getLeft()
String
getLineHeight()
StylePosition
getPosition()
String
getTextShadow()
String
getTop()
void
setColor(Color color)
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
setLeft(String left)
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
setTop(String top)
Sets thetop
CSS attribute
-
-
-
Method Detail
-
getColor
public Color getColor()
- See Also:
setColor(Color)
-
setColor
public void setColor(Color color)
Sets thecolor
CSS attribute.- Parameters:
color
-
-
getFontWeight
public FontWeight getFontWeight()
- See Also:
setFontWeight(FontWeight)
-
setFontWeight
public void setFontWeight(FontWeight fontWeight)
Sets thefont-weight
CSS attribute.- Parameters:
fontWeight
-
-
getFontFamily
public String getFontFamily()
- See Also:
setFontFamily(String)
-
setFontFamily
public void setFontFamily(String fontFamily)
Sets thefont-family
CSS attribute.- Parameters:
fontFamily
-
-
getFontSize
public String getFontSize()
- See Also:
setFontSize(String)
-
setFontSize
public void setFontSize(String fontSize)
Sets thefont-size
CSS attribute.- Parameters:
fontSize
-
-
getLeft
public String getLeft()
- See Also:
setLeft(String)
-
setLeft
public void setLeft(String left)
Sets theleft
CSS attribute- Parameters:
left
-
-
getTop
public String getTop()
- See Also:
setTop(String)
-
setTop
public void setTop(String top)
Sets thetop
CSS attribute- Parameters:
top
-
-
setPosition
public void setPosition(StylePosition position)
Sets theposition
CSS attribute- Parameters:
position
-
-
getPosition
public StylePosition getPosition()
- See Also:
setPosition(StylePosition)
-
setLineHeight
public void setLineHeight(String lineHeight)
Sets theline-height
CSS attribute
-
getLineHeight
public String getLineHeight()
- See Also:
setLineHeight(String)
-
getTextShadow
public String getTextShadow()
- See Also:
setTextShadow(String)
-
setTextShadow
public void setTextShadow(String textShadow)
Sets thetextShadow
CSS attribute- Parameters:
textShadow
-
-
-