mxGraph 2.5.0.1


com.mxgraph.model
Class mxGraphModel.mxStyleChange

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

public static class mxGraphModel.mxStyleChange
extends mxIGraphModel.mxAtomicGraphModelChange


Field Summary
protected  Object cell
           
protected  String previous
           
protected  String style
           
 
Fields inherited from class com.mxgraph.model.mxIGraphModel.mxAtomicGraphModelChange
model
 
Constructor Summary
mxGraphModel.mxStyleChange()
           
mxGraphModel.mxStyleChange(mxGraphModel model, Object cell, String style)
           
 
Method Summary
 void execute()
          Changes the root of the model.
 Object getCell()
           
 String getPrevious()
           
 String getStyle()
           
 void setCell(Object value)
           
 void setPrevious(String value)
           
 void setStyle(String 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

style

protected String style

previous

protected String previous
Constructor Detail

mxGraphModel.mxStyleChange

public mxGraphModel.mxStyleChange()

mxGraphModel.mxStyleChange

public mxGraphModel.mxStyleChange(mxGraphModel model,
                                  Object cell,
                                  String style)
Method Detail

setCell

public void setCell(Object value)

getCell

public Object getCell()
Returns:
the cell

setStyle

public void setStyle(String value)

getStyle

public String getStyle()
Returns:
the style

setPrevious

public void setPrevious(String value)

getPrevious

public String 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.1


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