public class SimpleGraphProvider extends AbstractTopologyProvider implements GraphProvider
AbstractTopologyProvider.IdGenerator
Modifier and Type | Field and Description |
---|---|
protected static String |
TOPOLOGY_NAMESPACE_SIMPLE |
metaInfo, SIMPLE_EDGE_ID_PREFIX, SIMPLE_GROUP_ID_PREFIX, SIMPLE_VERTEX_ID_PREFIX
m_edgeProvider, m_vertexProvider
Constructor and Description |
---|
SimpleGraphProvider() |
SimpleGraphProvider(String namespace) |
Modifier and Type | Method and Description |
---|---|
boolean |
contributesTo(ContentType type)
Allows the
GraphProvider to define if it
contributes to a certain ContentType . |
Criteria |
getDefaultCriteria() |
SelectionChangedListener.Selection |
getSelection(List<VertexRef> selectedVertices,
ContentType contentType)
Converts the provided
selectedVertices to a Selection. |
protected SelectionChangedListener.Selection |
getSelection(String namespace,
List<VertexRef> selectedVertices,
ContentType type) |
URI |
getTopologyLocation() |
void |
load(String filename) |
void |
refresh() |
void |
save() |
void |
save(String filename) |
void |
setTopologyLocation(URI topologyLocation) |
addEdges, addGroup, addGroup, addVertex, addVertex, addVertices, clearCounters, connectVertices, connectVertices, getEdgeIdsForVertex, getEdgeIdsForVertices, getGroups, getMetaInfo, getNextEdgeId, getNextGroupId, getNextVertexId, getVerticesWithoutGroups, groupingSupported, removeEdges, removeVertex, resetContainer, setMetaInfo
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
addEdges, addGroup, addVertex, addVertices, connectVertices, getEdgeIdsForVertex, getEdgeIdsForVertices, getMetaInfo, groupingSupported, removeEdges, removeVertex, resetContainer
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
protected static final String TOPOLOGY_NAMESPACE_SIMPLE
public SimpleGraphProvider()
public SimpleGraphProvider(String namespace)
public URI getTopologyLocation()
public void setTopologyLocation(URI topologyLocation) throws MalformedURLException, JAXBException
MalformedURLException
JAXBException
public void save(String filename) throws MalformedURLException, JAXBException
MalformedURLException
JAXBException
public void save()
save
in interface GraphProvider
save
in class AbstractTopologyProvider
public void refresh()
refresh
in interface GraphProvider
refresh
in class AbstractTopologyProvider
public Criteria getDefaultCriteria()
getDefaultCriteria
in interface GraphProvider
public void load(String filename) throws MalformedURLException, JAXBException
load
in interface GraphProvider
load
in class AbstractTopologyProvider
MalformedURLException
JAXBException
protected SelectionChangedListener.Selection getSelection(String namespace, List<VertexRef> selectedVertices, ContentType type)
public SelectionChangedListener.Selection getSelection(List<VertexRef> selectedVertices, ContentType contentType)
SelectionAware
selectedVertices
to a Selection.
The provided type
represents the according browser table.
This method is only invoked if SelectionAware.contributesTo(ContentType)
returns to for the provided type
getSelection
in interface SelectionAware
selectedVertices
- The vertices currently selected in the Topology UI.contentType
- The type to filter for. Represents the according browser table.SelectionChangedListener.Selection
public boolean contributesTo(ContentType type)
SelectionAware
GraphProvider
to define if it
contributes to a certain ContentType
.
If false
it is not shown in the browsers tab at allcontributesTo
in interface SelectionAware
type
- The type to check if this
contribute tothis
contributes to the provided type
Copyright © 2017. All rights reserved.