Class CommonHyphenation
java.lang.Object
org.apache.fop.fo.properties.CommonHyphenation
Store all common hyphenation properties.
See Sec. 7.9 of the XSL-FO Standard.
Public "structure" allows direct member access.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PropertyCache<CommonHyphenation> final StringPropertyThe "country" propertyprivate intprivate static final charfinal EnumPropertyThe "hyphenate" propertyThe "hyphenation-character" propertyfinal NumberPropertyThe "hyphenation-push-character-count" propertyfinal NumberPropertyThe "hyphenation-remain-character-count" propertyfinal StringPropertyThe "language" propertyprivate static final org.apache.commons.logging.LogLoggerprivate static final charfinal StringPropertyThe "script" property -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCommonHyphenation(StringProperty language, StringProperty country, StringProperty script, EnumProperty hyphenate, OptionalCharacterProperty hyphenationCharacter, NumberProperty hyphenationPushCharacterCount, NumberProperty hyphenationRemainCharacterCount) Construct a CommonHyphenation object holding the given properties -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHyphChar(Font font) Returns the effective hyphenation character for a font.intgetHyphIPD(Font font) Returns the IPD for the hyphenation character for a font.static CommonHyphenationgetInstance(PropertyList propertyList) Gets the canonicalCommonHyphenationinstance corresponding to the values of the related properties present on the givenPropertyListCreates and returns aLocalerepresentation of the language and country.inthashCode()private static booleanstatic LocaleCreates and returns aLocalerepresentation of the given language, and the given country if set.
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOGLogger -
CACHE
-
hash
private int hash -
language
The "language" property -
country
The "country" property -
script
The "script" property -
hyphenate
The "hyphenate" property -
hyphenationCharacter
The "hyphenation-character" property -
hyphenationPushCharacterCount
The "hyphenation-push-character-count" property -
hyphenationRemainCharacterCount
The "hyphenation-remain-character-count" property -
HYPHEN_MINUS
private static final char HYPHEN_MINUS- See Also:
-
MINUS_SIGN
private static final char MINUS_SIGN- See Also:
-
-
Constructor Details
-
CommonHyphenation
private CommonHyphenation(StringProperty language, StringProperty country, StringProperty script, EnumProperty hyphenate, OptionalCharacterProperty hyphenationCharacter, NumberProperty hyphenationPushCharacterCount, NumberProperty hyphenationRemainCharacterCount) Construct a CommonHyphenation object holding the given properties
-
-
Method Details
-
getInstance
Gets the canonicalCommonHyphenationinstance corresponding to the values of the related properties present on the givenPropertyList- Parameters:
propertyList- thePropertyList- Returns:
- a common hyphenation instance
- Throws:
PropertyException- if a a property exception occurs
-
getHyphChar
-
getHyphIPD
Returns the IPD for the hyphenation character for a font.- Parameters:
font- the font- Returns:
- the IPD in millipoints for the hyphenation character.
-
getLocale
-
toLocale
Creates and returns aLocalerepresentation of the given language, and the given country if set. The country is considered to be set if notnulland not set to "none".- Returns:
- the language and country represented as a locale,
nullif the language is null or "none" (case insensitive)
-
isDefined
-
equals
-
hashCode
-