public class ConstraintGraphPresenter
extends de.ims.icarus.plugins.jgraph.view.GraphPresenter
Modifier and Type | Class and Description |
---|---|
class |
ConstraintGraphPresenter.CCallbackHandler |
protected class |
ConstraintGraphPresenter.CConnectPreview |
protected class |
ConstraintGraphPresenter.ConstraintGraph |
protected class |
ConstraintGraphPresenter.ContextChange |
de.ims.icarus.plugins.jgraph.view.GraphPresenter.CallbackHandler, de.ims.icarus.plugins.jgraph.view.GraphPresenter.DelegatingConnectionHandler, de.ims.icarus.plugins.jgraph.view.GraphPresenter.DelegatingConnectPreview, de.ims.icarus.plugins.jgraph.view.GraphPresenter.DelegatingGraph, de.ims.icarus.plugins.jgraph.view.GraphPresenter.EdgeHighlightHandler, de.ims.icarus.plugins.jgraph.view.GraphPresenter.GraphConfigDelegate, de.ims.icarus.plugins.jgraph.view.GraphPresenter.Handler, de.ims.icarus.plugins.jgraph.view.GraphPresenter.LayoutChange, de.ims.icarus.plugins.jgraph.view.GraphPresenter.RendererChange, de.ims.icarus.plugins.jgraph.view.GraphPresenter.StyleChange
com.mxgraph.swing.mxGraphComponent.mxGraphControl, com.mxgraph.swing.mxGraphComponent.mxMouseRedirector
javax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBar
javax.swing.JComponent.AccessibleJComponent
java.awt.Container.AccessibleAWTContainer
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
de.ims.icarus.ui.view.AWTPresenter.ChartBasedPresenter, de.ims.icarus.ui.view.AWTPresenter.GraphBasedPresenter, de.ims.icarus.ui.view.AWTPresenter.ListBasedPresenter, de.ims.icarus.ui.view.AWTPresenter.TableBasedPresenter, de.ims.icarus.ui.view.AWTPresenter.TextBasedPresenter
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CELL_DATA_TYPE |
protected ConstraintContext |
constraintContext |
protected boolean |
disjuntiveRoots |
protected java.util.concurrent.atomic.AtomicInteger |
idGen |
protected DefaultSearchGraph |
searchGraph |
actionManager, allowCycles, annotationControl, autoZoomEnabled, callbackHandler, compressEnabled, configDelegate, edgeHighlightHandler, editable, editableMainToolBarListId, editablePopupMenuListId, enforceTree, graphLayout, graphRenderer, graphStyle, handler, ignoreDataChange, ignoreGraphChange, ignoreModCount, incomingEdgeColor, lastRebuildModCount, markIncomingEdges, markOutgoingEdges, maximumNodeSize, minimumNodeSize, modCount, outgoingEdgeColor, popupMenu, preferredNodeSize, presentingComponent, rubberband, SELECT_LAYOUT_COMMAND, SELECT_RENDERER_COMMAND, SELECT_STYLE_COMMAND, undoManager, uneditableMainToolBarListId, uneditablePopupMenuListId, wheelZoomEnabled
antiAlias, autoExtend, autoScroll, backgroundImage, canvas, cellEditor, centerPage, centerZoom, collapsedIcon, components, connectionHandler, DEFAULT_COLLAPSED_ICON, DEFAULT_EXPANDED_ICON, DEFAULT_PAGESCALE, DEFAULT_WARNING_ICON, dragEnabled, enterStopsCellEditing, escapeEnabled, eventSource, expandedIcon, exportEnabled, foldingEnabled, graph, graphControl, graphHandler, GRID_STYLE_CROSS, GRID_STYLE_DASHED, GRID_STYLE_DOT, GRID_STYLE_LINE, gridColor, gridStyle, gridVisible, horizontalPageCount, importEnabled, invokesStopCellEditing, keepSelectionVisibleOnZoom, overlays, pageBackgroundColor, pageBorderColor, pageBreakColor, pageBreaksVisible, pageFormat, pageScale, pageShadowColor, pageVisible, panningHandler, preferPageSize, previewAlpha, repaintHandler, scaleHandler, selectionCellsHandler, showDirtyRectangle, swimlaneSelectionEnabled, textAntiAlias, tolerance, transparentSwimlaneContent, tripleBuffer, tripleBuffered, tripleBufferGraphics, updateHandler, verticalPageCount, viewChangeHandler, warningIcon, ZOOM_POLICY_NONE, ZOOM_POLICY_PAGE, ZOOM_POLICY_WIDTH, zoomFactor, zoomPolicy
columnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewport
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
COLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT
Constructor and Description |
---|
ConstraintGraphPresenter() |
Modifier and Type | Method and Description |
---|---|
void |
addDisjunction() |
void |
addEdge(java.lang.Object source,
java.lang.Object target,
boolean orderEdge) |
void |
addNode() |
void |
clearGraph() |
void |
cloneCells(java.lang.Object[] cells) |
protected de.ims.icarus.ui.actions.ActionManager |
createActionManager() |
protected de.ims.icarus.util.annotation.AnnotationControl |
createAnnotationControl()
This presenter 'creates' constraints that themselves result in
annotations, so there is no reason to provide navigable
visualization of annotation data here.
|
protected de.ims.icarus.plugins.jgraph.view.GraphPresenter.CallbackHandler |
createCallbackHandler() |
protected com.mxgraph.swing.view.mxICellEditor |
createCellEditor() |
protected de.ims.icarus.config.ConfigDelegate |
createConfigDelegate() |
protected com.mxgraph.swing.handler.mxConnectPreview |
createConnectPreview() |
protected ConstraintContext |
createDefaultContext() |
protected de.ims.icarus.plugins.jgraph.layout.GraphLayout |
createDefaultGraphLayout() |
protected de.ims.icarus.plugins.jgraph.layout.GraphRenderer |
createDefaultGraphRenderer() |
protected de.ims.icarus.plugins.jgraph.layout.GraphStyle |
createDefaultGraphStyle() |
protected ConstraintEdgeData |
createEdgeData() |
protected ConstraintEdgeData |
createEdgeData(SearchEdge source,
gnu.trove.map.TObjectIntMap<java.lang.String> constraintMap) |
protected de.ims.icarus.plugins.jgraph.view.GraphPresenter.EdgeHighlightHandler |
createEdgeHighlightHandler() |
protected com.mxgraph.view.mxGraph |
createGraph() |
protected de.ims.icarus.util.Options |
createLayoutOptions() |
protected ConstraintNodeData |
createNodeData() |
protected ConstraintNodeData |
createNodeData(SearchNode source,
gnu.trove.map.TObjectIntMap<java.lang.String> constraintMap) |
protected void |
ensureTree(java.lang.Object newEdge) |
de.ims.icarus.plugins.jgraph.util.CellBuffer |
exportCells(java.lang.Object[] cells) |
ConstraintContext |
getConstraintContext() |
protected gnu.trove.map.TObjectIntMap<java.lang.String> |
getConstraintMap() |
de.ims.icarus.util.data.ContentType |
getContentType() |
SearchGraph |
getData() |
protected int |
getIncomingEdgeCount(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell,
boolean includeNormal,
boolean includeOrder) |
java.lang.Object |
getPresentedData() |
void |
importCells(de.ims.icarus.plugins.jgraph.util.CellBuffer buffer) |
java.lang.Object[] |
importCells(java.lang.Object[] cells,
double dx,
double dy,
java.lang.Object target,
java.awt.Point location) |
protected void |
initGraphComponentInternals() |
static boolean |
isDisjunctionNode(de.ims.icarus.plugins.jgraph.layout.GraphOwner owner,
java.lang.Object cell) |
static boolean |
isDisjunctionNode(com.mxgraph.view.mxCellState state) |
static boolean |
isDisjunctionNode(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
boolean |
isDisjuntiveRoots() |
boolean |
isEditable() |
static boolean |
isLinkEdge(de.ims.icarus.plugins.jgraph.layout.GraphOwner owner,
java.lang.Object cell) |
static boolean |
isLinkEdge(com.mxgraph.view.mxCellState state) |
static boolean |
isLinkEdge(com.mxgraph.model.mxIGraphModel model,
java.lang.Object cell) |
boolean |
isLinkEdge(java.lang.Object cell) |
boolean |
isOrderEdge(java.lang.Object cell) |
boolean |
isPresenting() |
protected com.mxgraph.util.mxRectangle |
layoutNode(SearchNode sourceNode,
double x,
double y,
SearchEdge sourceEdge,
java.lang.Object parent,
java.util.Map<SearchNode,java.lang.Object> cellMap,
gnu.trove.map.TObjectIntMap<java.lang.String> constraintMap) |
protected void |
loadPreferences() |
protected void |
registerActionCallbacks() |
void |
setConstraintContext(ConstraintContext context) |
protected void |
setData(java.lang.Object data,
de.ims.icarus.util.Options options) |
void |
setDisjuntiveRoots(boolean disjuntiveRoots) |
SearchGraph |
snapshot()
Creates a
SearchGraph that represents the current
visual state of the mxGraph this presenter is using. |
protected void |
syncToData() |
protected void |
syncToGraph() |
canCollapse, canEdit, canExpand, clear, clearUndoHistory, close, collapseCells, copyCells, createActionMap, createConnectionHandler, createFocusedInputMap, createHandler, createLeftComponent, createPopupMenu, createPresentingComponent, createStyleOptions, createUndoManager, createUpperComponent, createUpperToolBar, deleteCells, editCell, executeChange, expandCells, feedSelector, getActionManager, getAnnotationManager, getConfigDelegate, getEdgeHighlightHandler, getGraphLayout, getGraphRenderer, getGraphStyle, getHandler, getIncomingEdgeColor, getLayoutCells, getMaximumNodeSize, getMinimumNodeSize, getOutgoingEdgeColor, getPageTranslate, getPreferredNodeSize, getPreferredSizeForPage, getPresentingComponent, getScaledPreferredSizeForGraph, getSelectionCells, getSelectionEdges, getSelectionVertices, getUndoManager, init, installKeyboardActions, installUtilities, isAllowCycles, isAutoZoomEnabled, isCompressEnabled, isEnforceTree, isHighlightedIncomingEdge, isHighlightedOutgoingEdge, isIgnoringChanges, isIgnoringGraphChanges, isIgnoringModCounts, isMarkIncomingEdges, isMarkOutgoingEdges, isWheelZoomEnabled, moveCells, openConfig, pasteCells, pauseChangeHandling, pauseGraphChangeHandling, pauseModCountHandling, present, printGraph, rebuildGraph, redo, refreshActions, refreshAll, refreshCells, refreshEdges, refreshLayout, refreshStyles, refreshVertices, resumeChangeHandling, resumeGraphChangeHandling, resumeModCountHandling, setAllowCycles, setAnnotationManager, setAutoZoomEnabled, setCanvas, setCompressEnabled, setEditable, setEnforceTree, setGraph, setGraphLayout, setGraphRenderer, setGraphStyle, setIncomingEdgeColor, setMarkIncomingEdges, setMarkOutgoingEdges, setMaximumNodeSize, setMinimumNodeSize, setOutgoingEdgeColor, setPreferredNodeSize, setWheelZoomEnabled, showMessage, showPopup, supports, undo
addCellOverlay, addListener, canExportCell, canImportCell, checkTripleBuffer, clearCellOverlays, clearCellOverlays, createCanvas, createComponents, createGraphControl, createGraphHandler, createHandler, createHandlers, createPanningHandler, createSelectionCellsHandler, createTransferHandler, createTripleBuffer, destroyTripleBuffer, escape, getBackgroundImage, getCanvas, getCellAt, getCellAt, getCellAt, getCellEditor, getCellOverlays, getCells, getCells, getConnectionHandler, getEditingValue, getExportableCells, getFoldingIcon, getFoldingIconBounds, getGraph, getGraphControl, getGraphHandler, getGridColor, getGridStyle, getHorizontalPageBorder, getHorizontalPageCount, getImportableCells, getLayoutAreaSize, getPageBackgroundColor, getPageBorderColor, getPageBreakColor, getPageFormat, getPageScale, getPageShadowColor, getPanningHandler, getPointForEvent, getPointForEvent, getPreviewAlpha, getSelectionCellsHandler, getTolerance, getTripleBuffer, getVerticalPageBorder, getVerticalPageCount, getZoomFactor, getZoomPolicy, hitFoldingIcon, insertComponent, installDoubleClickHandler, installFocusHandler, installKeyHandler, installResizeHandler, isAntiAlias, isAutoExtend, isAutoScroll, isCenterPage, isCenterZoom, isCloneEvent, isConnectable, isConstrainedEvent, isDragEnabled, isEditEvent, isEditing, isEnterStopsCellEditing, isEscapeEnabled, isEventsEnabled, isExportEnabled, isFoldingEnabled, isForceMarqueeEvent, isForceTripleBuffered, isGridEnabledEvent, isGridVisible, isImportEnabled, isInvokesStopCellEditing, isKeepSelectionVisibleOnZoom, isPageBreaksVisible, isPageVisible, isPanning, isPanningEvent, isPreferPageSize, isSignificant, isSwimlaneSelectionEnabled, isTextAntiAlias, isToggleEvent, isTripleBuffered, labelChanged, maintainScrollBar, paintBackground, paintBackgroundImage, paintBackgroundPage, paintGrid, print, redraw, refresh, removeAllComponents, removeAllOverlays, removeCellOverlay, removeCellOverlayComponent, removeCellOverlays, removeComponent, removeListener, removeListener, repaintTripleBuffer, scrollCellToVisible, scrollCellToVisible, scrollToCenter, selectCellForEvent, selectCellsForEvent, selectRegion, setAntiAlias, setAutoExtend, setAutoScroll, setBackgroundImage, setCellEditor, setCellWarning, setCellWarning, setCellWarning, setCenterPage, setCenterZoom, setConnectable, setDragEnabled, setEnterStopsCellEditing, setEscapeEnabled, setEventsEnabled, setExportEnabled, setFoldingEnabled, setGridColor, setGridStyle, setGridVisible, setHorizontalPageCount, setImportEnabled, setInvokesStopCellEditing, setKeepSelectionVisibleOnZoom, setPageBackgroundColor, setPageBorderColor, setPageBreakColor, setPageBreaksVisible, setPageFormat, setPageScale, setPageShadowColor, setPageVisible, setPanning, setPreferPageSize, setPreviewAlpha, setSwimlaneSelectionEnabled, setTextAntiAlias, setTolerance, setToolTips, setTripleBuffered, setVerticalPageCount, setZoomFactor, setZoomPolicy, snapScaledPoint, snapScaledPoint, startEditing, startEditingAtCell, startEditingAtCell, stopEditing, updateCellOverlayComponent, updateCellOverlays, updateComponent, updateComponents, updateComponents, validateGraph, validateGraph, zoom, zoom, zoomActual, zoomAndCenter, zoomIn, zoomOut, zoomTo
createHorizontalScrollBar, createVerticalScrollBar, createViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBar, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBar, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setViewportView, setWheelScrollingEnabled, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public static final java.lang.String CELL_DATA_TYPE
protected DefaultSearchGraph searchGraph
protected ConstraintContext constraintContext
protected boolean disjuntiveRoots
protected final java.util.concurrent.atomic.AtomicInteger idGen
public static boolean isLinkEdge(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static boolean isLinkEdge(com.mxgraph.view.mxCellState state)
public static boolean isLinkEdge(de.ims.icarus.plugins.jgraph.layout.GraphOwner owner, java.lang.Object cell)
public static boolean isDisjunctionNode(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell)
public static boolean isDisjunctionNode(com.mxgraph.view.mxCellState state)
public static boolean isDisjunctionNode(de.ims.icarus.plugins.jgraph.layout.GraphOwner owner, java.lang.Object cell)
protected de.ims.icarus.util.annotation.AnnotationControl createAnnotationControl()
createAnnotationControl
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
GraphPresenter.createAnnotationControl()
protected de.ims.icarus.plugins.jgraph.view.GraphPresenter.CallbackHandler createCallbackHandler()
createCallbackHandler
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected de.ims.icarus.plugins.jgraph.view.GraphPresenter.EdgeHighlightHandler createEdgeHighlightHandler()
createEdgeHighlightHandler
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected void loadPreferences()
loadPreferences
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected void initGraphComponentInternals()
initGraphComponentInternals
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected ConstraintContext createDefaultContext()
protected com.mxgraph.swing.view.mxICellEditor createCellEditor()
createCellEditor
in class com.mxgraph.swing.mxGraphComponent
protected de.ims.icarus.plugins.jgraph.layout.GraphRenderer createDefaultGraphRenderer()
createDefaultGraphRenderer
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected de.ims.icarus.plugins.jgraph.layout.GraphStyle createDefaultGraphStyle()
createDefaultGraphStyle
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected de.ims.icarus.plugins.jgraph.layout.GraphLayout createDefaultGraphLayout()
createDefaultGraphLayout
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected de.ims.icarus.config.ConfigDelegate createConfigDelegate()
createConfigDelegate
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected com.mxgraph.swing.handler.mxConnectPreview createConnectPreview()
createConnectPreview
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected de.ims.icarus.util.Options createLayoutOptions()
createLayoutOptions
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected de.ims.icarus.ui.actions.ActionManager createActionManager()
createActionManager
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected void registerActionCallbacks()
registerActionCallbacks
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public boolean isEditable()
isEditable
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public boolean isPresenting()
Presenter.isPresenting()
public java.lang.Object getPresentedData()
Presenter.getPresentedData()
public de.ims.icarus.util.data.ContentType getContentType()
getContentType
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
GraphPresenter.getContentType()
protected void setData(java.lang.Object data, de.ims.icarus.util.Options options)
setData
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
GraphPresenter.setData(java.lang.Object, de.ims.icarus.util.Options)
protected ConstraintNodeData createNodeData()
protected ConstraintNodeData createNodeData(SearchNode source, gnu.trove.map.TObjectIntMap<java.lang.String> constraintMap)
protected ConstraintEdgeData createEdgeData()
protected ConstraintEdgeData createEdgeData(SearchEdge source, gnu.trove.map.TObjectIntMap<java.lang.String> constraintMap)
public boolean isOrderEdge(java.lang.Object cell)
isOrderEdge
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public boolean isLinkEdge(java.lang.Object cell)
isLinkEdge
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected gnu.trove.map.TObjectIntMap<java.lang.String> getConstraintMap()
public void clearGraph()
clearGraph
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
protected void syncToGraph()
syncToGraph
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
GraphPresenter.syncToGraph()
protected com.mxgraph.util.mxRectangle layoutNode(SearchNode sourceNode, double x, double y, SearchEdge sourceEdge, java.lang.Object parent, java.util.Map<SearchNode,java.lang.Object> cellMap, gnu.trove.map.TObjectIntMap<java.lang.String> constraintMap)
protected void syncToData()
syncToData
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
GraphPresenter.syncToData()
public SearchGraph snapshot()
SearchGraph
that represents the current
visual state of the mxGraph
this presenter is using.protected int getIncomingEdgeCount(com.mxgraph.model.mxIGraphModel model, java.lang.Object cell, boolean includeNormal, boolean includeOrder)
protected com.mxgraph.view.mxGraph createGraph()
createGraph
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public de.ims.icarus.plugins.jgraph.util.CellBuffer exportCells(java.lang.Object[] cells)
exportCells
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public void importCells(de.ims.icarus.plugins.jgraph.util.CellBuffer buffer)
importCells
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public java.lang.Object[] importCells(java.lang.Object[] cells, double dx, double dy, java.lang.Object target, java.awt.Point location)
importCells
in class com.mxgraph.swing.mxGraphComponent
public void cloneCells(java.lang.Object[] cells)
cloneCells
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public void addNode()
addNode
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public void addDisjunction()
public void addEdge(java.lang.Object source, java.lang.Object target, boolean orderEdge)
addEdge
in class de.ims.icarus.plugins.jgraph.view.GraphPresenter
public boolean isDisjuntiveRoots()
public void setDisjuntiveRoots(boolean disjuntiveRoots)
public ConstraintContext getConstraintContext()
public void setConstraintContext(ConstraintContext context)
public SearchGraph getData()
protected void ensureTree(java.lang.Object newEdge)