Package tech.tablesaw.plotly.components
Enum Font.Family
- java.lang.Object
-
- java.lang.Enum<Font.Family>
-
- tech.tablesaw.plotly.components.Font.Family
-
- All Implemented Interfaces:
Serializable
,Comparable<Font.Family>
- Enclosing class:
- Font
public static enum Font.Family extends Enum<Font.Family>
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The plotly service (at https://plot.ly or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include "Arial", "Balto", "Courier New", "Droid Sans",, "Droid Serif", "Droid Sans Mono", "Gravitas One", "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", "Raleway", "Times New Roman".
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARIAL
OPEN_SANS
SANS_SERIF
VERDANA
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static Font.Family
valueOf(String name)
Returns the enum constant of this type with the specified name.static Font.Family[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPEN_SANS
public static final Font.Family OPEN_SANS
-
VERDANA
public static final Font.Family VERDANA
-
ARIAL
public static final Font.Family ARIAL
-
SANS_SERIF
public static final Font.Family SANS_SERIF
-
-
Method Detail
-
values
public static Font.Family[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Font.Family c : Font.Family.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Font.Family valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<Font.Family>
-
-