public final class CommonHyphenation
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
StringProperty |
country
The "country" property
|
EnumProperty |
hyphenate
The "hyphenate" property
|
CharacterProperty |
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(java.lang.Object obj) |
char |
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 |
java.util.Locale |
getLocale()
Creates and returns a
Locale representation of the language and country. |
int |
hashCode() |
static java.util.Locale |
toLocale(java.lang.String language,
java.lang.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 CharacterProperty 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 char getHyphChar(Font font)
font
- the fontpublic int getHyphIPD(Font font)
font
- the fontpublic java.util.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 java.util.Locale toLocale(java.lang.String language, java.lang.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)public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.