mxGraph 2.5.0.2


com.mxgraph.model
Class mxGraphModel.mxCollapseChange

java.lang.Object
  extended by com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
      extended by com.mxgraph.model.mxGraphModel.mxCollapseChange
All Implemented Interfaces:
mxUndoableEdit.mxUndoableChange
Enclosing class:
mxGraphModel

public static class mxGraphModel.mxCollapseChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  boolean collapsed
           
protected  boolean previous
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxCollapseChange()
           
mxGraphModel.mxCollapseChange(mxGraphModel model, Object cell, boolean collapsed)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 boolean getPrevious()
           
 boolean isCollapsed()
           
 void setCell(Object value)
           
 void setCollapsed(boolean value)
           
 void setPrevious(boolean value)
           
 
Methods inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
getModel, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cell

protected Object cell

collapsed

protected boolean collapsed

previous

protected boolean previous
Constructor Detail

mxGraphModel.mxCollapseChange

public mxGraphModel.mxCollapseChange()

mxGraphModel.mxCollapseChange

public mxGraphModel.mxCollapseChange(mxGraphModel model,
                                     Object cell,
                                     boolean collapsed)
Method Detail

setCell

public void setCell(Object value)

getCell

public 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 interface mxUndoableEdit.mxUndoableChange
Specified by:
execute in class mxIGraphModel.mxAtomicGraphModelChange

mxGraph 2.5.0.2


Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.