public class VEProviderGraphContainer extends Object implements GraphContainer, VertexListener, EdgeListener, org.osgi.framework.ServiceListener
Modifier and Type | Class and Description |
---|---|
static class |
VEProviderGraphContainer.ScaleProperty |
GraphContainer.Callback, GraphContainer.ChangeListener
Constructor and Description |
---|
VEProviderGraphContainer() |
public int getSemanticZoomLevel()
getSemanticZoomLevel
in interface DisplayState
public void setSemanticZoomLevel(int level)
setSemanticZoomLevel
in interface DisplayState
public static SemanticZoomLevelCriteria getSemanticZoomLevelCriteriaForContainer(GraphContainer graphContainer)
public double getScale()
getScale
in interface DisplayState
public com.vaadin.v7.data.Property<Double> getScaleProperty()
getScaleProperty
in interface GraphContainer
public void setScale(double scale)
setScale
in interface DisplayState
public void setLayoutAlgorithm(LayoutAlgorithm layoutAlgorithm)
setLayoutAlgorithm
in interface DisplayState
public LayoutAlgorithm getLayoutAlgorithm()
getLayoutAlgorithm
in interface DisplayState
public void redoLayout()
redoLayout
in interface DisplayState
public void setMetaTopologyId(String metaTopologyId)
setMetaTopologyId
in interface GraphContainer
public String getMetaTopologyId()
getMetaTopologyId
in interface GraphContainer
public TopologyServiceClient getTopologyServiceClient()
getTopologyServiceClient
in interface GraphContainer
public SelectionManager getSelectionManager()
getSelectionManager
in interface GraphContainer
public void setSelectionManager(SelectionManager selectionManager)
setSelectionManager
in interface GraphContainer
public Graph getGraph()
getGraph
in interface GraphContainer
public void clearCriteria()
clearCriteria
in interface GraphContainer
public Criteria[] getCriteria()
getCriteria
in interface GraphContainer
public void addCriteria(Criteria criteria)
addCriteria
in interface GraphContainer
public void removeCriteria(Criteria criteria)
removeCriteria
in interface GraphContainer
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
public void setTopologyService(TopologyService topologyService)
public void setLayoutManager(LayoutManager layoutManager)
public void fireGraphChanged()
fireGraphChanged
in interface GraphContainer
public <T extends Criteria> Set<T> findCriteria(Class<T> criteriaType)
GraphContainer
GraphContainer
for specific types of criteria.findCriteria
in interface GraphContainer
T
- The criteria class.criteriaType
- The type to look for. May not be null.GraphContainer
which are of the same type (or a sub type) of criteriaType
.public <T extends Criteria> T findSingleCriteria(Class<T> criteriaType)
GraphContainer
GraphContainer.findCriteria(Class)
, but only returns one Criteria. If multiple criteria for the same
type are found, the first one is returned. No exception is thrown in that case.findSingleCriteria
in interface GraphContainer
T
- The criteria class.criteriaType
- The type to look for.public IconManager getIconManager()
getIconManager
in interface GraphContainer
public void setIconManager(IconManager iconManager)
setIconManager
in interface GraphContainer
public void selectTopologyProvider(GraphProvider graphProvider, GraphContainer.Callback... callbacks)
GraphContainer
GraphProvider
.selectTopologyProvider
in interface GraphContainer
graphProvider
- the provider to select.callbacks
- callbacks to invoke after the provider has been selected (e.g. apply semantic zoom level, etc)public void saveLayout()
saveLayout
in interface GraphContainer
public void addChangeListener(GraphContainer.ChangeListener listener)
addChangeListener
in interface GraphContainer
public void removeChangeListener(GraphContainer.ChangeListener listener)
removeChangeListener
in interface GraphContainer
public Collection<VertexRef> getVertexRefForest(Collection<VertexRef> vertexRefs)
getVertexRefForest
in interface GraphContainer
public void setSelectedNamespace(String namespace)
setSelectedNamespace
in interface GraphContainer
public void edgeSetChanged(BackendGraph graph)
edgeSetChanged
in interface EdgeListener
public void edgeSetChanged(BackendGraph graph, Collection<? extends Edge> added, Collection<? extends Edge> updated, Collection<String> removedEdgeIds)
edgeSetChanged
in interface EdgeListener
public void vertexSetChanged(BackendGraph graph)
vertexSetChanged
in interface VertexListener
public void vertexSetChanged(BackendGraph graph, Collection<? extends Vertex> added, Collection<? extends Vertex> update, Collection<String> removedVertexIds)
vertexSetChanged
in interface VertexListener
public MapViewManager getMapViewManager()
getMapViewManager
in interface GraphContainer
public String getSessionId()
getSessionId
in interface GraphContainer
public VaadinApplicationContext getApplicationContext()
getApplicationContext
in interface GraphContainer
public void setApplicationContext(VaadinApplicationContext applicationContext)
setApplicationContext
in interface GraphContainer
public void serviceChanged(org.osgi.framework.ServiceEvent event)
serviceChanged
in interface org.osgi.framework.ServiceListener
public AutoRefreshSupport getAutoRefreshSupport()
getAutoRefreshSupport
in interface GraphContainer
public boolean hasAutoRefreshSupport()
hasAutoRefreshSupport
in interface GraphContainer
public void setAutoRefreshSupport(AutoRefreshSupport autoRefreshSupport)
public void setDirty(boolean isDirty)
setDirty
in interface GraphContainer
Copyright © 2021. All rights reserved.