Class TextStyle
java.lang.Object
com.motivewave.platform.sdk.common.TextStyle
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a clone (copy) of this object.booleanCompares the give object with this object and returns true if they are equal.static TextStylegetColor()getFont()javafx.scene.text.FontintinthashCode()booleanisBold()booleanisItalic()booleanstatic TextStyledoubletoJson()withBgColor(Color c) withBold(boolean bold) withItalic(boolean italic) withSize(float size) withStyle(int style) withUnderline(boolean b) static StringwriteStyle(TextStyle ts)
-
Constructor Details
-
TextStyle
-
TextStyle
-
TextStyle
-
TextStyle
public TextStyle(float fs) -
TextStyle
-
TextStyle
-
-
Method Details
-
strWidth
-
getFont
-
getFontFX
public javafx.scene.text.Font getFontFX() -
getColor
-
getColor
-
getBgColor
-
isBold
public boolean isBold() -
isItalic
public boolean isItalic() -
isUnderline
public boolean isUnderline() -
withColor
-
withBgColor
-
withFont
-
withStyle
-
withBold
-
withItalic
-
withUnderline
-
withSize
-
getFontMetrics
-
getHeight
public int getHeight() -
equals
-
hashCode
-
clone
-
toJson
-
fromJson
-
readStyle
-
writeStyle
-