public abstract class AbstractCharacterTextNode extends AbstractTextNode
Modifier and Type | Field and Description |
---|---|
int |
color |
String |
fontFamily |
double |
fontSize |
protected static double |
FONTSIZE_MAX_INCLUSIVE |
protected static double |
FONTSIZE_MIN_INCLUSIVE |
String |
fontStyle |
String |
fontWeight |
Kerning |
kerning |
LineBreak |
lineBreak |
double |
lineHeight |
boolean |
lineThrough |
double |
textAlpha |
String |
textDecoration |
double |
tracking |
WhiteSpaceCollapse |
whiteSpaceCollapse |
content, id, textAttributes
ALPHA_MAX_INCLUSIVE, ALPHA_MIN_INCLUSIVE, COLOR_BLACK, COLOR_RED, COLOR_WHITE, documentNode, endColumn, endLine, EPSILON, GRADIENT_ENTRIES_MAX_INCLUSIVE, startColumn, startLine, uri
Constructor and Description |
---|
AbstractCharacterTextNode() |
Modifier and Type | Method and Description |
---|---|
static Kerning |
getKerning(IFXGNode node,
String value,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a Kerning enumeration.
|
static LineBreak |
getLineBreak(IFXGNode node,
String value,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a LineBreak enumeration.
|
static WhiteSpaceCollapse |
getWhiteSpaceCollapse(IFXGNode node,
String value,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a WhiteSpaceCollapse enumeration.
|
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
This implementation processes character attributes that are common to
<TextGraphic>, <p>, and <span>.
|
addChild, addTextProperty, getChildren, getId, getTextAttributes, getTextChildren, getTextProperties, rememberAttribute, setId
getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getFileVersion, getNodeURI, getStartColumn, getStartLine, isVersionGreaterThanCompiler, setDocumentNode, setEndColumn, setEndLine, setNodeURI, setStartColumn, setStartLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getNodeName, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLine
protected static final double FONTSIZE_MIN_INCLUSIVE
protected static final double FONTSIZE_MAX_INCLUSIVE
public String fontFamily
public double fontSize
public String fontStyle
public String fontWeight
public double lineHeight
public String textDecoration
public WhiteSpaceCollapse whiteSpaceCollapse
public LineBreak lineBreak
public double tracking
public Kerning kerning
public double textAlpha
public int color
public boolean lineThrough
public void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
The right hand side of an ActionScript assignment is generated for each property based on the expected type of the attribute.
Character attributes include:
setAttribute
in interface IFXGNode
setAttribute
in class AbstractTextNode
name
- - the unqualified attribute namevalue
- - the attribute valueproblems
- problem collection used to collect problems occurred within this methodpublic static Kerning getKerning(IFXGNode node, String value, Collection<ICompilerProblem> problems)
value
- - the FXG String value.public static LineBreak getLineBreak(IFXGNode node, String value, Collection<ICompilerProblem> problems)
value
- - the FXG String value.public static WhiteSpaceCollapse getWhiteSpaceCollapse(IFXGNode node, String value, Collection<ICompilerProblem> problems)
value
- - the FXG String value.Copyright © 2016 The Apache Software Foundation. All rights reserved.