public final class TextEditOptions extends TextOptions
Descubes options of text edit operations.
Modifier and Type | Class and Description |
---|---|
static class |
TextEditOptions.ClippingPathsProcessingMode
Clipping path processing modes
|
static class |
TextEditOptions.FontReplace
Font replacement behavior.
|
static class |
TextEditOptions.LanguageTransformation
Language transformation modes
|
static class |
TextEditOptions.NoCharacterAction
Action to perform if font does not contain required character
|
Constructor and Description |
---|
TextEditOptions()
Initializes new instance of the
TextEditOptions object with default options. |
TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the
TextEditOptions object for the specified language
transformation permission. |
TextEditOptions(int noCharacterBehavior)
Initializes new instance of the
TextEditOptions object for the specified no-character
behavior mode. |
TextEditOptions(int option,
Class type)
Initializes new instance of the
TextEditOptions object for the specified no-character
behavior mode. |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowLanguageTransformation()
Gets value that permits usage of language transformation during adding or editing of text.
|
int |
getClippingPathsProcessing()
Gets mode for processing clipping path of the edited text.
|
int |
getFontReplaceBehavior()
Gets mode that defines behavior for fonts replacement scenarios.
|
int |
getLanguageTransformationBehavior()
Gets mode that defines behavior for language transformation scenarios.
|
int |
getNoCharacterBehavior()
Gets mode that defines behavior in case fonts don't contain requested characters.
|
Font |
getReplacementFont()
Gets or sets font used for replacing if user font does not contain required character
|
boolean |
getToAttemptGetUnderlineFromSource()
Gets or sets value that permits searching for text underlining on the page of source
document.
|
void |
setAllowLanguageTransformation(boolean value)
Sets value that permits usage of language transformation during adding or editing of text.
|
void |
setClippingPathsProcessing(int value)
Gets mode for processing clipping path of the edited text.
|
void |
setFontReplaceBehavior(int value)
Sets mode that defines behavior for fonts replacement scenarios.
|
void |
setLanguageTransformationBehavior(int value)
Sets mode that defines behavior for language transformation scenarios.
|
void |
setNoCharacterBehavior(int value)
Sets mode that defines behavior in case fonts don't contain requested characters.
|
void |
setReplacementFont(Font value)
Gets or sets font used for replacing if user font does not contain required character
|
void |
setToAttemptGetUnderlineFromSource(boolean value)
Gets or sets value that permits searching for text underlining on the page of source
document.
|
public TextEditOptions()
Initializes new instance of the TextEditOptions
object with default options.
NoCharacterAction.UseStandardFont
LanguageTransformation.Default
public TextEditOptions(int noCharacterBehavior)
Initializes new instance of the TextEditOptions
object for the specified no-character
behavior mode. Please init fontReplaceBehavior by using setFontReplaceBehavior(int)
noCharacterBehavior
- No-character behavior mode object.TextEditOptions.NoCharacterAction
public TextEditOptions(int option, Class type)
Initializes new instance of the TextEditOptions
object for the specified no-character
behavior mode. Please init fontReplaceBehavior by using setFontReplaceBehavior(int)
option
- value for one from the following classes:
NoCharacterAction, LanguageTransformation, FontReplace,type
- class of the optionTextEditOptions.NoCharacterAction
public TextEditOptions(boolean allowLanguageTransformation)
Initializes new instance of the TextEditOptions
object for the specified language
transformation permission.
allowLanguageTransformation
- Allows language transformation if set to true.public final Font getReplacementFont()
Gets or sets font used for replacing if user font does not contain required character
public final void setReplacementFont(Font value)
Gets or sets font used for replacing if user font does not contain required character
value
- Font instancepublic int getNoCharacterBehavior()
Gets mode that defines behavior in case fonts don't contain requested characters.
TextEditOptions.NoCharacterAction
public void setNoCharacterBehavior(int value)
Sets mode that defines behavior in case fonts don't contain requested characters.
value
- NoCharacterAction valueTextEditOptions.NoCharacterAction
public int getFontReplaceBehavior()
TextEditOptions.FontReplace
public void setFontReplaceBehavior(int value)
value
- FontReplace valueTextEditOptions.FontReplace
public boolean getAllowLanguageTransformation()
Gets value that permits usage of language transformation during adding or editing of text. true - language transformation will be applied if necessary (default value). false - language transformation will NOT be applied.
public void setAllowLanguageTransformation(boolean value)
Sets value that permits usage of language transformation during adding or editing of text. true - language transformation will be applied if necessary (default value). false - language transformation will NOT be applied.
value
- boolean valuepublic int getLanguageTransformationBehavior()
Gets mode that defines behavior for language transformation scenarios.
TextEditOptions.LanguageTransformation
public void setLanguageTransformationBehavior(int value)
Sets mode that defines behavior for language transformation scenarios.
value
- LanguageTransformation valueTextEditOptions.LanguageTransformation
public final int getClippingPathsProcessing()
Gets mode for processing clipping path of the edited text.
public final void setClippingPathsProcessing(int value)
Gets mode for processing clipping path of the edited text.
value
- ClippingPathsProcessingMode elementpublic boolean getToAttemptGetUnderlineFromSource()
Gets or sets value that permits searching for text underlining on the page of source document. (Obsolete) Please use TextSearchOptions.SearchForTextRelatedGraphics instead this.
public void setToAttemptGetUnderlineFromSource(boolean value)
Gets or sets value that permits searching for text underlining on the page of source document. (Obsolete) Please use TextSearchOptions.SearchForTextRelatedGraphics instead this.
value
- boolean value