public final class CommonHyphenation extends Object
Modifier and Type | Field and Description |
---|---|
StringProperty |
country
The "country" property
|
EnumProperty |
hyphenate
The "hyphenate" property
|
OptionalCharacterProperty |
hyphenationCharacter
The "hyphenation-character" property
|
NumberProperty |
hyphenationPushCharacterCount
The "hyphenation-push-character-count" property
|
NumberProperty |
hyphenationRemainCharacterCount
The "hyphenation-remain-character-count" property
|
StringProperty |
language
The "language" property
|
StringProperty |
script
The "script" property
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Character |
getHyphChar(Font font)
Returns the effective hyphenation character for a font.
|
int |
getHyphIPD(Font font)
Returns the IPD for the hyphenation character for a font.
|
static CommonHyphenation |
getInstance(PropertyList propertyList)
Gets the canonical
CommonHyphenation instance corresponding
to the values of the related properties present on the given
PropertyList |
Locale |
getLocale()
Creates and returns a
Locale representation of the language and country. |
int |
hashCode() |
static Locale |
toLocale(String language,
String country)
Creates and returns a
Locale representation of the given language, and the
given country if set. |
public final StringProperty language
public final StringProperty country
public final StringProperty script
public final EnumProperty hyphenate
public final OptionalCharacterProperty hyphenationCharacter
public final NumberProperty hyphenationPushCharacterCount
public final NumberProperty hyphenationRemainCharacterCount
public static CommonHyphenation getInstance(PropertyList propertyList) throws PropertyException
CommonHyphenation
instance corresponding
to the values of the related properties present on the given
PropertyList
propertyList
- the PropertyList
PropertyException
- if a a property exception occurspublic Character getHyphChar(Font font)
font
- the fontpublic int getHyphIPD(Font font)
font
- the fontpublic Locale getLocale()
Locale
representation of the language and country.null
if the language has not been set (i.e., has been left to its initial value of
"none")public static Locale toLocale(String language, String country)
Locale
representation of the given language, and the
given country if set. The country is considered to be set if not null
and
not set to "none".null
if the
language is null or "none" (case insensitive)Copyright © 2025 Apache Software Foundation. All rights reserved.