@JavaScript(value="theme://../opennms/assets/topology-init.vaadin.js") @StyleSheet(value="theme://../opennms/assets/leaflet.css") public class TopologyComponent extends com.vaadin.ui.AbstractComponent implements GraphContainer.ChangeListener, com.vaadin.v7.data.Property.ValueChangeListener, MapViewManagerListener
Modifier and Type | Class and Description |
---|---|
static interface |
TopologyComponent.VertexUpdateListener |
com.vaadin.ui.Component.ErrorEvent, com.vaadin.ui.Component.Event, com.vaadin.ui.Component.Focusable, com.vaadin.ui.Component.Listener
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener
Constructor and Description |
---|
TopologyComponent(GraphContainer dataSource,
IconRepositoryManager iconRepositoryManager,
ContextMenuHandler contextMenuHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addMenuItemStateListener(MenuUpdateListener listener) |
void |
addVertexUpdateListener(TopologyComponent.VertexUpdateListener listener) |
void |
blockSelectionEvents() |
void |
boundingBoxChanged(MapViewManager viewManager) |
void |
centerMapOnSelection() |
protected Graph |
getGraph() |
protected TopologyComponentState |
getState() |
MapViewManager |
getViewManager() |
void |
graphChanged(GraphContainer container) |
void |
removeMenuItemStateListener(MenuUpdateListener listener) |
void |
setActiveTool(String toolname) |
protected void |
setScale(double scale) |
void |
showAllMap() |
void |
unblockSelectionEvents() |
void |
updateGraph() |
void |
valueChange(com.vaadin.v7.data.Property.ValueChangeEvent event)
ValueChange listener for the scale property
|
addContextClickListener, addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getCustomAttributes, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isCaptionAsHtml, isConnectorEnabled, isEnabled, isOrHasAncestor, isReadOnly, isRequiredIndicatorVisible, isResponsive, isVisible, readDesign, removeContextClickListener, removeListener, removeShortcutListener, removeStyleName, setCaption, setCaptionAsHtml, setComponentError, setData, setDebugId, setDescription, setDescription, setEnabled, setHeight, setHeight, setHeightFull, setHeightUndefined, setIcon, setId, setLocale, setParent, setPrimaryStyleName, setReadOnly, setRequiredIndicatorVisible, setResponsive, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidth, setWidthFull, setWidthUndefined, writeDesign
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addStyleNames, getUI, removeStyleNames, setStyleName
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public TopologyComponent(GraphContainer dataSource, IconRepositoryManager iconRepositoryManager, ContextMenuHandler contextMenuHandler)
protected TopologyComponentState getState()
getState
in class com.vaadin.ui.AbstractComponent
public void updateGraph()
protected void setScale(double scale)
protected Graph getGraph()
public void addMenuItemStateListener(MenuUpdateListener listener)
public void removeMenuItemStateListener(MenuUpdateListener listener)
public void graphChanged(GraphContainer container)
graphChanged
in interface GraphContainer.ChangeListener
public void valueChange(com.vaadin.v7.data.Property.ValueChangeEvent event)
valueChange
in interface com.vaadin.v7.data.Property.ValueChangeListener
public void setActiveTool(String toolname)
public void showAllMap()
public void centerMapOnSelection()
public void boundingBoxChanged(MapViewManager viewManager)
boundingBoxChanged
in interface MapViewManagerListener
public MapViewManager getViewManager()
public void addVertexUpdateListener(TopologyComponent.VertexUpdateListener listener)
public void blockSelectionEvents()
public void unblockSelectionEvents()
Copyright © 2021. All rights reserved.