Class FontVariant
java.lang.Object
com.priint.pubserver.comet3.entity.FontVariant
- All Implemented Interfaces:
Serializable
The type Font variant. For internal use only
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe enum Stretch.static enumThe enum Style.static enumThe enum Weight. -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new Font variant.FontVariant(FontVariant src) Instantiates a new Font variant. -
Method Summary
Modifier and TypeMethodDescriptiongetFace()Gets the name of the font face, e.g.getFont()Gets the name of this font variant, e.g.Gets the stretch of this font variant, e.g.getStyle()Gets the style of this font variant.Gets the weight of this font variant, e.g.merge(FontVariant other) Merge definitions of other font variants into this font variant.voidSets the name of the font face, e.g.voidSets the name of this font variant, e.g.voidsetStretch(FontVariant.Stretch stretch) Sets the stretch of this font variant, e.g.voidsetStyle(FontVariant.Style style) Sets the style of this font variant, i.e.voidsetWeight(FontVariant.Weight weight) Sets the weight of this font variant, e.g.
-
Constructor Details
-
FontVariant
public FontVariant()Instantiates a new Font variant. -
FontVariant
Instantiates a new Font variant.- Parameters:
src- the src
-
-
Method Details
-
getFont
Gets the name of this font variant, e.g. 'Arial'
- Returns:
- name of this font variant
-
setFont
Sets the name of this font variant, e.g. 'Arial'
- Parameters:
font- new name of font
-
getFace
Gets the name of the font face, e.g. 'Condensed'
- Returns:
- name of the font face
-
setFace
Sets the name of the font face, e.g. 'Condensed'
- Parameters:
face- name of the font face
-
getStyle
Gets the style of this font variant.
- Returns:
- style of this font variant, either NORMAL or ITALIC
-
setStyle
Sets the style of this font variant, i.e. NORMAL or ITALIC
- Parameters:
style- new style of the font
-
getWeight
Gets the weight of this font variant, e.g. BOLD
- Returns:
- weight of this font variant
-
setWeight
Sets the weight of this font variant, e.g. BOLD
- Parameters:
weight- new weight of this font variant
-
getStretch
Gets the stretch of this font variant, e.g. CONDENSED
- Returns:
- stretch of this font variant
-
setStretch
Sets the stretch of this font variant, e.g. CONDENSED
- Parameters:
stretch- stretch of this font variant
-
merge
Merge definitions of other font variants into this font variant.
Applies style, weight and stretch of another font variant to this font variant.
- Parameters:
other- other font variant- Returns:
- the merged font variant
-