Class Style
java.lang.Object
com.vaadin.componentfactory.maps.model.AbstractConfigurationObject
com.vaadin.componentfactory.maps.model.style.Style
- All Implemented Interfaces:
Serializable
Style class.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColor()Getter for the fieldcolor.Getter for the fieldfontFamily.Getter for the fieldfontSize.Getter for the fieldfontWeight.getLeft()Getter for the fieldleft.Getter for the fieldlineHeight.Getter for the fieldposition.Getter for the fieldtextShadow.getTop()Getter for the fieldtop.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
Getter for the field
color.- Returns:
- a
Colorobject. - See Also:
-
setColor
Sets thecolorCSS attribute.- Parameters:
color- aColorobject.
-
getFontWeight
Getter for the field
fontWeight.- Returns:
- a
FontWeightobject. - See Also:
-
setFontWeight
Sets thefont-weightCSS attribute.- Parameters:
fontWeight- aFontWeightobject.
-
getFontFamily
Getter for the field
fontFamily.- Returns:
- a
Stringobject. - See Also:
-
setFontFamily
Sets thefont-familyCSS attribute.- Parameters:
fontFamily- aStringobject.
-
getFontSize
Getter for the field
fontSize.- Returns:
- a
Stringobject. - See Also:
-
setFontSize
Sets thefont-sizeCSS attribute.- Parameters:
fontSize- aStringobject.
-
getLeft
Getter for the field
left.- Returns:
- a
Stringobject. - See Also:
-
setLeft
Sets theleftCSS attribute- Parameters:
left- aStringobject.
-
getTop
Getter for the field
top.- Returns:
- a
Stringobject. - See Also:
-
setTop
Sets thetopCSS attribute- Parameters:
top- aStringobject.
-
setPosition
Sets thepositionCSS attribute- Parameters:
position- aStylePositionobject.
-
getPosition
Getter for the field
position.- Returns:
- a
StylePositionobject. - See Also:
-
setLineHeight
Sets theline-heightCSS attribute- Parameters:
lineHeight- aStringobject.
-
getLineHeight
Getter for the field
lineHeight.- Returns:
- a
Stringobject. - See Also:
-
getTextShadow
Getter for the field
textShadow.- Returns:
- a
Stringobject. - See Also:
-
setTextShadow
Sets thetextShadowCSS attribute- Parameters:
textShadow- aStringobject.
-