public class LibraryNode extends AbstractFXGNode
A Library contains a series of named <Definition> nodes that themselves do not contribute to the visual representation but rather serve as 'templates' that can be referenced by name throughout the document. A reference to a definition is known as an 'instance' and is represented in the tree as a special PlaceObjectNode (the term PlaceObject refers to the SWF tag that places an instance on the stage). Instances can provide their own values that override the defaults from the definition.
| Modifier and Type | Field and Description |
|---|---|
HashMap<String,DefinitionNode> |
definitions |
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 |
|---|
LibraryNode() |
| 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
|
DefinitionNode |
getDefinition(String name)
Locates a Definition node in this Library by name.
|
String |
getNodeName() |
getDocumentNode, getDocumentPath, getEndColumn, getEndLine, getFileVersion, getNodeURI, getStartColumn, getStartLine, isVersionGreaterThanCompiler, setAttribute, setDocumentNode, setEndColumn, setEndLine, setNodeURI, setStartColumn, setStartLinepublic HashMap<String,DefinitionNode> definitions
public DefinitionNode getDefinition(String name)
name - - the name of the definitionpublic void addChild(IFXGNode child, Collection<ICompilerProblem> problems)
AbstractFXGNodeaddChild in interface IFXGNodeaddChild in class AbstractFXGNodechild - - a child FXG node to be added to this node.problems - problem collection used to collect problems occurred within this methodpublic List<IFXGNode> getChildren()
IFXGNodegetChildren in interface IFXGNodegetChildren in class AbstractFXGNodepublic String getNodeName()
Copyright © 2016 The Apache Software Foundation. All rights reserved.