Package com.mxgraph.model
Class mxGraphModel.mxCollapseChange
- java.lang.Object
-
- com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
-
- com.mxgraph.model.mxGraphModel.mxCollapseChange
-
- All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
- Enclosing class:
- mxGraphModel
public static class mxGraphModel.mxCollapseChange extends mxIGraphModel.mxAtomicGraphModelChange
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Object
cell
protected boolean
collapsed
protected boolean
previous
-
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
-
-
Constructor Summary
Constructors Constructor Description mxCollapseChange()
mxCollapseChange(mxGraphModel model, java.lang.Object cell, boolean collapsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
Changes the root of the model.java.lang.Object
getCell()
boolean
getPrevious()
boolean
isCollapsed()
void
setCell(java.lang.Object value)
void
setCollapsed(boolean value)
void
setPrevious(boolean value)
-
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
-
-
-
-
Constructor Detail
-
mxCollapseChange
public mxCollapseChange()
-
mxCollapseChange
public mxCollapseChange(mxGraphModel model, java.lang.Object cell, boolean collapsed)
-
-
Method Detail
-
setCell
public void setCell(java.lang.Object value)
-
getCell
public java.lang.Object getCell()
- Returns:
- the cell
-
setCollapsed
public void setCollapsed(boolean value)
-
isCollapsed
public boolean isCollapsed()
- Returns:
- the collapsed
-
setPrevious
public void setPrevious(boolean value)
-
getPrevious
public boolean getPrevious()
- Returns:
- the previous
-
execute
public void execute()
Changes the root of the model.- Specified by:
execute
in interfacemxUndoableEdit.mxUndoableChange
- Specified by:
execute
in classmxIGraphModel.mxAtomicGraphModelChange
-
-