Class NTxTextOptions
java.lang.Object
net.thevpc.ntexup.api.renderer.text.NTxTextOptions
- All Implemented Interfaces:
Cloneable, net.thevpc.nuts.util.NBlankable
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected NTxTextOptionsclone()copy()copyNonNullFrom(NTxTextOptions other) createAttributedString(String text, NTxGraphics g) getBold()booleanisBlank()booleanisStyled()resolveFont(NTxGraphics g, boolean apply) setBackgroundColor(Paint backgroundColor) setBaseFont(Font baseFont) setFontFamily(String fontFamily) setFontSize(NTxSize fontSize) setForegroundColor(Paint foregroundColor) setStrikeThrough(Boolean strikeThrough) setUnderlined(Boolean underlined)
-
Field Details
-
defaultFont
-
backgroundColor
-
foregroundColor
-
bold
-
italic
-
fontSizeMultiplier
-
fontSize
-
fontFamily
-
underlined
-
strikeThrough
-
baseFont
-
shadow
-
stroke
-
sr
-
computedFont
-
-
Constructor Details
-
NTxTextOptions
public NTxTextOptions()
-
-
Method Details
-
isBlank
public boolean isBlank()- Specified by:
isBlankin interfacenet.thevpc.nuts.util.NBlankable
-
getBold
-
setBold
-
getItalic
-
setItalic
-
getFontSize
-
setFontSize
-
getFontFamily
-
setFontFamily
-
getUnderlined
-
setUnderlined
-
getStrikeThrough
-
setStrikeThrough
-
getStroke
-
setStroke
-
getBackgroundColor
-
setBackgroundColor
-
getForegroundColor
-
setForegroundColor
-
getBaseFont
-
getComputedFont
-
setBaseFont
-
getShadow
-
setShadow
-
isStyled
public boolean isStyled() -
createAttributedString
-
resolveFont
-
resolveFont
-
copyNonNullFrom
-
copy
-
clone
-