public static class ModelDiscoveryUI.CustomGraph extends mxGraph
mxGraph.mxICellVisitormxEventSource.mxIEventListener| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Object |
edgeTemplate
Holds the edge to be used as a template for inserting new edges.
|
allowDanglingEdges, allowLoops, allowNegativeCoordinates, alternateEdgeStyle, attributes, autoOrigin, autoSizeCells, border, cellsBendable, cellsCloneable, cellsDeletable, cellsDisconnectable, cellsEditable, cellsLocked, cellsMovable, cellsResizable, cellsSelectable, changesRepaintThreshold, changeSupport, checkEnabled, cloneInvalidEdges, collapseToPreferredSize, connectableEdges, connectorEnabled, constrainChildren, defaultLoopStyle, defaultOverlap, defaultParent, disconnectOnMove, dropEnabled, edgeLabelsMovable, enabled, extendParents, extendParentsOnAdd, fullRepaintHandler, graphModelChangeHandler, gridEnabled, gridSize, htmlLabels, imageBundles, keepEdgesInBackground, keepEdgesInForeground, labelsClipped, labelsVisible, maximumGraphBounds, minimumGraphSize, model, multigraph, multiplicities, origin, pageBreaksEnabled, portsEnabled, relationTypeVSDisplayFlag, resetEdgesOnConnect, resetEdgesOnMove, resetEdgesOnResize, resetViewOnRootChange, selectionModel, showingAOCRelationEnabled, showingCardinalityEnabled, showingCoExistenceRelationEnabled, showingCrelRelationEnabled, showingNameEnabled, showingNonCoExistenceRelationEnabled, showingNonPrecedenceRelationEnabled, showingNonRelationEnabled, showingNonResponseRelationEnabled, showingPrecedenceRelationEnabled, showingResponseRelationEnabled, showingTransitiveRelationEnabled, showingUnaryPrecedenceRelationEnabled, showingUnaryResponseRelationEnabled, splitEnabled, stylesheet, swimlaneNesting, updateOriginHandler, VERSION, vertexLabelsMovable, vieweventListeners, eventsEnabled, eventSource| Constructor and Description |
|---|
CustomGraph()
Custom graph that defines the alternate edge style to be used when
the middle control point of edges is double clicked (flipped).
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
createEdge(java.lang.Object parent,
java.lang.String id,
java.lang.Object value,
java.lang.Object source,
java.lang.Object target,
java.lang.String style)
Overrides the method to use the currently selected edge template for
new edges.
|
java.lang.String |
getToolTipForCell(java.lang.Object cell)
Prints out some useful information about the cell in the tooltip.
|
void |
setEdgeTemplate(java.lang.Object template)
Sets the edge template to be used to inserting edges.
|
addAllEdges, addCell, addCell, addCell, addCells, addCells, addCells, addCells, addEdge, addImageBundle, addPropertyChangeListener, addPropertyChangeListener, addSelectionCell, addSelectionCells, alignCells, alignCells, alignCells, cellConnected, cellDrawn, cellLabelChanged, cellsAdded, cellsAdded, cellsFolded, cellsFolded, cellSizeUpdated, cellsMoved, cellsOrdered, cellsRemoved, cellsResized, cellsToggled, clearSelection, cloneCells, cloneCells, connectCell, connectCell, constrainChild, convertValueToString, createGraphView, createGroupCell, createSelectionModel, createStylesheet, createVertex, createVertex, disconnectGraph, drawCell, drawGraph, drawState, enterGroup, enterGroup, exitGroup, extendParent, findTreeRoots, findTreeRoots, findTreeRoots, flipEdge, foldCells, foldCells, foldCells, foldCells, generateClassList, getActivityRelationList, getAllCells, getAllConnectionConstraints, getAllEdges, getAlternateEdgeStyle, getAOCRelationListWithCardinalities, getAOCRelationListWithoutCardinalities, getAttributes, getBorder, getBoundingBox, getBoundingBox, getBoundingBox, getBoundingBoxFromGeometry, getBoundsForCells, getBoundsForGroup, getCardinalities, getCellBounds, getCellBounds, getCellBounds, getCellBounds, getCellContainmentArea, getCellGeometry, getCellsBeyond, getCellsForGroup, getCellStyle, getCellValidationError, getChangesRepaintThreshold, getChildCells, getChildCells, getChildEdges, getChildOffsetForCell, getChildVertices, getClassRelationListWithCardinalities, getClassRelationListWithoutCardinalities, getCloneableCells, getCoExistenceRelationList, getConnectionConstraint, getConnectionPoint, getConnections, getConnections, getConnections, getCrelRelationList, getCurrentRoot, getDefaultLoopStyle, getDefaultOverlap, getDefaultParent, getDeletableCells, getDropTarget, getEdgeBetweenTwoNodes, getEdges, getEdges, getEdges, getEdges, getEdgesBetween, getEdgesBetween, getEdgeValidationError, getFoldableCells, getGraphBounds, getGridSize, getImage, getImageBundles, getImageBundles, getImageFromBundles, getIncomingEdges, getIncomingEdges, getLabel, getLinkForCell, getMaximumGraphBounds, getMinimumGraphSize, getModel, getMovableCells, getMultiplicities, getNodeByName, getNonActivityRelationList, getNonCoExistenceRelationList, getNonPrecedenceRelationList, getNonResponseRelationList, getOffspringCells, getOpposites, getOpposites, getOrigin, getOutgoingEdges, getOutgoingEdges, getOverlap, getPaintBounds, getPrecedenceRelationList, getPreferredSizeForCell, getRelationDisplayFlag, getRemovedCellsForChanges, getResponseRelationList, getSelectionCell, getSelectionCells, getSelectionCellsForChanges, getSelectionCount, getSelectionModel, getStartSize, getStylesheet, getTargetForCell, getTerminalForPort, getTransitiveActivityRelationList, getTranslateForRoot, getUnaryPrecedenceRelationList, getUnaryResponseRelationList, getView, graphModelChanged, groupCells, groupCells, groupCells, groupCells, home, insertEdge, insertEdge, insertVertex, insertVertex, insertVertex, isAllowDanglingEdges, isAllowLoops, isAllowNegativeCoordinates, isAllowOverlapParent, isAutoOrigin, isAutoSizeCell, isAutoSizeCells, isCellBendable, isCellCloneable, isCellCollapsed, isCellConnectable, isCellDeletable, isCellDisconnectable, isCellEditable, isCellFoldable, isCellLocked, isCellMovable, isCellResizable, isCellsBendable, isCellsCloneable, isCellsDeletable, isCellsDisconnectable, isCellsEditable, isCellSelectable, isCellSelected, isCellsLocked, isCellsMovable, isCellsResizable, isCellsSelectable, isCellVisible, isCheckEnabled, isCloneInvalidEdges, isCollapseToPreferredSize, isConnectableEdges, isConnectorEnabled, isConstrainChild, isConstrainChildren, isDisconnectOnMove, isDropEnabled, isEdgeLabelsMovable, isEdgeValid, isEnabled, isExtendParent, isExtendParents, isExtendParentsOnAdd, isGridEnabled, isHtmlLabel, isHtmlLabels, isKeepEdgesInBackground, isKeepEdgesInForeground, isLabelClipped, isLabelMovable, isLabelsClipped, isLabelsVisible, isLoop, isMultigraph, isOrthogonal, isPageBreaksEnabled, isPort, isPortsEnabled, isResetEdgesOnConnect, isResetEdgesOnMove, isResetEdgesOnResize, isResetViewOnRootChange, isSelectionEmpty, isShowingAOCRelationEnabled, isShowingCardinalityEnabled, isShowingCoExistenceRelationEnabled, isShowingCrelRelationEnabled, isShowingNameEnabled, isShowingNonCoExistenceRelationEnabled, isShowingNonPrecedenceRelationEnabled, isShowingNonRelationEnabled, isShowingNonResponseRelationEnabled, isShowingPrecedenceRelationEnabled, isShowingResponseRelationEnabled, isShowingTransitiveRelationEnabled, isShowingUnaryPrecedenceRelationEnabled, isShowingUnaryResponseRelationEnabled, isSplitEnabled, isSplitTarget, isSwimlane, isSwimlaneNesting, isTerminalPointMovable, isValidAncestor, isValidConnection, isValidDropTarget, isValidRoot, isValidSource, isValidTarget, isVertexLabelsMovable, main, moveCells, moveCells, moveCells, orderCells, orderCells, postProcessCellStyle, processChange, processChanges, refresh, removeCells, removeCells, removeCells, removeCellsFromParent, removeCellsFromParent, removeImageBundle, removePropertyChangeListener, removePropertyChangeListener, removeSelectionCell, removeSelectionCells, removeStateForCell, repaint, repaint, resetEdge, resetEdges, resizeCell, resizeCells, selectAll, selectAll, selectCell, selectCells, selectCells, selectChildCell, selectEdges, selectEdges, selectNextCell, selectParentCell, selectPreviousCell, selectVertices, selectVertices, setAllowDanglingEdges, setAllowLoops, setAllowNegativeCoordinates, setAlternateEdgeStyle, setAttributes, setAutoOrigin, setAutoSizeCells, setBorder, setCellsBendable, setCellsCloneable, setCellsDeletable, setCellsDisconnectable, setCellsEditable, setCellsLocked, setCellsMovable, setCellsResizable, setCellsSelectable, setCellStyle, setCellStyle, setCellStyleFlags, setCellStyleFlags, setCellStyles, setCellStyles, setChangesRepaintThreshold, setCheckEnabled, setCloneInvalidEdges, setCollapseToPreferredSize, setConnectableEdges, setConnectionConstraint, setConnectorEnabled, setConstrainChildren, setDefaultLoopStyle, setDefaultOverlap, setDefaultParent, setDisconnectOnMove, setDropEnabled, setEdgeLabelsMovable, setEnabled, setExtendParents, setExtendParentsOnAdd, setGridEnabled, setGridSize, setHtmlLabels, setKeepEdgesInBackground, setKeepEdgesInForeground, setLabelsClipped, setLabelsVisible, setMaximumGraphBounds, setMinimumGraphSize, setModel, setMultigraph, setMultiplicities, setOrigin, setPageBreaksEnabled, setPortsEnabled, setRelationDisplayFlag, setResetEdgesOnConnect, setResetEdgesOnMove, setResetEdgesOnResize, setResetViewOnRootChange, setSelectionCell, setSelectionCells, setSelectionCells, setShowingAOCRelationEnabled, setShowingCardinalityEnabled, setShowingCoExistenceRelationEnabled, setShowingCrelRelationEnabled, setShowingNameEnabled, setShowingNonCoExistenceRelationEnabled, setShowingNonPrecedenceRelationEnabled, setShowingNonRelationEnabled, setShowingNonResponseRelationEnabled, setShowingPrecedenceRelationEnabled, setShowingResponseRelationEnabled, setShowingTransitiveRelationEnabled, setShowingUnaryPrecedenceRelationEnabled, setShowingUnaryResponseRelationEnabled, setSplitEnabled, setStylesheet, setSwimlaneNesting, setVertexLabelsMovable, setView, snap, splitEdge, splitEdge, splitEdge, swapBounds, toggleCells, toggleCells, toggleCells, toggleCellStyle, toggleCellStyleFlags, toggleCellStyleFlags, toggleCellStyles, toggleCellStyles, translateCell, traverse, traverse, ungroupCells, ungroupCells, updateAlternateBounds, updateCellSize, updateCellSize, updateGroupBounds, updateGroupBounds, updateGroupBounds, updateGroupBounds, updateOrigin, validateCell, validateEdgeaddListener, fireEvent, fireEvent, getEventSource, isEventsEnabled, removeListener, removeListener, setEventsEnabled, setEventSourceprotected java.lang.Object edgeTemplate
public CustomGraph()
public void setEdgeTemplate(java.lang.Object template)
public java.lang.String getToolTipForCell(java.lang.Object cell)
getToolTipForCell in class mxGraphpublic java.lang.Object createEdge(java.lang.Object parent,
java.lang.String id,
java.lang.Object value,
java.lang.Object source,
java.lang.Object target,
java.lang.String style)
createEdge in class mxGraphgraph - parent - id - value - source - target - style -