public interface GraphContainer extends DisplayState
Modifier and Type | Interface and Description |
---|---|
static interface |
GraphContainer.Callback
Callback which is invoked after the
GraphProvider has been changed. |
static interface |
GraphContainer.ChangeListener |
getLayoutAlgorithm, getScale, getSemanticZoomLevel, redoLayout, setLayoutAlgorithm, setScale, setSemanticZoomLevel
void setMetaTopologyId(String metaTopologyId)
String getMetaTopologyId()
TopologyServiceClient getTopologyServiceClient()
Criteria[] getCriteria()
void addCriteria(Criteria criteria)
void removeCriteria(Criteria criteria)
void clearCriteria()
void selectTopologyProvider(GraphProvider graphProvider, GraphContainer.Callback... callbacks)
GraphProvider
.graphProvider
- the provider to select.callbacks
- callbacks to invoke after the provider has been selected (e.g. apply semantic zoom level, etc)void addChangeListener(GraphContainer.ChangeListener listener)
void removeChangeListener(GraphContainer.ChangeListener listener)
SelectionManager getSelectionManager()
void setSelectionManager(SelectionManager selectionManager)
Graph getGraph()
void setApplicationContext(VaadinApplicationContext applicationContext)
AutoRefreshSupport getAutoRefreshSupport()
boolean hasAutoRefreshSupport()
Collection<VertexRef> getVertexRefForest(Collection<VertexRef> vertexRefs)
void setSelectedNamespace(String namespace)
MapViewManager getMapViewManager()
com.vaadin.v7.data.Property<Double> getScaleProperty()
String getSessionId()
VaadinApplicationContext getApplicationContext()
void setDirty(boolean dirty)
void fireGraphChanged()
<T extends Criteria> Set<T> findCriteria(Class<T> criteriaType)
GraphContainer
for specific types of criteria.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
.<T extends Criteria> T findSingleCriteria(Class<T> criteriaType)
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.T
- The criteria class.criteriaType
- The type to look for.IconManager getIconManager()
void setIconManager(IconManager iconManager)
void saveLayout()
Copyright © 2021. All rights reserved.