GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing maxgraph.github.io — CellOverlay | @maxgraph/core
Class CellOverlayExtends EventSource to implement a graph overlay, represented by an icon and a tooltip. Overlays can handle and fire InternalEvent.CLICK events and are added to the graph using AbstractGraph.addCellOverlay, and removed using AbstractGraph.removeCellOverlay, or AbstractGraph.removeCellOverlays to remove all overlays. The AbstractGraph.getCellOverlays function returns the array of overlays for a given cell in a graph. If multiple overlays exist for the same cell, then getBounds should be overridden in at least one of the overlays. Overlays appear on top of all cells in a special layer. If this is not desirable, then the image must be rendered as part of the shape or label of the cell instead. For cell overlays to be printed, use PrintPreview.printOverlays. ExampleThe following adds a new overlay for a given vertex and selects the cell if the overlay is clicked.
EventsFires when the user clicks on the overlay. In the EventObject parameter of the listener function:
For touch devices this is fired if the element receives a touchend event. Hierarchy (View Summary)
Implements
|
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |