Class TopologyComponent
- java.lang.Object
-
- com.vaadin.server.AbstractClientConnector
-
- com.vaadin.ui.AbstractComponent
-
- org.opennms.features.topology.app.internal.TopologyComponent
-
- All Implemented Interfaces:
com.vaadin.event.ContextClickEvent.ContextClickNotifier
,com.vaadin.event.MethodEventSource
,com.vaadin.event.SerializableEventListener
,com.vaadin.server.ClientConnector
,com.vaadin.server.Sizeable
,com.vaadin.shared.Connector
,com.vaadin.ui.Component
,com.vaadin.v7.data.Property.ValueChangeListener
,java.io.Serializable
,java.util.EventListener
,GraphContainer.ChangeListener
,MapViewManagerListener
@JavaScript("theme://../opennms/assets/topology-init.vaadin.js") @StyleSheet("theme://../opennms/assets/leaflet.css") public class TopologyComponent extends com.vaadin.ui.AbstractComponent implements GraphContainer.ChangeListener, com.vaadin.v7.data.Property.ValueChangeListener, MapViewManagerListener
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
TopologyComponent.VertexUpdateListener
-
Nested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
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 Summary
Constructors Constructor Description TopologyComponent(GraphContainer dataSource, IconRepositoryManager iconRepositoryManager, ContextMenuHandler contextMenuHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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(java.lang.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-
Methods inherited from class com.vaadin.ui.AbstractComponent
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
-
Methods inherited from class com.vaadin.server.AbstractClientConnector
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
-
-
-
-
Constructor Detail
-
TopologyComponent
public TopologyComponent(GraphContainer dataSource, IconRepositoryManager iconRepositoryManager, ContextMenuHandler contextMenuHandler)
-
-
Method Detail
-
getState
protected TopologyComponentState getState()
- Overrides:
getState
in classcom.vaadin.ui.AbstractComponent
-
updateGraph
public void updateGraph()
-
setScale
protected void setScale(double scale)
-
getGraph
protected Graph getGraph()
-
addMenuItemStateListener
public void addMenuItemStateListener(MenuUpdateListener listener)
-
removeMenuItemStateListener
public void removeMenuItemStateListener(MenuUpdateListener listener)
-
graphChanged
public void graphChanged(GraphContainer container)
- Specified by:
graphChanged
in interfaceGraphContainer.ChangeListener
-
valueChange
public void valueChange(com.vaadin.v7.data.Property.ValueChangeEvent event)
ValueChange listener for the scale property- Specified by:
valueChange
in interfacecom.vaadin.v7.data.Property.ValueChangeListener
-
setActiveTool
public void setActiveTool(java.lang.String toolname)
-
showAllMap
public void showAllMap()
-
centerMapOnSelection
public void centerMapOnSelection()
-
boundingBoxChanged
public void boundingBoxChanged(MapViewManager viewManager)
- Specified by:
boundingBoxChanged
in interfaceMapViewManagerListener
-
getViewManager
public MapViewManager getViewManager()
-
addVertexUpdateListener
public void addVertexUpdateListener(TopologyComponent.VertexUpdateListener listener)
-
blockSelectionEvents
public void blockSelectionEvents()
-
unblockSelectionEvents
public void unblockSelectionEvents()
-
-