public interface INode
extends org.eclipse.emf.ecore.EObject
The following features are supported:
GeometryPackage.getINode()
Modifier and Type | Method and Description |
---|---|
void |
addNode(INode child)
Add a child to the list of children nodes contained by this object.
|
void |
addNodes(org.eclipse.emf.common.util.EList<INode> children)
Allows for multiple nodes to be added simultaneously, maintaining the parent reference for each new node.
|
void |
changeDecoratorProperty(java.lang.String property,
java.lang.Object value)
Fire a notification that will alert decorator pattern classes registered to this object that they should change their state.
|
java.lang.Object |
clone()
Create a copy of this object.
|
void |
copy(java.lang.Object source)
Make this object a copy of the source object, if the source object is of an appropriate type.
|
Vertex |
getCenter()
Returns the value of the 'Center' reference.
|
long |
getId()
Returns the value of the 'Id' attribute.
|
java.lang.String |
getName()
Returns the value of the 'Name' attribute.
|
org.eclipse.emf.common.util.EList<INode> |
getNodes()
Returns the value of the 'Nodes' containment reference list.
|
INode |
getParent()
Returns the value of the 'Parent' reference.
|
double |
getProperty(java.lang.String property)
Get the value for one of the shape's properties.
|
org.eclipse.emf.common.util.EList<java.lang.String> |
getPropertyNames()
Get the names of all properties set for this shape.
|
org.eclipse.emf.common.util.EList<Triangle> |
getTriangles()
Returns the value of the 'Triangles' containment reference list.
|
java.lang.String |
getType()
Returns the value of the 'Type' attribute.
|
void |
removeNode(INode child)
Remove a child from the list of children nodes contained by this object.
|
void |
setCenter(Vertex value)
Sets the value of the '
Center ' reference. |
void |
setId(long value)
Sets the value of the '
Id ' attribute. |
void |
setName(java.lang.String value)
Sets the value of the '
Name ' attribute. |
void |
setParent(INode value)
Sets the value of the '
Parent ' reference. |
void |
setProperty(java.lang.String property,
double value)
Set one of the Shape's properties.
|
void |
setType(java.lang.String value)
Sets the value of the '
Type ' attribute. |
java.lang.String getName()
setName(String)
,
GeometryPackage.getINode_Name()
void setName(java.lang.String value)
Name
' attribute.
value
- the new value of the 'Name' attribute.getName()
long getId()
setId(long)
,
GeometryPackage.getINode_Id()
void setId(long value)
Id
' attribute.
value
- the new value of the 'Id' attribute.getId()
org.eclipse.emf.common.util.EList<INode> getNodes()
INode
.
The list of nodes that compose the head node.
GeometryPackage.getINode_Nodes()
java.lang.String getType()
setType(String)
,
GeometryPackage.getINode_Type()
void setType(java.lang.String value)
Type
' attribute.
value
- the new value of the 'Type' attribute.getType()
org.eclipse.emf.common.util.EList<Triangle> getTriangles()
Triangle
.
A series of triangles which comprise the mesh which will represent this object graphically. If this list is empty, it will be the responsibility of other classes to determine, based on this INode's "type", what mesh, if any, should be displayed for it.
GeometryPackage.getINode_Triangles()
Vertex getCenter()
setCenter(Vertex)
,
GeometryPackage.getINode_Center()
void setCenter(Vertex value)
Center
' reference.
value
- the new value of the 'Center' reference.getCenter()
INode getParent()
If the meaning of the 'Parent' reference isn't clear, there really should be more of a description here...
setParent(INode)
,
GeometryPackage.getINode_Parent()
void setParent(INode value)
Parent
' reference.
value
- the new value of the 'Parent' reference.getParent()
void changeDecoratorProperty(java.lang.String property, java.lang.Object value)
org.eclipse.emf.common.util.EList<java.lang.String> getPropertyNames()
double getProperty(java.lang.String property)
property
- The name of the property whose value is to be returned.
void setProperty(java.lang.String property, double value)
property
- The name of the property whose value is being set.value
- The property's new value.
void addNode(INode child)
void addNodes(org.eclipse.emf.common.util.EList<INode> children)
children
- List of nodes to add as children under this nodevoid removeNode(INode child)
void copy(java.lang.Object source)
java.lang.Object clone()