Class GraphOperationsController
- java.lang.Object
-
- com.mxgraph.swing.util.mxMouseAdapter
-
- com.mxgraph.swing.handler.mxGraphHandler
-
- jadex.bpmn.editor.gui.controllers.GraphOperationsController
-
- All Implemented Interfaces:
java.awt.dnd.DropTargetListener
,java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.util.EventListener
public class GraphOperationsController extends com.mxgraph.swing.handler.mxGraphHandler
This controller handles certain operations concerning the graph such as object movement.
-
-
Field Summary
-
Fields inherited from class com.mxgraph.swing.handler.mxGraphHandler
bbox, canImport, cell, cellBounds, cells, centerPreview, cloneEnabled, constrainedEvent, currentDropTarget, DEFAULT_CURSOR, dragCells, dragImage, enabled, first, FOLD_CURSOR, graphComponent, gridEnabledEvent, imagePreview, initialCell, keepOnTop, livePreview, marker, markerEnabled, MOVE_CURSOR, moveEnabled, movePreview, previewBounds, removeCellsFromParent, selectEnabled, transferBounds, visible
-
-
Constructor Summary
Constructors Constructor Description GraphOperationsController(com.mxgraph.swing.mxGraphComponent graphcomponent)
Creates a new graph controller.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.mxgraph.swing.handler.mxCellMarker
createMarker()
Creates the marker.protected void
fold(java.lang.Object cell)
Fold cells.void
mousePressed(java.awt.event.MouseEvent e)
protected void
moveCells(java.lang.Object[] cells, double dx, double dy, java.lang.Object target, java.awt.event.MouseEvent e)
Moves the cells.static void
pseudoCollapse(VSubProcess sp)
-
Methods inherited from class com.mxgraph.swing.handler.mxGraphHandler
convertPoint, createEvent, createMovePreview, dragEnter, dragExit, dragOver, drop, dropActionChanged, getCells, getCursor, getDropTarget, getGraphComponent, getGraphTransferHandler, getMarker, getMovePreview, getPreviewLocation, installDragGestureHandler, installDropTargetHandler, isCenterPreview, isCloneEnabled, isEnabled, isImagePreview, isLivePreview, isMarkerEnabled, isMoveEnabled, isRemoveCellsFromParent, isSelectEnabled, isVisible, mouseDragged, mouseMoved, mouseReleased, paint, reset, setCenterPreview, setCloneEnabled, setEnabled, setImagePreview, setLivePreview, setMarker, setMarkerEnabled, setMoveEnabled, setPreviewBounds, setRemoveCellsFromParent, setSelectEnabled, setVisible, shouldRemoveCellFromParent, start, updateDragImage
-
-
-
-
Method Detail
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent e)
- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
- Overrides:
mousePressed
in classcom.mxgraph.swing.handler.mxGraphHandler
-
moveCells
protected void moveCells(java.lang.Object[] cells, double dx, double dy, java.lang.Object target, java.awt.event.MouseEvent e)
Moves the cells.- Overrides:
moveCells
in classcom.mxgraph.swing.handler.mxGraphHandler
-
fold
protected void fold(java.lang.Object cell)
Fold cells.- Overrides:
fold
in classcom.mxgraph.swing.handler.mxGraphHandler
-
createMarker
protected com.mxgraph.swing.handler.mxCellMarker createMarker()
Creates the marker.- Overrides:
createMarker
in classcom.mxgraph.swing.handler.mxGraphHandler
-
pseudoCollapse
public static final void pseudoCollapse(VSubProcess sp)
-
-