Class VEProviderGraphContainer
- java.lang.Object
-
- org.opennms.features.topology.app.internal.VEProviderGraphContainer
-
- All Implemented Interfaces:
EventListener
,DisplayState
,GraphContainer
,EdgeListener
,VertexListener
,org.osgi.framework.ServiceListener
public class VEProviderGraphContainer extends Object implements GraphContainer, VertexListener, EdgeListener, org.osgi.framework.ServiceListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VEProviderGraphContainer.ScaleProperty
-
Nested classes/interfaces inherited from interface org.opennms.features.topology.api.GraphContainer
GraphContainer.Callback, GraphContainer.ChangeListener
-
-
Constructor Summary
Constructors Constructor Description VEProviderGraphContainer()
-
Method Summary
-
-
-
Method Detail
-
getSemanticZoomLevel
public int getSemanticZoomLevel()
- Specified by:
getSemanticZoomLevel
in interfaceDisplayState
-
setSemanticZoomLevel
public void setSemanticZoomLevel(int level)
- Specified by:
setSemanticZoomLevel
in interfaceDisplayState
-
getSemanticZoomLevelCriteriaForContainer
public static SemanticZoomLevelCriteria getSemanticZoomLevelCriteriaForContainer(GraphContainer graphContainer)
-
getScale
public double getScale()
- Specified by:
getScale
in interfaceDisplayState
-
getScaleProperty
public com.vaadin.v7.data.Property<Double> getScaleProperty()
- Specified by:
getScaleProperty
in interfaceGraphContainer
-
setScale
public void setScale(double scale)
- Specified by:
setScale
in interfaceDisplayState
-
setLayoutAlgorithm
public void setLayoutAlgorithm(LayoutAlgorithm layoutAlgorithm)
- Specified by:
setLayoutAlgorithm
in interfaceDisplayState
-
getLayoutAlgorithm
public LayoutAlgorithm getLayoutAlgorithm()
- Specified by:
getLayoutAlgorithm
in interfaceDisplayState
-
redoLayout
public void redoLayout()
- Specified by:
redoLayout
in interfaceDisplayState
-
setMetaTopologyId
public void setMetaTopologyId(String metaTopologyId)
- Specified by:
setMetaTopologyId
in interfaceGraphContainer
-
getMetaTopologyId
public String getMetaTopologyId()
- Specified by:
getMetaTopologyId
in interfaceGraphContainer
-
getTopologyServiceClient
public TopologyServiceClient getTopologyServiceClient()
- Specified by:
getTopologyServiceClient
in interfaceGraphContainer
-
getSelectionManager
public SelectionManager getSelectionManager()
- Specified by:
getSelectionManager
in interfaceGraphContainer
-
setSelectionManager
public void setSelectionManager(SelectionManager selectionManager)
- Specified by:
setSelectionManager
in interfaceGraphContainer
-
getGraph
public Graph getGraph()
- Specified by:
getGraph
in interfaceGraphContainer
-
clearCriteria
public void clearCriteria()
- Specified by:
clearCriteria
in interfaceGraphContainer
-
getCriteria
public Criteria[] getCriteria()
- Specified by:
getCriteria
in interfaceGraphContainer
-
addCriteria
public void addCriteria(Criteria criteria)
- Specified by:
addCriteria
in interfaceGraphContainer
-
removeCriteria
public void removeCriteria(Criteria criteria)
- Specified by:
removeCriteria
in interfaceGraphContainer
-
setBundleContext
public void setBundleContext(org.osgi.framework.BundleContext bundleContext)
-
setTopologyService
public void setTopologyService(TopologyService topologyService)
-
setLayoutManager
public void setLayoutManager(LayoutManager layoutManager)
-
fireGraphChanged
public void fireGraphChanged()
- Specified by:
fireGraphChanged
in interfaceGraphContainer
-
findCriteria
public <T extends Criteria> Set<T> findCriteria(Class<T> criteriaType)
Description copied from interface:GraphContainer
Allows queriing theGraphContainer
for specific types of criteria.- Specified by:
findCriteria
in interfaceGraphContainer
- Type Parameters:
T
- The criteria class.- Parameters:
criteriaType
- The type to look for. May not be null.- Returns:
- All criteria assigned to this
GraphContainer
which are of the same type (or a sub type) ofcriteriaType
.
-
findSingleCriteria
public <T extends Criteria> T findSingleCriteria(Class<T> criteriaType)
Description copied from interface:GraphContainer
Does the same asGraphContainer.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.- Specified by:
findSingleCriteria
in interfaceGraphContainer
- Type Parameters:
T
- The criteria class.- Parameters:
criteriaType
- The type to look for.- Returns:
- The first found criteria, or null if none is found.
-
getIconManager
public IconManager getIconManager()
- Specified by:
getIconManager
in interfaceGraphContainer
-
setIconManager
public void setIconManager(IconManager iconManager)
- Specified by:
setIconManager
in interfaceGraphContainer
-
selectTopologyProvider
public void selectTopologyProvider(GraphProvider graphProvider, GraphContainer.Callback... callbacks)
Description copied from interface:GraphContainer
Selects the specifiedGraphProvider
.- Specified by:
selectTopologyProvider
in interfaceGraphContainer
- Parameters:
graphProvider
- the provider to select.callbacks
- callbacks to invoke after the provider has been selected (e.g. apply semantic zoom level, etc)
-
saveLayout
public void saveLayout()
- Specified by:
saveLayout
in interfaceGraphContainer
-
addChangeListener
public void addChangeListener(GraphContainer.ChangeListener listener)
- Specified by:
addChangeListener
in interfaceGraphContainer
-
removeChangeListener
public void removeChangeListener(GraphContainer.ChangeListener listener)
- Specified by:
removeChangeListener
in interfaceGraphContainer
-
getVertexRefForest
public Collection<VertexRef> getVertexRefForest(Collection<VertexRef> vertexRefs)
- Specified by:
getVertexRefForest
in interfaceGraphContainer
-
setSelectedNamespace
public void setSelectedNamespace(String namespace)
- Specified by:
setSelectedNamespace
in interfaceGraphContainer
-
edgeSetChanged
public void edgeSetChanged(BackendGraph graph)
- Specified by:
edgeSetChanged
in interfaceEdgeListener
-
edgeSetChanged
public void edgeSetChanged(BackendGraph graph, Collection<? extends Edge> added, Collection<? extends Edge> updated, Collection<String> removedEdgeIds)
- Specified by:
edgeSetChanged
in interfaceEdgeListener
-
vertexSetChanged
public void vertexSetChanged(BackendGraph graph)
- Specified by:
vertexSetChanged
in interfaceVertexListener
-
vertexSetChanged
public void vertexSetChanged(BackendGraph graph, Collection<? extends Vertex> added, Collection<? extends Vertex> update, Collection<String> removedVertexIds)
- Specified by:
vertexSetChanged
in interfaceVertexListener
-
getMapViewManager
public MapViewManager getMapViewManager()
- Specified by:
getMapViewManager
in interfaceGraphContainer
-
getSessionId
public String getSessionId()
- Specified by:
getSessionId
in interfaceGraphContainer
-
getApplicationContext
public VaadinApplicationContext getApplicationContext()
- Specified by:
getApplicationContext
in interfaceGraphContainer
-
setApplicationContext
public void setApplicationContext(VaadinApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interfaceGraphContainer
-
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Specified by:
serviceChanged
in interfaceorg.osgi.framework.ServiceListener
-
getAutoRefreshSupport
public AutoRefreshSupport getAutoRefreshSupport()
- Specified by:
getAutoRefreshSupport
in interfaceGraphContainer
-
hasAutoRefreshSupport
public boolean hasAutoRefreshSupport()
- Specified by:
hasAutoRefreshSupport
in interfaceGraphContainer
-
setAutoRefreshSupport
public void setAutoRefreshSupport(AutoRefreshSupport autoRefreshSupport)
-
setDirty
public void setDirty(boolean isDirty)
- Specified by:
setDirty
in interfaceGraphContainer
-
-