org.grinvin.list.graphs

Class GraphGroup

Implemented Interfaces:
GraphNode

public class GraphGroup
extends java.lang.Object
implements GraphNode

Constructor Summary

GraphGroup(String name)
Creates a new instance of GraphGroup

Method Summary

void
addChild(GraphNode element)
List
getChildren()
Return the list of children of this node.
String
getName()
Return a localized name for this node.

Constructor Details

GraphGroup

public GraphGroup(String name)
Creates a new instance of GraphGroup

Method Details

addChild

public void addChild(GraphNode element)

getChildren

public List getChildren()
Return the list of children of this node. Returns null for a node which is not supposed to have children. Returns an empty list for nodes that can have children, but currently have none.
Specified by:
getChildren in interface GraphNode

getName

public String getName()
Return a localized name for this node.
Specified by:
getName in interface GraphNode