public class TopologyComponent extends com.vaadin.ui.AbstractComponent implements GraphContainer.ChangeListener, com.vaadin.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.Listenercom.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(MenuItemUpdateListener 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(MenuItemUpdateListener listener) |
void |
setActiveTool(String toolname) |
protected void |
setScale(double scale) |
void |
showAllMap() |
void |
unblockSelectionEvents() |
void |
updateGraph() |
void |
valueChange(com.vaadin.data.Property.ValueChangeEvent event)
ValueChange listener for the scale property
|
addListener, addShortcutListener, addStyleName, attach, beforeClientResponse, detach, findAncestor, fireComponentErrorEvent, fireComponentEvent, focus, getActionManager, getCaption, getComponentError, getData, getDebugId, getDescription, getErrorMessage, getHeight, getHeightUnits, getIcon, getId, getLocale, getParent, getPrimaryStyleName, getState, getStyleName, getWidth, getWidthUnits, isConnectorEnabled, isEnabled, isImmediate, isOrHasAncestor, isReadOnly, isVisible, removeListener, removeShortcutListener, removeStyleName, setCaption, setComponentError, setData, setDebugId, setDescription, setEnabled, setHeight, setHeight, setIcon, setId, setImmediate, setLocale, setParent, setPrimaryStyleName, setReadOnly, setSizeFull, setSizeUndefined, setStyleName, setVisible, setWidth, setWidthaddAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, createState, encodeState, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hasListeners, isAttached, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResourceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAttachListener, addDetachListener, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, handleConnectorRequest, isAttached, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerpublic TopologyComponent(GraphContainer dataSource, IconRepositoryManager iconRepositoryManager, ContextMenuHandler contextMenuHandler)
protected TopologyComponentState getState()
getState in class com.vaadin.ui.AbstractComponentpublic void updateGraph()
protected void setScale(double scale)
protected Graph getGraph()
public void addMenuItemStateListener(MenuItemUpdateListener listener)
public void removeMenuItemStateListener(MenuItemUpdateListener listener)
public void graphChanged(GraphContainer container)
graphChanged in interface GraphContainer.ChangeListenerpublic void valueChange(com.vaadin.data.Property.ValueChangeEvent event)
valueChange in interface com.vaadin.data.Property.ValueChangeListenerpublic void setActiveTool(String toolname)
public void showAllMap()
public void centerMapOnSelection()
public void boundingBoxChanged(MapViewManager viewManager)
boundingBoxChanged in interface MapViewManagerListenerpublic MapViewManager getViewManager()
public void addVertexUpdateListener(TopologyComponent.VertexUpdateListener listener)
public void blockSelectionEvents()
public void unblockSelectionEvents()
Copyright © 2017. All rights reserved.