public class GMLContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
directed |
protected long |
edgeid |
(package private) FileSourceGML |
gml |
(package private) boolean |
inGraph |
protected KeyValues |
nextStep |
(package private) java.lang.String |
sourceId |
Constructor and Description |
---|
GMLContext(FileSourceGML gml) |
Modifier and Type | Method and Description |
---|---|
void |
addNodeOrEdge(java.lang.String element,
KeyValues kv) |
protected java.lang.String |
asArrowShape(java.lang.String arrow) |
protected double |
asDouble(java.lang.String value) |
protected java.lang.String |
asEdgeShape(java.lang.String type) |
protected java.lang.String |
asNodeShape(java.lang.String type) |
protected java.lang.String |
asTextAlignment(java.lang.String anchor) |
protected void |
commonGraphicsAttributes(KeyValues kv,
java.lang.StringBuffer style) |
protected java.lang.Object |
compositeAttribute(KeyValues kv) |
protected boolean |
getBoolean(java.lang.Object bool) |
protected void |
handleAddEdge(KeyValues kv) |
protected void |
handleAddNode(KeyValues kv) |
protected void |
handleChangeEdge(KeyValues kv) |
protected void |
handleChangeNode(KeyValues kv) |
protected void |
handleDelEdge(KeyValues kv) |
protected void |
handleDelNode(KeyValues kv) |
protected void |
handleEdgeAttributes(java.lang.String id,
KeyValues edge) |
(package private) void |
handleKeyValues(KeyValues kv) |
protected void |
handleNodeAttributes(java.lang.String id,
KeyValues node) |
protected void |
handleStep(KeyValues kv) |
protected void |
insertKeyValues(KeyValues kv) |
protected Graphics |
optEdgeStyle(KeyValues kv) |
protected Graphics |
optNodeStyle(KeyValues kv) |
void |
setDirected(boolean on) |
(package private) void |
setIsInGraph(boolean on) |
(package private) void |
setNextStep(KeyValues kv) |
FileSourceGML gml
java.lang.String sourceId
boolean directed
protected KeyValues nextStep
boolean inGraph
protected long edgeid
GMLContext(FileSourceGML gml)
void handleKeyValues(KeyValues kv) throws java.io.IOException
java.io.IOException
void setNextStep(KeyValues kv)
public void setDirected(boolean on)
void setIsInGraph(boolean on)
public void addNodeOrEdge(java.lang.String element, KeyValues kv)
protected void insertKeyValues(KeyValues kv) throws java.io.IOException
java.io.IOException
protected java.lang.Object compositeAttribute(KeyValues kv)
protected void handleAddNode(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void handleAddEdge(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void handleDelNode(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void handleDelEdge(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void handleChangeNode(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void handleChangeEdge(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void handleNodeAttributes(java.lang.String id, KeyValues node)
protected void handleEdgeAttributes(java.lang.String id, KeyValues edge)
protected void handleStep(KeyValues kv) throws java.io.IOException
java.io.IOException
protected void commonGraphicsAttributes(KeyValues kv, java.lang.StringBuffer style)
protected double asDouble(java.lang.String value)
protected java.lang.String asNodeShape(java.lang.String type)
protected java.lang.String asEdgeShape(java.lang.String type)
protected java.lang.String asTextAlignment(java.lang.String anchor)
protected java.lang.String asArrowShape(java.lang.String arrow)
protected boolean getBoolean(java.lang.Object bool)