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 MetaInfo |
metaInfo |
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(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() |
MetaInfo |
getMetaInfo() |
protected String |
getNextEdgeId() |
protected String |
getNextGroupId() |
protected String |
getNextVertexId() |
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 |
setMetaInfo(MetaInfo metaInfo) |
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, setParent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultCriteria
addVertexListener, clearVertices, containsVertexId, containsVertexId, contributesTo, getChildren, getParent, getRootGroup, getSemanticZoomLevel, getVertex, getVertex, getVertexNamespace, getVertexTotalCount, getVertices, getVertices, hasChildren, removeVertexListener, setParent
addEdgeListener, clearEdges, contributesTo, getEdge, getEdge, getEdgeNamespace, getEdges, getEdges, removeEdgeListener
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 MetaInfo metaInfo
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 boolean groupingSupported()
GraphProvider
groupingSupported
in interface GraphProvider
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 save()
save
in interface GraphProvider
public abstract void load(String filename) throws MalformedURLException, JAXBException
load
in interface GraphProvider
MalformedURLException
JAXBException
public abstract void refresh()
refresh
in interface GraphProvider
public MetaInfo getMetaInfo()
getMetaInfo
in interface GraphProvider
public void setMetaInfo(MetaInfo metaInfo)
Copyright © 2017. All rights reserved.