public class TextGraphicNode extends GraphicContentNode implements ITextNode
Modifier and Type | Field and Description |
---|---|
String |
blockProgression |
int |
color |
protected List<ITextNode> |
content
This nodes child text nodes.
|
String |
direction |
String |
fontFamily |
double |
fontSize |
String |
fontStyle |
String |
fontWeight |
double |
height |
Kerning |
kerning |
LineBreak |
lineBreak |
double |
lineHeight |
boolean |
lineThrough |
double |
marginBottom |
double |
marginLeft |
double |
marginRight |
double |
marginTop |
double |
paddingBottom |
double |
paddingLeft |
double |
paddingRight |
double |
paddingTop |
String |
textAlign |
String |
textAlignLast |
double |
textAlpha |
protected Map<String,String> |
textAttributes
The attributes set on this node.
|
String |
textDecoration |
double |
textIndent |
double |
tracking |
WhiteSpaceCollapse |
whiteSpaceCollapse |
double |
width |
alpha, alphaSet, blendMode, colorTransform, filters, id, isPartofClipMask, luminosityClip, luminosityInvert, mask, maskType, maskTypeSet, matrix, rotation, rotationSet, scaleSet, scaleX, scaleY, translateSet, visible, x, y
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 |
---|
TextGraphicNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
This method is invoked for only non-content children.
|
void |
addContentChild(IFXGNode child,
Collection<ICompilerProblem> problems)
<TextGraphic> content allows child <p>, <span> and
<br /> tags, as well as character data (text content).
|
void |
addTextProperty(String propertyName,
ITextNode node,
Collection<ICompilerProblem> problems)
A text node may also have special child property nodes that represent
complex property values that cannot be set via a simple attribute.
|
List<IFXGNode> |
getChildren()
debug method, do not use
|
String |
getNodeName() |
Map<String,String> |
getTextAttributes() |
List<ITextNode> |
getTextChildren() |
HashMap<String,ITextNode> |
getTextProperties() |
protected void |
rememberAttribute(String name,
String value)
Remember that an attribute was set on this node.
|
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
Sets an FXG attribute on this TextGraphic node.
|
convertTransformAttrToMatrix, createGraphicContext, getId, getLuminosityClip, getLuminosityInvert, getMask, getMaskType, parseBlendMode, setId, setParentGraphicContext
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, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLine
public double width
public double height
public double paddingLeft
public double paddingRight
public double paddingBottom
public double paddingTop
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 boolean lineThrough
public double tracking
public Kerning kerning
public double textAlpha
public int color
public String textAlign
public String textAlignLast
public double textIndent
public double marginLeft
public double marginRight
public double marginTop
public double marginBottom
public String direction
public String blockProgression
public Map<String,String> getTextAttributes()
getTextAttributes
in interface ITextNode
public List<ITextNode> getTextChildren()
getTextChildren
in interface ITextNode
public HashMap<String,ITextNode> getTextProperties()
getTextProperties
in interface ITextNode
public void addTextProperty(String propertyName, ITextNode node, Collection<ICompilerProblem> problems)
addTextProperty
in interface ITextNode
propertyName
- - the property's local namenode
- - the value nodeproblems
- problems to collectprotected void rememberAttribute(String name, String value)
name
- - the unqualified attribute name.value
- - the attribute value.public void addContentChild(IFXGNode child, Collection<ICompilerProblem> problems)
child
- - a child FXG node to be added to this node.problems
- problem collection used to collect problems occurred within this methodpublic List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
getChildren
in class GraphicContentNode
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
addChild
in interface IFXGNode
addChild
in class GraphicContentNode
child
- - a child FXG node to be added to this node.problems
- problem collection used to collect problems occurred within this methodpublic String getNodeName()
getNodeName
in interface IFXGNode
public void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute
in interface IFXGNode
setAttribute
in class GraphicContentNode
name
- - the unqualified attribute name.value
- - the attribute value.problems
- problem collection used to collect problems occurred within this methodCopyright © 2016 The Apache Software Foundation. All rights reserved.