本文整理了Java中com.mxgraph.view.mxGraph.cellsOrdered()
方法的一些代码示例,展示了mxGraph.cellsOrdered()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.cellsOrdered()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:cellsOrdered
[英]Moves the given cells to the front or back. This method fires mxEvent.CELLS_ORDERED while the transaction is in progress.
[中]将给定单元格向前或向后移动。此方法触发mxEvent。在事务处理过程中订购的单元格。
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Moves the given cells to the front or back. The change is carried out
* using cellsOrdered. This method fires mxEvent.ORDER_CELLS while the
* transaction is in progress.
*
* @param back Specifies if the cells should be moved to back.
* @param cells Array of cells whose order should be changed. If null is
* specified then the selection cells are used.
*/
public Object[] orderCells(boolean back, Object[] cells)
{
if (cells == null)
{
cells = mxUtils.sortCells(getSelectionCells(), true);
}
model.beginUpdate();
try
{
cellsOrdered(cells, back);
fireEvent(new mxEventObject(mxEvent.ORDER_CELLS, "cells", cells,
"back", back));
}
finally
{
model.endUpdate();
}
return cells;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Moves the given cells to the front or back. The change is carried out
* using cellsOrdered. This method fires mxEvent.ORDER_CELLS while the
* transaction is in progress.
*
* @param back Specifies if the cells should be moved to back.
* @param cells Array of cells whose order should be changed. If null is
* specified then the selection cells are used.
*/
public Object[] orderCells(boolean back, Object[] cells)
{
if (cells == null)
{
cells = mxUtils.sortCells(getSelectionCells(), true);
}
model.beginUpdate();
try
{
cellsOrdered(cells, back);
fireEvent(new mxEventObject(mxEvent.ORDER_CELLS, "cells", cells,
"back", back));
}
finally
{
model.endUpdate();
}
return cells;
}
内容来源于网络,如有侵权,请联系作者删除!