public class Style extends AbstractConfigurationObject
Constructor and Description |
---|
Style() |
Modifier and Type | Method and 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 attribute |
void |
setLineHeight(String lineHeight)
Sets the
line-height CSS attribute |
void |
setPosition(StylePosition position)
Sets the
position CSS attribute |
void |
setTextShadow(String textShadow)
Sets the
textShadow CSS attribute |
void |
setTop(String top)
Sets the
top CSS attribute |
public Color getColor()
setColor(Color)
public void setColor(Color color)
color
CSS attribute.color
- public FontWeight getFontWeight()
setFontWeight(FontWeight)
public void setFontWeight(FontWeight fontWeight)
font-weight
CSS attribute.fontWeight
- public String getFontFamily()
setFontFamily(String)
public void setFontFamily(String fontFamily)
font-family
CSS attribute.fontFamily
- public String getFontSize()
setFontSize(String)
public void setFontSize(String fontSize)
font-size
CSS attribute.fontSize
- public String getLeft()
setLeft(String)
public void setLeft(String left)
left
CSS attributeleft
- public String getTop()
setTop(String)
public void setTop(String top)
top
CSS attributetop
- public void setPosition(StylePosition position)
position
CSS attributeposition
- public StylePosition getPosition()
setPosition(StylePosition)
public void setLineHeight(String lineHeight)
line-height
CSS attributepublic String getLineHeight()
setLineHeight(String)
public String getTextShadow()
setTextShadow(String)
public void setTextShadow(String textShadow)
textShadow
CSS attributetextShadow
- Copyright © 2021. All rights reserved.