- All Implemented Interfaces:
Serializable, Comparable<RrdGraphConstants.FontTag>, java.lang.constant.Constable
- Enclosing interface:
RrdGraphConstants
Allowed font tag names which can be used in
RrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font) methodNested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsConstructor Summary
ConstructorsMethod Summary
Modifier and TypeMethodDescriptionReads back the font recorded for this tag.voidRecords the font for this tag in the per-tag array.static RrdGraphConstants.FontTagReturns the enum constant of this class with the specified name.static RrdGraphConstants.FontTag[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
DEFAULT
Index of the default font. Used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)TITLE
Index of the title font. Used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)AXIS
Index of the axis label font. Used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)UNIT
Index of the vertical unit label font. Used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)LEGEND
Index of the graph legend font. Used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)WATERMARK
Index of the edge watermark font. Used inRrdGraphDef.setFont(org.rrd4j.graph.RrdGraphConstants.FontTag, java.awt.Font)
Constructor Details
FontTag
private FontTag()
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
set
get
Reads back the font recorded for this tag.- Parameters:
f- unused, accepted only to mirrorset(Font, Font[])fonts- the per-tag font array, indexed by each tag's ordinal- Returns:
- the font recorded for this tag, or null if none was set