public abstract class GraphicContentNode extends AbstractFXGNode implements IMaskableNode
Modifier and Type | Field and Description |
---|---|
double |
alpha |
protected boolean |
alphaSet |
BlendMode |
blendMode |
ColorTransformNode |
colorTransform |
List<IFilterNode> |
filters |
protected String |
id |
boolean |
isPartofClipMask |
boolean |
luminosityClip |
boolean |
luminosityInvert |
IMaskingNode |
mask |
MaskType |
maskType |
protected boolean |
maskTypeSet |
MatrixNode |
matrix |
double |
rotation |
protected boolean |
rotationSet |
protected boolean |
scaleSet |
double |
scaleX |
double |
scaleY |
protected boolean |
translateSet |
boolean |
visible |
double |
x |
double |
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 |
---|
GraphicContentNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
Adds an FXG child node to this node.
|
void |
convertTransformAttrToMatrix(Collection<ICompilerProblem> problems)
Convert discreet transform attributes to child matrix.
|
GraphicContext |
createGraphicContext() |
List<IFXGNode> |
getChildren()
debug method, do not use
|
String |
getId()
An id attribute provides a well defined name to a text node.
|
boolean |
getLuminosityClip() |
boolean |
getLuminosityInvert() |
IMaskingNode |
getMask() |
MaskType |
getMaskType() |
protected BlendMode |
parseBlendMode(String value,
BlendMode defMode,
Collection<ICompilerProblem> problems)
Convert an FXG String value to a BlendMode enumeration.
|
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
Sets an FXG attribute on this FXG node.
|
void |
setId(String value)
Sets the node id.
|
void |
setParentGraphicContext(GraphicContext context) |
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 String id
public boolean visible
public double x
public double y
public double scaleX
public double scaleY
public double rotation
public double alpha
public BlendMode blendMode
public MaskType maskType
public boolean luminosityClip
public boolean luminosityInvert
protected boolean translateSet
protected boolean scaleSet
protected boolean rotationSet
protected boolean alphaSet
protected boolean maskTypeSet
public boolean isPartofClipMask
public List<IFilterNode> filters
public IMaskingNode mask
public MatrixNode matrix
public ColorTransformNode colorTransform
public String getId()
public void setId(String value)
value
- - the node id as a String.public List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
getChildren
in class AbstractFXGNode
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
Graphic content nodes support child property nodes <filter>, <mask>, <matrix>, or <colorTransform>.
addChild
in interface IFXGNode
addChild
in class AbstractFXGNode
child
- - a child FXG node to be added to this node.problems
- problem collection used to collect problems occurred within this methodpublic void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
Graphic content nodes support the following attributes:
Graphic content nodes also support an id attribute.
setAttribute
in interface IFXGNode
setAttribute
in class AbstractFXGNode
name
- - the unqualified attribute namevalue
- - the attribute valueproblems
- problem collection used to collect problems occurred within this methodpublic IMaskingNode getMask()
getMask
in interface IMaskableNode
public MaskType getMaskType()
getMaskType
in interface IMaskableNode
public boolean getLuminosityClip()
getLuminosityClip
in interface IMaskableNode
public boolean getLuminosityInvert()
getLuminosityInvert
in interface IMaskableNode
public GraphicContext createGraphicContext()
public void setParentGraphicContext(GraphicContext context)
protected BlendMode parseBlendMode(String value, BlendMode defMode, Collection<ICompilerProblem> problems)
value
- - the FXG String valueproblems
- problem collection used to collect problems occurred within this methodpublic void convertTransformAttrToMatrix(Collection<ICompilerProblem> problems)
Copyright © 2016 The Apache Software Foundation. All rights reserved.