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 classVEProviderGraphContainer.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:
getSemanticZoomLevelin interfaceDisplayState
-
setSemanticZoomLevel
public void setSemanticZoomLevel(int level)
- Specified by:
setSemanticZoomLevelin interfaceDisplayState
-
getSemanticZoomLevelCriteriaForContainer
public static SemanticZoomLevelCriteria getSemanticZoomLevelCriteriaForContainer(GraphContainer graphContainer)
-
getScale
public double getScale()
- Specified by:
getScalein interfaceDisplayState
-
getScaleProperty
public com.vaadin.v7.data.Property<Double> getScaleProperty()
- Specified by:
getScalePropertyin interfaceGraphContainer
-
setScale
public void setScale(double scale)
- Specified by:
setScalein interfaceDisplayState
-
setLayoutAlgorithm
public void setLayoutAlgorithm(LayoutAlgorithm layoutAlgorithm)
- Specified by:
setLayoutAlgorithmin interfaceDisplayState
-
getLayoutAlgorithm
public LayoutAlgorithm getLayoutAlgorithm()
- Specified by:
getLayoutAlgorithmin interfaceDisplayState
-
redoLayout
public void redoLayout()
- Specified by:
redoLayoutin interfaceDisplayState
-
setMetaTopologyId
public void setMetaTopologyId(String metaTopologyId)
- Specified by:
setMetaTopologyIdin interfaceGraphContainer
-
getMetaTopologyId
public String getMetaTopologyId()
- Specified by:
getMetaTopologyIdin interfaceGraphContainer
-
getTopologyServiceClient
public TopologyServiceClient getTopologyServiceClient()
- Specified by:
getTopologyServiceClientin interfaceGraphContainer
-
getSelectionManager
public SelectionManager getSelectionManager()
- Specified by:
getSelectionManagerin interfaceGraphContainer
-
setSelectionManager
public void setSelectionManager(SelectionManager selectionManager)
- Specified by:
setSelectionManagerin interfaceGraphContainer
-
getGraph
public Graph getGraph()
- Specified by:
getGraphin interfaceGraphContainer
-
clearCriteria
public void clearCriteria()
- Specified by:
clearCriteriain interfaceGraphContainer
-
getCriteria
public Criteria[] getCriteria()
- Specified by:
getCriteriain interfaceGraphContainer
-
addCriteria
public void addCriteria(Criteria criteria)
- Specified by:
addCriteriain interfaceGraphContainer
-
removeCriteria
public void removeCriteria(Criteria criteria)
- Specified by:
removeCriteriain 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:
fireGraphChangedin interfaceGraphContainer
-
findCriteria
public <T extends Criteria> Set<T> findCriteria(Class<T> criteriaType)
Description copied from interface:GraphContainerAllows queriing theGraphContainerfor specific types of criteria.- Specified by:
findCriteriain interfaceGraphContainer- Type Parameters:
T- The criteria class.- Parameters:
criteriaType- The type to look for. May not be null.- Returns:
- All criteria assigned to this
GraphContainerwhich are of the same type (or a sub type) ofcriteriaType.
-
findSingleCriteria
public <T extends Criteria> T findSingleCriteria(Class<T> criteriaType)
Description copied from interface:GraphContainerDoes 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:
findSingleCriteriain 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:
getIconManagerin interfaceGraphContainer
-
setIconManager
public void setIconManager(IconManager iconManager)
- Specified by:
setIconManagerin interfaceGraphContainer
-
selectTopologyProvider
public void selectTopologyProvider(GraphProvider graphProvider, GraphContainer.Callback... callbacks)
Description copied from interface:GraphContainerSelects the specifiedGraphProvider.- Specified by:
selectTopologyProviderin 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:
saveLayoutin interfaceGraphContainer
-
addChangeListener
public void addChangeListener(GraphContainer.ChangeListener listener)
- Specified by:
addChangeListenerin interfaceGraphContainer
-
removeChangeListener
public void removeChangeListener(GraphContainer.ChangeListener listener)
- Specified by:
removeChangeListenerin interfaceGraphContainer
-
getVertexRefForest
public Collection<VertexRef> getVertexRefForest(Collection<VertexRef> vertexRefs)
- Specified by:
getVertexRefForestin interfaceGraphContainer
-
setSelectedNamespace
public void setSelectedNamespace(String namespace)
- Specified by:
setSelectedNamespacein interfaceGraphContainer
-
edgeSetChanged
public void edgeSetChanged(BackendGraph graph)
- Specified by:
edgeSetChangedin interfaceEdgeListener
-
edgeSetChanged
public void edgeSetChanged(BackendGraph graph, Collection<? extends Edge> added, Collection<? extends Edge> updated, Collection<String> removedEdgeIds)
- Specified by:
edgeSetChangedin interfaceEdgeListener
-
vertexSetChanged
public void vertexSetChanged(BackendGraph graph)
- Specified by:
vertexSetChangedin interfaceVertexListener
-
vertexSetChanged
public void vertexSetChanged(BackendGraph graph, Collection<? extends Vertex> added, Collection<? extends Vertex> update, Collection<String> removedVertexIds)
- Specified by:
vertexSetChangedin interfaceVertexListener
-
getMapViewManager
public MapViewManager getMapViewManager()
- Specified by:
getMapViewManagerin interfaceGraphContainer
-
getSessionId
public String getSessionId()
- Specified by:
getSessionIdin interfaceGraphContainer
-
getApplicationContext
public VaadinApplicationContext getApplicationContext()
- Specified by:
getApplicationContextin interfaceGraphContainer
-
setApplicationContext
public void setApplicationContext(VaadinApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceGraphContainer
-
serviceChanged
public void serviceChanged(org.osgi.framework.ServiceEvent event)
- Specified by:
serviceChangedin interfaceorg.osgi.framework.ServiceListener
-
getAutoRefreshSupport
public AutoRefreshSupport getAutoRefreshSupport()
- Specified by:
getAutoRefreshSupportin interfaceGraphContainer
-
hasAutoRefreshSupport
public boolean hasAutoRefreshSupport()
- Specified by:
hasAutoRefreshSupportin interfaceGraphContainer
-
setAutoRefreshSupport
public void setAutoRefreshSupport(AutoRefreshSupport autoRefreshSupport)
-
setDirty
public void setDirty(boolean isDirty)
- Specified by:
setDirtyin interfaceGraphContainer
-
-