public abstract class AbstractTopologyProvider extends DelegatingVertexEdgeProvider implements GraphProvider
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractTopologyProvider.IdGenerator
This class generates an unique id.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
SIMPLE_EDGE_ID_PREFIX |
protected static String |
SIMPLE_GROUP_ID_PREFIX |
protected static String |
SIMPLE_VERTEX_ID_PREFIX |
protected TopologyProviderInfo |
topologyProviderInfo |
m_edgeProvider, m_vertexProvider| Modifier | Constructor and Description |
|---|---|
protected |
AbstractTopologyProvider(SimpleVertexProvider vertexProvider,
SimpleEdgeProvider edgeProvider) |
protected |
AbstractTopologyProvider(String namespace) |
addEdgeListener, addVertexListener, clearEdges, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getEdge, getEdge, getEdges, getEdges, getEdgeTotalCount, getNamespace, getParent, getRootGroup, getSemanticZoomLevel, getSimpleEdgeProvider, getSimpleVertexProvider, getVertex, getVertex, getVertexTotalCount, getVertices, getVertices, hasChildren, removeEdgeListener, removeVertexListener, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultsaddVertexListener, clearVertices, containsVertexId, containsVertexId, getChildren, getParent, getRootGroup, getSemanticZoomLevel, getVertex, getVertex, getVertexTotalCount, getVertices, getVertices, hasChildren, removeVertexListener, setParentaddEdgeListener, clearEdges, getEdge, getEdge, getEdges, getEdges, getEdgeTotalCount, removeEdgeListenercontributesTo, getNamespacecontributesTo, getSelectionprotected static final String SIMPLE_VERTEX_ID_PREFIX
protected static final String SIMPLE_GROUP_ID_PREFIX
protected static final String SIMPLE_EDGE_ID_PREFIX
protected TopologyProviderInfo topologyProviderInfo
protected AbstractTopologyProvider(String namespace)
protected AbstractTopologyProvider(SimpleVertexProvider vertexProvider, SimpleEdgeProvider edgeProvider)
protected String getNextVertexId()
protected String getNextGroupId()
protected String getNextEdgeId()
public final void removeVertex(VertexRef... vertexId)
removeVertex in interface GraphProviderpublic final void addVertices(Vertex... vertices)
addVertices in interface GraphProviderpublic final AbstractVertex addVertex(int x, int y)
addVertex in interface GraphProviderprotected final AbstractVertex addVertex(String id, int x, int y)
public final AbstractVertex addGroup(String groupName, String groupIconKey)
addGroup in interface GraphProviderprotected final AbstractVertex addGroup(String groupId, String iconKey, String label)
public final void addEdges(Edge... edges)
addEdges in interface GraphProviderpublic final void removeEdges(EdgeRef... edge)
removeEdges in interface GraphProviderpublic final EdgeRef[] getEdgeIdsForVertex(VertexRef vertex)
getEdgeIdsForVertex in interface GraphProviderpublic final Map<VertexRef,Set<EdgeRef>> getEdgeIdsForVertices(VertexRef... vertices)
GraphProviderEdgeRef
instances for a large number of vertices.getEdgeIdsForVertices in interface GraphProviderpublic Edge connectVertices(VertexRef sourceVertextId, VertexRef targetVertextId)
connectVertices in interface GraphProviderprotected final AbstractEdge connectVertices(String id, VertexRef sourceId, VertexRef targetId, String namespace)
public void resetContainer()
resetContainer in interface GraphProviderprotected void clearCounters()
public abstract void refresh()
refresh in interface GraphProviderpublic TopologyProviderInfo getTopologyProviderInfo()
getTopologyProviderInfo in interface GraphProviderpublic void setTopologyProviderInfo(TopologyProviderInfo topologyProviderInfo)
protected static SelectionChangedListener.Selection getSelection(String namespace, List<VertexRef> selectedVertices, ContentType type)
Copyright © 2019. All rights reserved.