Class 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
      • Methods inherited from class com.mxgraph.swing.util.mxMouseAdapter

        mouseClicked, mouseEntered, mouseExited
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphOperationsController

        public GraphOperationsController​(com.mxgraph.swing.mxGraphComponent graphcomponent)
        Creates a new graph controller.
        Parameters:
        graphcomponent - The graph component.
    • Method Detail

      • mousePressed

        public void mousePressed​(java.awt.event.MouseEvent e)
        Specified by:
        mousePressed in interface java.awt.event.MouseListener
        Overrides:
        mousePressed in class com.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 class com.mxgraph.swing.handler.mxGraphHandler
      • fold

        protected void fold​(java.lang.Object cell)
        Fold cells.
        Overrides:
        fold in class com.mxgraph.swing.handler.mxGraphHandler
      • createMarker

        protected com.mxgraph.swing.handler.mxCellMarker createMarker()
        Creates the marker.
        Overrides:
        createMarker in class com.mxgraph.swing.handler.mxGraphHandler
      • pseudoCollapse

        public static final void pseudoCollapse​(VSubProcess sp)