|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.sourceforge.gxl.GXLElement
|
+--net.sourceforge.gxl.GXLAttributedElement
|
+--net.sourceforge.gxl.GXLTypedElement
|
+--net.sourceforge.gxl.GXLGraph
Represents the GXL graph element.
The graph element represents a graph containing graph elements.
Children
GXLType - see GXLType.
GXLAttr - Attributes describing this graph.
GXLNode - Nodes contained in this graph.
GXLEdge - Edges contained in this graph.
GXLRel - Relations contained in this graph.
Attributes
id - Required id of this graph element.
role - Optional string describing the function of this graph.
edgeids - Optional boolean, describes whether this graphs edges and relations contains ids.
Due to ambiguos use by applications, this value is not enforced by this package. Defaults to false.
hypergraph - Optional boolean, describes whether this graph may contain rel elements.
Defaults to false.
edgemode - Optional enumeration defining the direction of edges and relations contained in this graph.
Possible values are directed, undirected, defaultdirected and
defaultundirected. The defaultX values implies that the direction can be overridden by individual
edges and relations using the directed attribute.
GXLGraphElement| Constructor Summary | |
GXLGraph(String id)
Creates a new GXLGraph element with the specified id. |
|
| Method Summary | |
boolean |
getAllowsHyperGraphs()
Returns the value of the hypergraph attribute.
|
boolean |
getEdgeIDs()
Returns the value of the edgeids attribute.
|
String |
getEdgeMode()
Returns the value of the edgemode attribute.
|
GXLGraphElement |
getGraphElementAt(int i)
Returns the specified GXLGraphElement. |
int |
getGraphElementCount()
Returns the number of GXLGraphElements (nodes, edges and relations) contained in this graph. |
String |
getRole()
Returns the value of the role attribute or null if the attribute isn't set.
|
void |
setAllowsHyperGraphs(boolean hypergraph)
Sets the value of the hypergraph attribute.
|
void |
setEdgeIDs(boolean edgeids)
Sets the value of the edgeids attribute.
|
void |
setEdgeMode(String edgemode)
Sets the value of the edgemode attribute.
|
void |
setRole(String role)
Sets the value of the role attribute.
|
| Methods inherited from class net.sourceforge.gxl.GXLTypedElement |
getType, setType |
| Methods inherited from class net.sourceforge.gxl.GXLAttributedElement |
getAttr, getAttrAt, getAttrCount, getID, setAttr, setID |
| Methods inherited from class net.sourceforge.gxl.GXLElement |
add, getAttribute, getChildAt, getChildCount, getDocument, getParent, indexOf, insert, remove, setAttribute |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GXLGraph(String id)
GXLGraph element with the specified id.
id - The id of the new graph element.| Method Detail |
public int getGraphElementCount()
GXLGraphElements (nodes, edges and relations) contained in this graph.
GXLGraphElements (nodes, edges and relations) contained in this graph.GXLElement.getChildCount()public GXLGraphElement getGraphElementAt(int i)
GXLGraphElement.
i - The index of the specified GXLGraphElement.
GXLGraphElement.GXLElement.getChildAt(int i)public String getRole()
role attribute or null if the attribute isn't set.
This simply calls getAttribute(GXL.ROLE).
role attribute.GXLElement.getAttribute(String)public void setRole(String role)
role attribute.
This simply calls setAttribute(GXL.ROLE, role).
role - The new value.GXLElement.setAttribute(String, String)public boolean getEdgeIDs()
edgeids attribute.
This simply calls GXL.TRUE.equals(getAttribute(GXL.EDGEIDS)).
edgeids attribute.GXLElement.getAttribute(String)public void setEdgeIDs(boolean edgeids)
edgeids attribute.
This simply calls setAttribute(GXL.EDGEIDS, edgeids ? GXL.TRUE : GXL.FALSE).
edgeids - The new value.GXLElement.setAttribute(String, String)public boolean getAllowsHyperGraphs()
hypergraph attribute.
This simply calls GXL.TRUE.equals(getAttribute(GXL.HYPERGRAPH)).
hypergraph attribute.GXLElement.getAttribute(String)public void setAllowsHyperGraphs(boolean hypergraph)
hypergraph attribute.
This simply calls setAttribute(GXL.HYPERGRAPH, hypergraph ? GXL.TRUE : GXL.FALSE).
hypergraph - The new value.
GXLValidationException - If this action would result in an invalid GXL document.GXLElement.setAttribute(String, String)public String getEdgeMode()
edgemode attribute.
This simply calls getAttribute(GXL.EDGEMODE).
edgemode attribute.GXLElement.getAttribute(String)public void setEdgeMode(String edgemode)
edgemode attribute.
This simply calls setAttribute(GXL.EDGEMODE, edgemode).
edgemode - The new value.
GXLValidationException - If this action would result in an invalid GXL document.GXLElement.setAttribute(String, String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||