public abstract class AbstractTopologyProvider extends DelegatingVertexEdgeProvider implements GraphProvider
Modifier and Type | Field and Description |
---|---|
protected int |
m_groupCounter |
protected static String |
SIMPLE_EDGE_ID_PREFIX |
protected static String |
SIMPLE_GROUP_ID_PREFIX |
protected static String |
SIMPLE_VERTEX_ID_PREFIX |
m_edgeProvider, m_vertexProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractTopologyProvider(String namespace) |
Modifier and Type | Method and Description |
---|---|
void |
addEdges(Edge... edges) |
AbstractVertex |
addGroup(String groupName,
String groupIconKey) |
protected AbstractVertex |
addGroup(String groupId,
String iconKey,
String label) |
AbstractVertex |
addVertex(int x,
int y) |
protected AbstractVertex |
addVertex(String id,
int x,
int y) |
void |
addVertices(Vertex... vertices) |
protected AbstractEdge |
connectVertices(String id,
VertexRef sourceId,
VertexRef targetId) |
Edge |
connectVertices(VertexRef sourceVertextId,
VertexRef targetVertextId) |
EdgeRef[] |
getEdgeIdsForVertex(VertexRef vertex) |
protected String |
getNextEdgeId() |
protected String |
getNextGroupId() |
protected String |
getNextVertexId() |
void |
removeEdges(EdgeRef... edge) |
void |
removeVertex(VertexRef... vertexId) |
void |
resetContainer() |
addEdgeListener, addVertexListener, clearEdges, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getEdge, getEdge, getEdgeNamespace, getEdges, getEdges, getEdges, getParent, getRootGroup, getSemanticZoomLevel, getSimpleEdgeProvider, getSimpleVertexProvider, getVertex, getVertex, getVertexNamespace, getVertices, getVertices, getVertices, hasChildren, matches, removeEdgeListener, removeVertexListener, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
load, refresh, save, setParent
addVertexListener, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getParent, getRootGroup, getSemanticZoomLevel, getVertex, getVertex, getVertexNamespace, getVertices, getVertices, getVertices, hasChildren, removeVertexListener
addEdgeListener, clearEdges, contributesTo, getEdge, getEdge, getEdgeNamespace, getEdges, getEdges, getEdges, matches, removeEdgeListener
protected static final String SIMPLE_VERTEX_ID_PREFIX
protected static final String SIMPLE_GROUP_ID_PREFIX
protected static final String SIMPLE_EDGE_ID_PREFIX
protected int m_groupCounter
protected AbstractTopologyProvider(String namespace)
protected String getNextVertexId()
protected String getNextGroupId()
protected String getNextEdgeId()
public final void removeVertex(VertexRef... vertexId)
removeVertex
in interface GraphProvider
public final void addVertices(Vertex... vertices)
addVertices
in interface GraphProvider
public final AbstractVertex addVertex(int x, int y)
addVertex
in interface GraphProvider
protected final AbstractVertex addVertex(String id, int x, int y)
public final AbstractVertex addGroup(String groupName, String groupIconKey)
addGroup
in interface GraphProvider
protected final AbstractVertex addGroup(String groupId, String iconKey, String label)
public final void addEdges(Edge... edges)
addEdges
in interface GraphProvider
public final void removeEdges(EdgeRef... edge)
removeEdges
in interface GraphProvider
public final EdgeRef[] getEdgeIdsForVertex(VertexRef vertex)
getEdgeIdsForVertex
in interface GraphProvider
public Edge connectVertices(VertexRef sourceVertextId, VertexRef targetVertextId)
connectVertices
in interface GraphProvider
protected final AbstractEdge connectVertices(String id, VertexRef sourceId, VertexRef targetId)
public void resetContainer()
resetContainer
in interface GraphProvider
Copyright © 2015. All Rights Reserved.