public class TextHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static double |
ALPHA_MAX_INCLUSIVE |
protected static double |
ALPHA_MIN_INCLUSIVE |
protected static Pattern |
tabstopsDNumericPattern |
protected static Pattern |
tabstopsDScientificPattern |
protected static Pattern |
tabstopsExceptDNumericPattern |
protected static Pattern |
tabstopsExceptDScientificPattern |
protected static Pattern |
tabstopsNumberPattern |
protected static Pattern |
whitespacePattern |
Constructor and Description |
---|
TextHelper() |
Modifier and Type | Method and Description |
---|---|
static AlignmentBaseline |
getAlignmentBaseline(IFXGNode node,
String value,
AlignmentBaseline defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a AlignmentBaseline enumeration.
|
static BlockProgression |
getBlockProgression(IFXGNode node,
String value,
BlockProgression defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a BlockProgression enumeration.
|
static BreakOpportunity |
getBreakOpportunity(IFXGNode node,
String value,
BreakOpportunity defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a BreakOpportunity enumeration.
|
static DigitCase |
getDigitCase(IFXGNode node,
String value,
DigitCase defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a DigitCase enumeration.
|
static DigitWidth |
getDigitWidth(IFXGNode node,
String value,
DigitWidth defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a DigitWidth enumeration.
|
static Direction |
getDirection(IFXGNode node,
String value,
Direction defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a Direction enumeration.
|
static DominantBaseline |
getDominantBaseline(IFXGNode node,
String value,
DominantBaseline defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a DominantBaseline enumeration.
|
static FontStyle |
getFontStyle(IFXGNode node,
String value,
FontStyle defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a FontStyle enumeration.
|
static FontWeight |
getFontWeight(IFXGNode node,
String value,
FontWeight defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a FontWeight enumeration.
|
static JustificationRule |
getJustificationRule(IFXGNode node,
String value,
JustificationRule defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a JustificationRule enumeration.
|
static JustificationStyle |
getJustificationStyle(IFXGNode node,
String value,
JustificationStyle defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a JustificationStyle enumeration.
|
static Kerning |
getKerning(IFXGNode node,
String value,
Kerning defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a Kerning enumeration.
|
static LeadingModel |
getLeadingModel(IFXGNode node,
String value,
LeadingModel defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a LeadingModel enumeration.
|
static LigatureLevel |
getLigatureLevel(IFXGNode node,
String value,
LigatureLevel defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a LigatureLevel enumeration.
|
static LineBreak |
getLineBreak(IFXGNode node,
String value,
LineBreak defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a LineBreak enumeration.
|
static TextAlign |
getTextAlign(IFXGNode node,
String value,
TextAlign defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a TextAlign enumeration.
|
static TextDecoration |
getTextDecoration(IFXGNode node,
String value,
TextDecoration defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a TextDecoration enumeration.
|
static TextJustify |
getTextJustify(IFXGNode node,
String value,
TextJustify defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a TextJustify enumeration.
|
static TextRotation |
getTextRotation(IFXGNode node,
String value,
TextRotation defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a TextRotation enumeration.
|
static TypographicCase |
getTypographicCase(IFXGNode node,
String value,
TypographicCase defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a TypographicCase enumeration.
|
static VerticalAlign |
getVerticalAlign(IFXGNode node,
String value,
VerticalAlign defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a VerticalAlign enumeration.
|
static WhiteSpaceCollapse |
getWhiteSpaceCollapse(IFXGNode node,
String value,
WhiteSpaceCollapse defaultValue,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a WhiteSpaceCollapse enumeration.
|
static boolean |
ignorableWhitespace(String value)
Determine if a string contains only ignorable white spaces.
|
static String |
parseTabStops(IFXGNode node,
String value,
String defaultValue,
Collection<ICompilerProblem> problems) |
protected static final double ALPHA_MIN_INCLUSIVE
protected static final double ALPHA_MAX_INCLUSIVE
protected static Pattern whitespacePattern
protected static Pattern tabstopsExceptDNumericPattern
protected static Pattern tabstopsExceptDScientificPattern
protected static Pattern tabstopsDNumericPattern
protected static Pattern tabstopsDScientificPattern
protected static Pattern tabstopsNumberPattern
public static boolean ignorableWhitespace(String value)
value
- - value to be checked.public static FontStyle getFontStyle(IFXGNode node, String value, FontStyle defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static FontWeight getFontWeight(IFXGNode node, String value, FontWeight defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static TextDecoration getTextDecoration(IFXGNode node, String value, TextDecoration defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static Kerning getKerning(IFXGNode node, String value, Kerning defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static WhiteSpaceCollapse getWhiteSpaceCollapse(IFXGNode node, String value, WhiteSpaceCollapse defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static BreakOpportunity getBreakOpportunity(IFXGNode node, String value, BreakOpportunity defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static DigitCase getDigitCase(IFXGNode node, String value, DigitCase defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static DigitWidth getDigitWidth(IFXGNode node, String value, DigitWidth defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static DominantBaseline getDominantBaseline(IFXGNode node, String value, DominantBaseline defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static AlignmentBaseline getAlignmentBaseline(IFXGNode node, String value, AlignmentBaseline defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static LigatureLevel getLigatureLevel(IFXGNode node, String value, LigatureLevel defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static TypographicCase getTypographicCase(IFXGNode node, String value, TypographicCase defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static TextRotation getTextRotation(IFXGNode node, String value, TextRotation defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static TextAlign getTextAlign(IFXGNode node, String value, TextAlign defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static Direction getDirection(IFXGNode node, String value, Direction defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static JustificationRule getJustificationRule(IFXGNode node, String value, JustificationRule defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static JustificationStyle getJustificationStyle(IFXGNode node, String value, JustificationStyle defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static TextJustify getTextJustify(IFXGNode node, String value, TextJustify defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static LeadingModel getLeadingModel(IFXGNode node, String value, LeadingModel defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static BlockProgression getBlockProgression(IFXGNode node, String value, BlockProgression defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static LineBreak getLineBreak(IFXGNode node, String value, LineBreak defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static VerticalAlign getVerticalAlign(IFXGNode node, String value, VerticalAlign defaultValue, Collection<ICompilerProblem> problems)
value
- - the FXG String value.defaultValue
- default value to use in case of any problemproblems
- problem collection used to collect problems occurred within this methodpublic static String parseTabStops(IFXGNode node, String value, String defaultValue, Collection<ICompilerProblem> problems)
Copyright © 2016 The Apache Software Foundation. All rights reserved.