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, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaults
addVertexListener, clearVertices, containsVertexId, containsVertexId, getChildren, getParent, getRootGroup, getSemanticZoomLevel, getVertex, getVertex, getVertexTotalCount, getVertices, getVertices, hasChildren, removeVertexListener, setParent
addEdgeListener, clearEdges, getEdge, getEdge, getEdges, getEdges, getEdgeTotalCount, removeEdgeListener
contributesTo, getNamespace
contributesTo, getSelection
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 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 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 final Map<VertexRef,Set<EdgeRef>> getEdgeIdsForVertices(VertexRef... vertices)
GraphProvider
EdgeRef
instances for a large number of vertices.getEdgeIdsForVertices
in interface GraphProvider
public Edge connectVertices(VertexRef sourceVertextId, VertexRef targetVertextId)
connectVertices
in interface GraphProvider
protected final AbstractEdge connectVertices(String id, VertexRef sourceId, VertexRef targetId, String namespace)
public void resetContainer()
resetContainer
in interface GraphProvider
protected void clearCounters()
public abstract void refresh()
refresh
in interface GraphProvider
public TopologyProviderInfo getTopologyProviderInfo()
getTopologyProviderInfo
in interface GraphProvider
public void setTopologyProviderInfo(TopologyProviderInfo topologyProviderInfo)
protected static SelectionChangedListener.Selection getSelection(String namespace, List<VertexRef> selectedVertices, ContentType type)
Copyright © 2021. All rights reserved.