public class GraphicNode extends AbstractFXGNode implements IMaskableNode
Modifier and Type | Field and Description |
---|---|
List<GraphicContentNode> |
children |
LibraryNode |
library |
protected boolean |
luminosityClip |
protected boolean |
luminosityInvert |
IMaskingNode |
mask |
MaskType |
maskType |
Map<String,Class<? extends IFXGNode>> |
reservedNodes |
double |
scaleGridBottom |
double |
scaleGridLeft |
double |
scaleGridRight |
double |
scaleGridTop |
double |
viewHeight |
double |
viewWidth |
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 |
---|
GraphicNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
Adds an FXG child node to this Graphic node.
|
boolean |
definesScaleGrid() |
List<IFXGNode> |
getChildren()
debug method, do not use
|
PlaceObjectNode |
getDefinitionInstance(String name) |
String |
getDocumentPath() |
boolean |
getLuminosityClip() |
boolean |
getLuminosityInvert() |
IMaskingNode |
getMask() |
MaskType |
getMaskType() |
String |
getNodeName() |
ScalingGrid |
getScalingGrid() |
FXGVersion |
getVersion() |
boolean |
isVersionGreaterThanCompiler() |
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
Sets an FXG attribute on this Graphic node.
|
void |
setDocumentPath(String documentPath)
Set the path of the FXG file being processed.
|
void |
setReservedNodes(Map<String,Class<? extends IFXGNode>> reservedNodes)
Set the reserved nodes HashMap.
|
void |
setVersionGreaterThanCompiler(boolean versionGreaterThanCompiler)
sets isVersionGreaterThanCompiler
|
getDocumentNode, getEndColumn, getEndLine, getFileVersion, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setNodeURI, setStartColumn, setStartLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDocumentNode, getEndColumn, getEndLine, getNodeURI, getStartColumn, getStartLine, setDocumentNode, setEndColumn, setEndLine, setStartColumn, setStartLine
public double scaleGridLeft
public double scaleGridTop
public double scaleGridRight
public double scaleGridBottom
public double viewWidth
public double viewHeight
public MaskType maskType
protected boolean luminosityInvert
protected boolean luminosityClip
public List<GraphicContentNode> children
public LibraryNode library
public IMaskingNode mask
public List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
getChildren
in class AbstractFXGNode
public boolean isVersionGreaterThanCompiler()
isVersionGreaterThanCompiler
in class AbstractFXGNode
public void setVersionGreaterThanCompiler(boolean versionGreaterThanCompiler)
versionGreaterThanCompiler
- The value to be set.public String getDocumentPath()
getDocumentPath
in interface IFXGNode
getDocumentPath
in class AbstractFXGNode
public void setDocumentPath(String documentPath)
public FXGVersion getVersion()
public void setReservedNodes(Map<String,Class<? extends IFXGNode>> reservedNodes)
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
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 String getNodeName()
getNodeName
in interface IFXGNode
public void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
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 PlaceObjectNode getDefinitionInstance(String name)
public ScalingGrid getScalingGrid()
public boolean definesScaleGrid()
Copyright © 2016 The Apache Software Foundation. All rights reserved.