public abstract class AbstractFXGNode extends Object implements IFXGNode
Modifier and Type | Field and Description |
---|---|
static double |
ALPHA_MAX_INCLUSIVE |
static double |
ALPHA_MIN_INCLUSIVE |
static int |
COLOR_BLACK |
static int |
COLOR_RED |
static int |
COLOR_WHITE |
protected IFXGNode |
documentNode |
protected int |
endColumn |
protected int |
endLine |
static double |
EPSILON |
static int |
GRADIENT_ENTRIES_MAX_INCLUSIVE |
protected int |
startColumn |
protected int |
startLine |
protected String |
uri |
Constructor and Description |
---|
AbstractFXGNode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(IFXGNode child,
Collection<ICompilerProblem> problems)
Adds an FXG child node to this node.
|
List<IFXGNode> |
getChildren()
debug method, do not use
|
IFXGNode |
getDocumentNode() |
String |
getDocumentPath() |
int |
getEndColumn() |
int |
getEndLine() |
FXGVersion |
getFileVersion() |
String |
getNodeURI()
return the namespace URI of this node.
|
int |
getStartColumn() |
int |
getStartLine() |
boolean |
isVersionGreaterThanCompiler() |
void |
setAttribute(String name,
String value,
Collection<ICompilerProblem> problems)
Sets an FXG attribute on this FXG node.
|
void |
setDocumentNode(IFXGNode root)
Establishes the root node of the FXG document containing this node.
|
void |
setEndColumn(int column) |
void |
setEndLine(int line) |
void |
setNodeURI(String uri) |
void |
setStartColumn(int column) |
void |
setStartLine(int line) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getNodeName
protected IFXGNode documentNode
protected String uri
protected int startLine
protected int startColumn
protected int endLine
protected int endColumn
public static final double ALPHA_MIN_INCLUSIVE
public static final double ALPHA_MAX_INCLUSIVE
public static final int COLOR_BLACK
public static final int COLOR_WHITE
public static final int COLOR_RED
public static final int GRADIENT_ENTRIES_MAX_INCLUSIVE
public static final double EPSILON
public void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
public List<IFXGNode> getChildren()
IFXGNode
getChildren
in interface IFXGNode
public void setAttribute(String name, String value, Collection<ICompilerProblem> problems)
setAttribute
in interface IFXGNode
name
- - the unqualified attribute namevalue
- - the attribute valueproblems
- problem collection used to collect problems occurred within this methodpublic IFXGNode getDocumentNode()
getDocumentNode
in interface IFXGNode
public void setDocumentNode(IFXGNode root)
setDocumentNode
in interface IFXGNode
root
- - the root node of the FXG document.public String getDocumentPath()
getDocumentPath
in interface IFXGNode
public String getNodeURI()
getNodeURI
in interface IFXGNode
public void setNodeURI(String uri)
uri
- - the namespace URI of this node.public int getStartLine()
getStartLine
in interface IFXGNode
public void setStartLine(int line)
setStartLine
in interface IFXGNode
line
- - the line on which the node declaration started.public int getStartColumn()
getStartColumn
in interface IFXGNode
public void setStartColumn(int column)
setStartColumn
in interface IFXGNode
column
- - the line on which the node declaration started.public int getEndLine()
getEndLine
in interface IFXGNode
public void setEndLine(int line)
setEndLine
in interface IFXGNode
line
- - the line on which the node declaration ended.public int getEndColumn()
getEndColumn
in interface IFXGNode
public void setEndColumn(int column)
setEndColumn
in interface IFXGNode
column
- the column on which the node declaration ended.public boolean isVersionGreaterThanCompiler()
public FXGVersion getFileVersion()
Copyright © 2016 The Apache Software Foundation. All rights reserved.