public class RichTextNode extends GraphicContentNode implements ITextNode
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 |
---|
RichTextNode() |
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)
<RichText> 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 RichText node can 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() |
Map<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 RichText 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
protected static final double FONTSIZE_MIN_INCLUSIVE
protected static final double FONTSIZE_MAX_INCLUSIVE
protected static final double PADDING_MIN_INCLUSIVE
protected static final double PADDING_MAX_INCLUSIVE
protected static final double BASELINEOFFSET_MIN_INCLUSIVE
protected static final double BASELINEOFFSET_MAX_INCLUSIVE
protected static final double BASELINESHIFT_MIN_INCLUSIVE
protected static final double BASELINESHIFT_MAX_INCLUSIVE
protected static final int COLUMNCOUNT_MIN_INCLUSIVE
protected static final int COLUMNCOUNT_MAX_INCLUSIVE
protected static final double COLUMNGAP_MIN_INCLUSIVE
protected static final double COLUMNGAP_MAX_INCLUSIVE
protected static final double COLUMNWIDTH_MIN_INCLUSIVE
protected static final double COLUMNWIDTH_MAX_INCLUSIVE
protected static final double LINEHEIGHT_PERCENT_MIN_INCLUSIVE
protected static final double LINEHEIGHT_PERCENT_MAX_INCLUSIVE
protected static final double LINEHEIGHT_PIXEL_MIN_INCLUSIVE
protected static final double LINEHEIGHT_PIXEL_MAX_INCLUSIVE
protected static final double PARAGRAPH_INDENT_MIN_INCLUSIVE
protected static final double PARAGRAPH_INDENT_MAX_INCLUSIVE
protected static final double PARAGRAPH_SPACE_MIN_INCLUSIVE
protected static final double PARAGRAPH_SPACE_MAX_INCLUSIVE
protected static final double TEXTINDENT_MIN_INCLUSIVE
protected static final double TEXTINDENT_MAX_INCLUSIVE
protected static final double TRACKING_MIN_INCLUSIVE
protected static final double TRACKING_MAX_INCLUSIVE
public double width
public double height
public BlockProgression blockProgression
public NumberInherit paddingLeft
public NumberInherit paddingRight
public NumberInherit paddingTop
public NumberInherit paddingBottom
public LineBreak lineBreak
public NumberInherit columnGap
public NumberAuto columnCount
public NumberAuto columnWidth
public BaselineOffset firstBaselineOffset
public VerticalAlign verticalAlign
public TextAlign textAlign
public TextAlign textAlignLast
public double textIndent
public double paragraphStartIndent
public double paragraphEndIndent
public double paragraphSpaceBefore
public double paragraphSpaceAfter
public Direction direction
public JustificationRule justificationRule
public JustificationStyle justificationStyle
public TextJustify textJustify
public LeadingModel leadingModel
public String tabStops
public String fontFamily
public double fontSize
public FontStyle fontStyle
public FontWeight fontWeight
public Kerning kerning
public double lineHeight
public TextDecoration textDecoration
public boolean lineThrough
public int color
public double textAlpha
public WhiteSpaceCollapse whiteSpaceCollapse
public NumberInherit backgroundAlpha
public ColorWithEnum backgroundColor
public BaselineShift baselineShift
public BreakOpportunity breakOpportunity
public DigitCase digitCase
public DigitWidth digitWidth
public DominantBaseline dominantBaseline
public AlignmentBaseline alignmentBaseline
public LigatureLevel ligatureLevel
public String locale
public TypographicCase typographicCase
public double trackingLeft
public double trackingRight
public TextRotation textRotation
public TextLayoutFormatNode linkNormalFormat
public TextLayoutFormatNode linkHoverFormat
public TextLayoutFormatNode linkActiveFormat
public Map<String,String> getTextAttributes()
getTextAttributes
in interface ITextNode
public List<ITextNode> getTextChildren()
getTextChildren
in interface ITextNode
public Map<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 collectpublic 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 methodprotected void rememberAttribute(String name, String value)
name
- - the unqualified attribute name.value
- - the attribute value.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 List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
getChildren
in class GraphicContentNode
public 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.