Package com.mxgraph.view
Class mxGraphView.mxCurrentRootChange
java.lang.Object
com.mxgraph.view.mxGraphView.mxCurrentRootChange
- All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
- Enclosing class:
mxGraphView
public static class mxGraphView.mxCurrentRootChange
extends Object
implements mxUndoableEdit.mxUndoableChange
Action to change the current root in a view.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionmxCurrentRootChange
(mxGraphView view, Object root) Constructs a change of the current root in the given view. -
Method Summary
-
Field Details
-
view
-
root
-
previous
-
up
protected boolean up
-
-
Constructor Details
-
mxCurrentRootChange
Constructs a change of the current root in the given view.
-
-
Method Details
-
getView
Returns the graph view where the change happened. -
getRoot
Returns the root. -
getPrevious
Returns the previous root. -
isUp
public boolean isUp()Returns true if the drilling went upwards. -
execute
public void execute()Changes the current root of the view.- Specified by:
execute
in interfacemxUndoableEdit.mxUndoableChange
-