public static class mxGraphView.mxCurrentRootChange extends Object implements mxUndoableEdit.mxUndoableChange
Modifier and Type | Field and Description |
---|---|
protected Object |
previous |
protected Object |
root |
protected boolean |
up |
protected mxGraphView |
view |
Constructor and Description |
---|
mxCurrentRootChange(mxGraphView view,
Object root)
Constructs a change of the current root in the given view.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
Changes the current root of the view.
|
Object |
getPrevious()
Returns the previous root.
|
Object |
getRoot()
Returns the root.
|
mxGraphView |
getView()
Returns the graph view where the change happened.
|
boolean |
isUp()
Returns true if the drilling went upwards.
|
protected mxGraphView view
protected Object root
protected Object previous
protected boolean up
public mxCurrentRootChange(mxGraphView view, Object root)
public mxGraphView getView()
public Object getRoot()
public Object getPrevious()
public boolean isUp()
public void execute()
execute
in interface mxUndoableEdit.mxUndoableChange
Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.