Interface GraphContainer
-
- All Superinterfaces:
DisplayState
- All Known Implementing Classes:
VEProviderGraphContainer
public interface GraphContainer extends DisplayState
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
GraphContainer.Callback
Callback which is invoked after theGraphProvider
has been changed.static interface
GraphContainer.ChangeListener
-
Method Summary
-
Methods inherited from interface org.opennms.features.topology.api.DisplayState
getLayoutAlgorithm, getScale, getSemanticZoomLevel, redoLayout, setLayoutAlgorithm, setScale, setSemanticZoomLevel
-
-
-
-
Method Detail
-
setMetaTopologyId
void setMetaTopologyId(String metaTopologyId)
-
getMetaTopologyId
String getMetaTopologyId()
-
getTopologyServiceClient
TopologyServiceClient getTopologyServiceClient()
-
getCriteria
Criteria[] getCriteria()
-
addCriteria
void addCriteria(Criteria criteria)
-
removeCriteria
void removeCriteria(Criteria criteria)
-
clearCriteria
void clearCriteria()
-
selectTopologyProvider
void selectTopologyProvider(GraphProvider graphProvider, GraphContainer.Callback... callbacks)
Selects the specifiedGraphProvider
.- Parameters:
graphProvider
- the provider to select.callbacks
- callbacks to invoke after the provider has been selected (e.g. apply semantic zoom level, etc)
-
addChangeListener
void addChangeListener(GraphContainer.ChangeListener listener)
-
removeChangeListener
void removeChangeListener(GraphContainer.ChangeListener listener)
-
getSelectionManager
SelectionManager getSelectionManager()
-
setSelectionManager
void setSelectionManager(SelectionManager selectionManager)
-
getGraph
Graph getGraph()
-
setApplicationContext
void setApplicationContext(VaadinApplicationContext applicationContext)
-
getAutoRefreshSupport
AutoRefreshSupport getAutoRefreshSupport()
-
hasAutoRefreshSupport
boolean hasAutoRefreshSupport()
-
getVertexRefForest
Collection<VertexRef> getVertexRefForest(Collection<VertexRef> vertexRefs)
-
setSelectedNamespace
void setSelectedNamespace(String namespace)
-
getMapViewManager
MapViewManager getMapViewManager()
-
getScaleProperty
com.vaadin.v7.data.Property<Double> getScaleProperty()
-
getSessionId
String getSessionId()
-
getApplicationContext
VaadinApplicationContext getApplicationContext()
-
setDirty
void setDirty(boolean dirty)
-
fireGraphChanged
void fireGraphChanged()
-
findCriteria
<T extends Criteria> Set<T> findCriteria(Class<T> criteriaType)
Allows queriing theGraphContainer
for specific types of criteria.- 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
<T extends Criteria> T findSingleCriteria(Class<T> criteriaType)
Does the same asfindCriteria(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.- 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
IconManager getIconManager()
-
setIconManager
void setIconManager(IconManager iconManager)
-
saveLayout
void saveLayout()
-
-