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) |
| 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 void |
clearCounters() |
protected AbstractEdge |
connectVertices(String id,
VertexRef sourceId,
VertexRef targetId,
String namespace) |
Edge |
connectVertices(VertexRef sourceVertextId,
VertexRef targetVertextId) |
EdgeRef[] |
getEdgeIdsForVertex(VertexRef vertex) |
Map<VertexRef,Set<EdgeRef>> |
getEdgeIdsForVertices(VertexRef... vertices)
This function can be used for efficiency when you need the
EdgeRef
instances for a large number of vertices. |
List<Vertex> |
getGroups() |
protected String |
getNextEdgeId() |
protected String |
getNextGroupId() |
protected String |
getNextVertexId() |
TopologyProviderInfo |
getTopologyProviderInfo() |
List<Vertex> |
getVerticesWithoutGroups() |
boolean |
groupingSupported()
This function indicates support for (mostly legacy) grouping operations.
|
abstract void |
load(String filename) |
abstract void |
refresh() |
void |
removeEdges(EdgeRef... edge) |
void |
removeVertex(VertexRef... vertexId) |
void |
resetContainer() |
abstract void |
save() |
void |
setTopologyProviderInfo(TopologyProviderInfo topologyProviderInfo) |
addEdgeListener, addVertexListener, clearEdges, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getEdge, getEdge, getEdgeNamespace, getEdges, getEdges, getParent, getRootGroup, getSemanticZoomLevel, getSimpleEdgeProvider, getSimpleVertexProvider, getVertex, getVertex, getVertexNamespace, getVertexTotalCount, getVertices, getVertices, hasChildren, removeEdgeListener, removeVertexListener, setParentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultsaddVertexListener, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getParent, getRootGroup, getSemanticZoomLevel, getVertex, getVertex, getVertexNamespace, getVertexTotalCount, getVertices, getVertices, hasChildren, removeVertexListener, setParentaddEdgeListener, clearEdges, contributesTo, getEdge, getEdge, getEdgeNamespace, getEdges, getEdges, removeEdgeListenercontributesTo, 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 boolean groupingSupported()
GraphProvidergroupingSupported in interface GraphProviderpublic 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 save()
save in interface GraphProviderpublic abstract void load(String filename) throws MalformedURLException, JAXBException
load in interface GraphProviderMalformedURLExceptionJAXBExceptionpublic abstract void refresh()
refresh in interface GraphProviderpublic TopologyProviderInfo getTopologyProviderInfo()
getTopologyProviderInfo in interface GraphProviderpublic void setTopologyProviderInfo(TopologyProviderInfo topologyProviderInfo)
Copyright © 2020. All rights reserved.