public class SentenceStyle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
background
The sentence background color.
|
java.lang.String |
color
The sentence text color.
|
java.lang.String |
fontFace
The sentence font face.
|
java.lang.String |
namedSize
The sentence named size.
|
int |
size
The sentence numeric size value.
|
int |
type
The font type. it is a OR of the enumeration values in the
FontType interface. |
Constructor and Description |
---|
SentenceStyle() |
Modifier and Type | Method and Description |
---|---|
static SentenceStyle |
createColorStyle(java.lang.String color)
Creates a sentence with a font of a specified color.
|
static SentenceStyle |
createColorStyle(java.lang.String color,
java.lang.String background)
Creates a sentence with a font of a specified color and background color.
|
static SentenceStyle |
createFontFamilyStyle(java.lang.String fontFace)
Creates a sentence with a font of a specified family.
|
static SentenceStyle |
createSizeStyle(int size)
Creates a sentence with a font of a specified size.
|
static SentenceStyle |
createSizeStyle(java.lang.String namedSize)
Creates a sentence with a font of a specified named size.
|
static SentenceStyle |
createStyle(int type,
int size,
java.lang.String color,
java.lang.String background,
java.lang.String fontFace)
Creates a sentence with a font of a specified color.
|
static SentenceStyle |
createStyle(int type,
java.lang.String namedSize,
java.lang.String color,
java.lang.String background,
java.lang.String fontFace)
Creates a sentence with a font of a specified color, background color, size, font face.
|
static SentenceStyle |
createTypeStyle(int type)
Creates a sentence with a font of a specified type.
|
boolean |
isDefaultStyle()
Return true if the style is the default style.
|
SentenceStyle |
setBackground(java.lang.String background)
Set the background color of the font.
|
SentenceStyle |
setColor(java.lang.String color)
Set the color of the font.
|
SentenceStyle |
setFontFamily(java.lang.String fontFace)
Set the family of the font.
|
SentenceStyle |
setSize(int size)
Set the specified size of the font.
|
SentenceStyle |
setSize(java.lang.String namedSize)
Set the specified named size of the font.
|
SentenceStyle |
setType(int type)
Set the specified type of the font.
|
public java.lang.String color
public java.lang.String fontFace
FontFace
public java.lang.String background
public int size
public java.lang.String namedSize
FontSize
public boolean isDefaultStyle()
public SentenceStyle setType(int type)
type
- the font typeFontType
public static SentenceStyle createTypeStyle(int type)
type
- the font typeFontType
public static SentenceStyle createSizeStyle(int size)
size
- the font sizepublic SentenceStyle setSize(int size)
size
- the font sizepublic static SentenceStyle createSizeStyle(java.lang.String namedSize)
namedSize
- the font sizepublic SentenceStyle setSize(java.lang.String namedSize)
namedSize
- the font sizepublic static SentenceStyle createColorStyle(java.lang.String color)
color
- the font colorpublic SentenceStyle setColor(java.lang.String color)
color
- the font colorpublic SentenceStyle setBackground(java.lang.String background)
background
- the font background colorpublic static SentenceStyle createColorStyle(java.lang.String color, java.lang.String background)
color
- the font colorbackground
- the font background colorpublic static SentenceStyle createFontFamilyStyle(java.lang.String fontFace)
fontFace
- the font faceFontFace
public SentenceStyle setFontFamily(java.lang.String fontFace)
fontFace
- the font familypublic static SentenceStyle createStyle(int type, int size, java.lang.String color, java.lang.String background, java.lang.String fontFace)
type
- the font typesize
- tyhe font sizecolor
- the font colorbackground
- the font background colorfontFace
- the font facepublic static SentenceStyle createStyle(int type, java.lang.String namedSize, java.lang.String color, java.lang.String background, java.lang.String fontFace)
type
- the font typenamedSize
- the font sizecolor
- the font colorbackground
- the font background colorfontFace
- the font faceCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence