Package com.teamten.typeset
Enum Class Config.Key
- All Implemented Interfaces:
Serializable
,Comparable<Config.Key>
,Constable
- Enclosing class:
Config
Various keys that can be used in this configuration.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Config.Key
fromHeader
(String stringKey) The string key is converted to upper case, and hyphens are converted to underscores.com.teamten.typeset.Config.KeyType
Specifies what kind of key this is (string, font, or distance).static Config.Key
Returns the enum constant of this class with the specified name.static Config.Key[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TITLE
-
SUBTITLE
-
AUTHOR
-
PUBLISHER_NAME
-
PUBLISHER_LOCATION
-
COPYRIGHT
-
COLOPHON
-
TOC_TITLE
-
TOC_STYLE
-
INDEX_TITLE
-
LANGUAGE
-
BODY_FONT
-
BLOCK_QUOTE_FONT
-
BODY_CODE_FONT
-
CAPTION_FONT
-
PART_HEADER_FONT
-
CHAPTER_HEADER_FONT
-
MINOR_HEADER_FONT
-
PAGE_NUMBER_FONT
-
CODE_FONT
-
OUTPUT_FONT
-
INPUT_FONT
-
HEADLINE_FONT
-
HALF_TITLE_PAGE_TITLE_FONT
-
HALF_TITLE_PAGE_SUBTITLE_FONT
-
TITLE_PAGE_AUTHOR_FONT
-
TITLE_PAGE_TITLE_FONT
-
TITLE_PAGE_SUBTITLE_FONT
-
TITLE_PAGE_PUBLISHER_NAME_FONT
-
TITLE_PAGE_PUBLISHER_LOCATION_FONT
-
COPYRIGHT_PAGE_COPYRIGHT_FONT
-
COPYRIGHT_PAGE_COLOPHON_FONT
-
TOC_PAGE_TITLE_FONT
-
TOC_PAGE_PART_FONT
-
TOC_PAGE_CHAPTER_FONT
-
FOOTNOTE_NUMBER_FONT
-
FALLBACK_TYPEFACE
-
PAGE_WIDTH
-
PAGE_HEIGHT
-
PAGE_MARGIN_TOP
-
PAGE_MARGIN_BOTTOM
-
PAGE_MARGIN_OUTER
-
PAGE_MARGIN_INNER
-
FOOTNOTE_SHIFT
-
-
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
-
getKeyType
public com.teamten.typeset.Config.KeyType getKeyType()Specifies what kind of key this is (string, font, or distance). -
fromHeader
The string key is converted to upper case, and hyphens are converted to underscores.- Throws:
IllegalArgumentException
- if the key does not match one of the entries in the enum.
-