Simon Hunt
deab432628
GUI -- Relabeled "Meta to select" button to "Pan/Zoom" -- makes more sense to me.
...
Change-Id: I331ff3aa584a42dcda5c2323b46297c9ca089a13
2014-11-13 18:49:07 -08:00
Simon Hunt
d72bc702dc
GUI -- Reworked selection logic to populate fly-in detail pane with action items.
...
Change-Id: I1a7ba3e04d608b7ec7bc635c21658d2d55b2d5c9
2014-11-13 18:38:19 -08:00
Simon Hunt
01095ff144
GUI -- Augmented pan/zoom & select/drag integration by having a toggle button for whether meta needs to be pressed for panning (default) or selecting.
...
- multi-select requires the shift key to be held down.
- Also re-wired deselectAll() to the ESC key, instead of click on background.
Change-Id: I63502839368c6ca10c64ee583a58f836576c4546
2014-11-13 16:37:38 -08:00
Paul Greyson
fcba0e8429
better readme, do scaling properly
...
implement pan/zoom on topo
R to reset pan/zoom
require meta to drag or select nodes
Change-Id: I15e20296e76d5cd8656b144b2d61a6923a5509ad
2014-11-13 14:02:01 -08:00
Simon Hunt
6ac93f3973
GUI --Cleaned up mouse-over/out in preparation for 'show-traffic' behavior.
...
- re-instated the unpin function.
Change-Id: I310804084b93e1cd16f3da31b49ea646db36c6d7
2014-11-13 13:34:38 -08:00
Simon Hunt
f8e5b4e0b9
GUI -- Implemented "Show Traffic on hover" toggle button in masthead.
...
- also included sample *Instance events.
Change-Id: Ibdee2b6c54a0a192361d269dbe69128d44604838
2014-11-13 11:58:01 -08:00
Thomas Vachuska
0724a5f4d5
Sketching out request/showTraffic interactions between GUI server/client.
...
Change-Id: I78dfe0da6a7b4e03972a8ef11190101614d81a63
2014-11-13 11:42:15 -08:00
Thomas Vachuska
3266abfeb9
Prototyping mouse-over behaviour for path/traffic selection; needs re-work.
...
Change-Id: I27507e8129b790e56192077bfb56028f2ec56d90
2014-11-13 10:38:47 -08:00
Thomas Vachuska
dea45ff7da
Adding enhancements to the GUI server-side.
...
Fixing a few intent-related glitches for the optical use-case.
Fixing lat/lng information in the optical config.
Change-Id: I6a1dd1ee69c2db2f0e351d191627bba468a3c49c
2014-11-12 20:31:04 -08:00
Paul Greyson
6cb8ca0195
implement topojson based map rendering
...
position devices based on location.lat/lng
use viewbox on topo root svg to support live scaling of map and nodes
Change-Id: I56c2b1e211ab63a694b817d04ee4bb62ac62cec4
2014-11-12 18:25:47 -08:00
Simon Hunt
d3b7d51f73
GUI -- Modified loading of background to occur asynchronously, after attempting to load Geo data from JSON file.
...
- falls back to static map if fails to load JSON.
Change-Id: I03ec8a73e86f7fe19e99241b176ae2a8ee99b1fd
2014-11-12 15:49:00 -08:00
Simon Hunt
b53e068293
GUI --Handle multi-selections (re-purpose the details pane);
...
- W = requestTraffic
- Z = requestPath
- X = cancelMonitor (not implemented yet)
Change-Id: Ic5f60d19a249b1224f20f90a3e5ce946a90625c0
2014-11-12 14:53:56 -08:00
Simon Hunt
c31d569493
GUI -- mulitselect WIP.
...
Change-Id: I4b0646b5372c8dc389662cc629affb23781e0672
2014-11-12 13:27:18 -08:00
Simon Hunt
0c6d419035
GUI -- Added 'mask' layer to alert user of loss of websocket connection.
...
Change-Id: I13f4cb0176936ec1a7db4efa58e5ad0e7ac9db15
2014-11-12 12:08:03 -08:00
Simon Hunt
ac9e24f3b3
GUI -- Fixed turbulent behavior of incoming nodes with no fixed position.
...
Change-Id: Ic73c0c8b91bd5ab07faec84ffcd0b67d2e357b29
2014-11-12 10:12:21 -08:00
Thomas Vachuska
ba5621e3a5
Added ping to age-out idle or stale connections.
...
Repushing due to a javadoc inherited from the master.
Change-Id: I375fc114079ba7d0a2897791ba05fa41762db80b
2014-11-12 02:51:53 -08:00
Thomas Vachuska
477bf81a06
Switching onos-gui command to use the new GUI.
...
Change-Id: If3ddaf56c175b58604beee41033d5364d4d3ae1a
2014-11-11 20:54:35 -08:00
Simon Hunt
3b9cddb388
GUI -- Fix topology message handler to only store the "memento" part of the updateMeta message.
...
Change-Id: Ia3d55acbb623b5750405669c0e3b7f0db1b136d2
2014-11-11 20:50:04 -08:00
Simon Hunt
61d040490f
GUI -- Added onos.ui.addFloatingPanel() function.
...
- re-instated detail pane in topo2.js; triggered of non-zero selection state.
- single-select now requests details and displays them in detail pane.
- multi-select WIP.
Change-Id: I300a3dfd4d35abc82f832a172854c6aff50d8cd6
2014-11-11 19:36:52 -08:00
Thomas Vachuska
f1fae003a6
Adding server-side code for sending device/host details to the client.
...
Change-Id: I02e15db996a848fc064ccaa14f0274275020d6be
2014-11-11 18:22:02 -08:00
Thomas Vachuska
0f6baee9bf
Added top-level location object per Simon/Paul spec.
...
Fixed an NPE in mastership when running optical demo.
Change-Id: I038000d1237b4150db0c722fa96dd9541d83e44e
2014-11-11 15:02:32 -08:00
Simon Hunt
ea80eb4468
GUI -- Fixed host node exit animation.
...
Change-Id: If9ad86451f5f7905fa01101d060d0490e206a4bc
2014-11-11 14:50:16 -08:00
Simon Hunt
44031108f4
GUI -- added removeHost code; augmented 'simple' scenario to include removeHost.
...
- flattened lat/long in device props "bag" - example events.
Change-Id: I1e619c84842c5fc4ab7a9dc59452c358f0ce7b10
2014-11-11 13:20:36 -08:00
Simon Hunt
902c9921c9
GUI -- Update to memento format.
...
Change-Id: I99c579668b17014d4cdceb9ce5898c4ed49c5be4
2014-11-11 11:59:47 -08:00
Simon Hunt
fc274c97d3
GUI -- Fixed link lookup bug when removing links.
...
- fixed and extended the 'startup' test scenario to show device coming online (and links added), followed by device going offline (and links removed).
Change-Id: I58f79b5b16d37504793f36db9959f8c3c26b5261
2014-11-11 11:05:46 -08:00
Thomas Vachuska
a7c3dd1477
Refactored topo view server-side for better separation of concerns.
...
Added addInstance/removeInstance/updateInstance messages.
Change-Id: If312d2401597a89cb18be51a784f62157059aebf
2014-11-11 09:49:17 -08:00
Simon Hunt
3f03d4a14e
GUI -- Added updateLink and removeLink event handling.
...
Change-Id: Iae2d1f47bd4849e8ac80bebe721a2aa0ad5f4964
2014-11-11 07:53:45 -08:00
Simon Hunt
bb282f5746
GUI -- Added updateDevice event handling.
...
- Display offline devices as grey.
- Tracing web socket messages (for now, in console; in future, to trace view).
- Captured sample events for use with test scenarios - both from and to the server.
- Added description to scenario file.
Change-Id: I7825b32d63496ebea2ab5789519fb0c6af6c5257
2014-11-10 16:55:40 -08:00
Simon Hunt
f67722acba
GUI -- tweaked couple of topo force layout parameters.
...
- made life-cycle callback parameters consistent; all now get - view (token), ctx, flags.
- updated module templates.
Change-Id: I142650508d3bf8fb42c98528a347500596a5f0b3
2014-11-10 09:32:06 -08:00
Simon Hunt
7cd48f3620
GUI -- store ref to node/link selection in backing data.
...
- tweaking force-layout parameters; now host-to-host intent path is highlighted.
- injectTestEvent() now uses recursion to look for appropriate json files.
- implemented updateHost() event.
- some refactoring cleanup in topo2.js
Change-Id: I888f05032d3c9df6470bd4d2f399f61efb9dbd46
2014-11-10 00:56:05 -08:00
Thomas Vachuska
4830d390a9
Added server-side code to create host-to-host intent. Still WIP.
...
Change-Id: I80626aa9ecb38802ddca4be3bce3def85ccfdb88
2014-11-09 18:17:24 -08:00
Thomas Vachuska
db3695a73f
Merge "GUI -- augmented hash parsing to include flags (after '?'), which are passed into view callbacks as a boolean map. - moved event test files into sub directories - prepared topo2.js for scenario choice via hash context and 'local' (and 'debug') flag. - added 'simple' scenario: 2 switches, 1 link, and 2 hosts. - augmented topo event dispatch for yet-to-be-implemented event handlers. - implemented addHost() event handler."
2014-11-09 15:40:44 -08:00
Simon Hunt
56d5185575
GUI -- augmented hash parsing to include flags (after '?'), which are passed into view callbacks as a boolean map.
...
- moved event test files into sub directories
- prepared topo2.js for scenario choice via hash context and 'local' (and 'debug') flag.
- added 'simple' scenario: 2 switches, 1 link, and 2 hosts.
- augmented topo event dispatch for yet-to-be-implemented event handlers.
- implemented addHost() event handler.
Change-Id: I06b032684fd4d5f85262d13d58ad10edae23b3ed
2014-11-09 15:24:49 -08:00
Thomas Vachuska
70c16adc2b
Adding "id" to the link messages to the GUI.
...
Change-Id: I4ce4b7e4a643307cb05ead6c544a8531d516af4e
2014-11-09 11:20:35 -08:00
Thomas Vachuska
690e5f6286
Adding GUI server-side code.
...
Change-Id: Iaa8452a315762f9a57c5bdaec2de4ec60877d928
2014-11-09 10:00:52 -08:00
Simon Hunt
5f36d34be9
GUI -- Fixed empty or null label issue (cycle labels)
...
- use Math.floor on [x,y] coords sent to server.
Change-Id: I81940892cb11e14c207e0e153425513022cef669
2014-11-08 21:33:14 -08:00
Thomas Vachuska
65368e37d1
GUI -- Added global key bindings mechanism
...
- 'T' now toggles theme (light/dark) -- mast CSS done, other CSS to do
- 'ESC' now closes alerts box if it is open
- Minor cleanup to topo2.js
Change-Id: I506a6add4299a6c03dcb717c33394ad94be26997
2014-11-08 21:08:36 -08:00
Thomas Vachuska
d1be50de92
Adding multi-selection to the GUI and sketching out GUI/Server interactions.
...
Added persistent meta-data; including node coordinates.
Added ability to request path and return one.
Change-Id: I3edbdf44bbb8d8133a5e5a1fd0660a3fa5a2d6a1
2014-11-08 17:18:37 -08:00
Simon Hunt
50128c084f
GUI -- Some cleanup in topo.js
...
Change-Id: Icee133a25d1638cdcc7be591ffc62fed4e3d9808
2014-11-08 13:36:15 -08:00
Thomas Vachuska
d472c6e0d7
Hooking up GUI server & client via web-socket.
...
Change-Id: If522a5f46de528f28bf09a985af40b140ef5abaa
2014-11-07 19:11:05 -08:00
Thomas Vachuska
7d638d3712
Initial sketch of the GUI web-socket mechanics.
...
Change-Id: I5f481886fd45ce058be4aaf07fba466e702ae7ad
2014-11-07 15:12:00 -08:00
Simon Hunt
1a9eff99ee
GUI -- Test events: unpinned the first node; increased a few link widths.
...
- added alerts pane to framework.
- added library registration mechanism to framework.
- created d3Utils library
- reimplemented drag behavior of nodes.
Change-Id: I501f4ab6eded8393948cede903573580599258b1
2014-11-07 12:21:36 -08:00
Simon Hunt
99c138497e
GUI - reworked to allow for event-based topology building, in preparation for web-socket connection to the server.
...
- device nodes will enter in a fixed location, if metaUi data is included in the addDevice event.
- device nodes now adjust their bounds to fit the text (and show an icon).
- added cycle labels function (press the 'L' key).
- links now appear with "transition" animation.
NOTE: this is still WIP.
Change-Id: I3adbe9895e189e482316e86384dd53fd27781cd3
2014-11-07 07:37:47 -08:00
Simon Hunt
929f77b021
Set boolean to true for live data.
...
Change-Id: I5d13ddcd51e17e529db87480ba1671d57c53f164
2014-11-06 10:40:04 -08:00
Simon Hunt
2fe26ac426
test (added lines)
...
Change-Id: I9af9dceb5058d5d17c6943371d3c78e5d65ed65e
2014-11-06 10:07:25 -08:00
Simon Hunt
c7ee066102
GUI -- Major Work-In-Progress
...
- Added dataLoadError to view token.
- Restructured code, viz:
(1) svg and force layout initialized in preload callback
(2) load callback initializes topo rendering
(3) subsequent data loads modify topo rendering
2014-11-05 16:46:50 -08:00
Simon Hunt
934c3ce9ed
GUI -- Simplified setRadio() api. Other minor cleanup. Added test topology data files.
2014-11-05 11:45:57 -08:00
Simon Hunt
a09b927829
GUI -- Removed out of date comment.
2014-11-04 23:01:07 -08:00
Simon Hunt
0df1b1d83c
GUI -- Added key handler mechanism.
2014-11-04 22:58:55 -08:00
Simon Hunt
142d003abf
GUI -- Starting migration of topology view to the updated framework. WIP.
2014-11-04 20:18:04 -08:00