Package Torello.Browser.BrowserAPI
Class CSS.FontFace
- java.lang.Object
-
- Torello.Browser.BaseType<CSS.FontFace>
-
- Torello.Browser.BrowserAPI.CSS.FontFace
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BaseType<?>>
- Enclosing class:
- CSS
public static class CSS.FontFace extends BaseType<CSS.FontFace> implements java.io.Serializable
This Nested Java Class is declared as a "Type", which is similar to a Java Class. The CDP API Specifications list this type among the types, events & commands located in theCSSdomain, which may be found within theBrowserAPI.
📌 All browser domain type classes will have a class name that begins with an upper case letter.Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.- See Also:
- Serialized Form
Hi-Lited Source-Code:This File's Source Code:
- View Here: Torello/Browser/BrowserAPI/CSS.java
- Open New Browser-Tab: Torello/Browser/BrowserAPI/CSS.java
File Size: 3,194 Bytes Line Count: 85 '\n' Characters Found
Helper: Equals, HashCode, toJSON, etc
- View Here: CSS$$FontFace$$.java
- Open New Browser-Tab: CSS$$FontFace$$.java
File Size: 13,113 Bytes Line Count: 305 '\n' Characters Found
-
-
Field Summary
Serializable ID Modifier and Type Field Description protected static longserialVersionUIDType Fields / Properties (from Google & Browser Specs) Modifier and Type Field Description StringfontDisplayThe font-display.StringfontFamilyThe font-family.StringfontStretchThe font-stretch.StringfontStyleThe font-style.StringfontVariantThe font-variant.CSS.FontVariationAxis[]fontVariationAxesAvailable variation settings (a.k.a.StringfontWeightThe font-weight.StringplatformFontFamilyThe resolved platform font familyStringsrcThe src.StringunicodeRangeThe unicode-range.
-
Constructor Summary
Constructors Constructor Description FontFace(ReadOnlyList<Boolean> isPresent, String fontFamily, String fontStyle, String fontVariant, String fontWeight, String fontStretch, String fontDisplay, String unicodeRange, String src, String platformFontFamily, CSS.FontVariationAxis[] fontVariationAxes)Constructor.
-
Method Summary
Static Builder Convert a JsonObject to a POJO Modifier and Type Method Description static CSS.FontFacefromJSON(JsonObject jo)Creates an instance of this class from aJsonObject.Retrieve the Type-Descriptor Singleton-Instance for this Nested Class. Modifier and Type Method Description static NestedDescriptor<CSS.FontFace>descriptor()Returns this class'sNestedDescriptorsingleton-instance.-
Methods inherited from class Torello.Browser.BaseType
allEnumStrROLs, compareTo, enumStrList, enumStrValidate, enumStrValidateThrow, equals, hashCode, isPresent, optionalsValidate, optionalsValidateThrow, toJSON, toString
-
-
-
-
Field Detail
-
serialVersionUID
protected static final long serialVersionUID
This fulfils the SerialVersion UID requirement for all classes that implement Java'sinterface java.io.Serializable. Using theSerializableImplementation offered by java is very easy, and can make saving program state when debugging a lot easier. It can also be used in place of more complicated systems like "hibernate" to store data as well.- See Also:
- Constant Field Values
-
fontFamily
public final java.lang.String fontFamily
The font-family.
-
fontStyle
public final java.lang.String fontStyle
The font-style.
-
fontVariant
public final java.lang.String fontVariant
The font-variant.
-
fontWeight
public final java.lang.String fontWeight
The font-weight.
-
fontStretch
public final java.lang.String fontStretch
The font-stretch.
-
fontDisplay
public final java.lang.String fontDisplay
The font-display.
-
unicodeRange
public final java.lang.String unicodeRange
The unicode-range.
-
src
public final java.lang.String src
The src.
-
platformFontFamily
public final java.lang.String platformFontFamily
The resolved platform font family
-
fontVariationAxes
public final CSS.FontVariationAxis[] fontVariationAxes
Available variation settings (a.k.a. "axes").
OPTIONAL
-
-
Constructor Detail
-
FontFace
public FontFace(ReadOnlyList<java.lang.Boolean> isPresent, java.lang.String fontFamily, java.lang.String fontStyle, java.lang.String fontVariant, java.lang.String fontWeight, java.lang.String fontStretch, java.lang.String fontDisplay, java.lang.String unicodeRange, java.lang.String src, java.lang.String platformFontFamily, CSS.FontVariationAxis[] fontVariationAxes)
Constructor. Please review this class' fields for documentation.
-
-
Method Detail
-
fromJSON
public static CSS.FontFace fromJSON(JsonObject jo)
Creates an instance of this class from aJsonObject.- Code:
- Exact Method Body:
return singleton.fromJSON(jo);
-
descriptor
public static NestedDescriptor<CSS.FontFace> descriptor()
Returns this class'sNestedDescriptorsingleton-instance. class / type.- Code:
- Exact Method Body:
return singleton.descriptor();
-
-