com.vaadin.flow.component.charts.model.style.
Class Style
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.style.Style
-
All Implemented Interfaces:
public class Style extends AbstractConfigurationObject
Style options for CSS styling
See Also:
-
-
Constructor Summary
Constructors Constructor Description Style()
-
Method Summary
All 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 the
color
CSS attribute.void
setFontFamily(String fontFamily)
Sets the
font-family
CSS attribute.void
setFontSize(String fontSize)
Sets the
font-size
CSS attribute.void
setFontWeight(FontWeight fontWeight)
Sets the
font-weight
CSS attribute.void
setLeft(String left)
Sets the
left
CSS attributevoid
setLineHeight(String lineHeight)
Sets the
line-height
CSS attributevoid
setPosition(StylePosition position)
Sets the
position
CSS attributevoid
setTextShadow(String textShadow)
Sets the
textShadow
CSS attributevoid
setTop(String top)
Sets the
top
CSS attribute
-
-
-
Method Detail
-
getColor
public Color getColor()
See Also:
-
setColor
public void setColor(Color color)
Sets the
color
CSS attribute.Parameters:
color
-
-
getFontWeight
public FontWeight getFontWeight()
See Also:
-
setFontWeight
public void setFontWeight(FontWeight fontWeight)
Sets the
font-weight
CSS attribute.Parameters:
fontWeight
-
-
getFontFamily
public String getFontFamily()
See Also:
-
setFontFamily
public void setFontFamily(String fontFamily)
Sets the
font-family
CSS attribute.Parameters:
fontFamily
-
-
getFontSize
public String getFontSize()
See Also:
-
setFontSize
public void setFontSize(String fontSize)
Sets the
font-size
CSS attribute.Parameters:
fontSize
-
-
getLeft
public String getLeft()
See Also:
-
setLeft
public void setLeft(String left)
Sets the
left
CSS attributeParameters:
left
-
-
getTop
public String getTop()
See Also:
-
setTop
public void setTop(String top)
Sets the
top
CSS attributeParameters:
top
-
-
setPosition
public void setPosition(StylePosition position)
Sets the
position
CSS attributeParameters:
position
-
-
getPosition
public StylePosition getPosition()
See Also:
-
setLineHeight
public void setLineHeight(String lineHeight)
Sets the
line-height
CSS attribute
-
getLineHeight
public String getLineHeight()
See Also:
-
getTextShadow
public String getTextShadow()
See Also:
-
setTextShadow
public void setTextShadow(String textShadow)
Sets the
textShadow
CSS attributeParameters:
textShadow
-
-
-