本文整理了Java中com.mxgraph.view.mxGraph.cellsAdded()
方法的一些代码示例,展示了mxGraph.cellsAdded()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。mxGraph.cellsAdded()
方法的具体详情如下:
包路径:com.mxgraph.view.mxGraph
类名称:mxGraph
方法名:cellsAdded
[英]Adds the specified cells to the given parent. This method fires mxEvent.CELLS_ADDED while the transaction is in progress.
[中]将指定的单元格添加到给定的父单元格。此方法触发mxEvent。在事务处理过程中添加的单元格。
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Adds the specified cells to the given parent. This method fires
* mxEvent.CELLS_ADDED while the transaction is in progress.
*/
public void cellsAdded(Object[] cells, Object parent, Integer index,
Object source, Object target, boolean absolute)
{
cellsAdded(cells, parent, index, source, target, absolute, true);
}
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Adds the specified cells to the given parent. This method fires
* mxEvent.CELLS_ADDED while the transaction is in progress.
*/
public void cellsAdded(Object[] cells, Object parent, Integer index,
Object source, Object target, boolean absolute)
{
cellsAdded(cells, parent, index, source, target, absolute, true);
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
int index = model.getChildCount(parent);
cellsAdded(children, parent, index, null, null, true);
result.addAll(Arrays.asList(children));
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
int index = model.getChildCount(parent);
cellsAdded(children, parent, index, null, null, true);
result.addAll(Arrays.asList(children));
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
cellsAdded(cells, parent, model.getChildCount(parent), null, null,
true);
cellsAdded(new Object[] { newEdge }, parent,
model.getChildCount(parent), source, cells[0], false);
cellConnected(edge, cells[0], true, null);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
cellsAdded(cells, parent, model.getChildCount(parent), null, null,
true);
cellsAdded(new Object[] { newEdge }, parent,
model.getChildCount(parent), source, cells[0], false);
cellConnected(edge, cells[0], true, null);
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
/**
* Removes the specified cells from their parents and adds them to the
* default parent.
*
* @param cells Array of cells to be removed from their parents.
* @return Returns the cells that were removed from their parents.
*/
public Object[] removeCellsFromParent(Object[] cells)
{
if (cells == null)
{
cells = getSelectionCells();
}
model.beginUpdate();
try
{
Object parent = getDefaultParent();
int index = model.getChildCount(parent);
cellsAdded(cells, parent, index, null, null, true);
fireEvent(new mxEventObject(mxEvent.REMOVE_CELLS_FROM_PARENT,
"cells", cells));
}
finally
{
model.endUpdate();
}
return cells;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
try
cellsAdded(cells, parent, index, source, target, false, true);
fireEvent(new mxEventObject(mxEvent.ADD_CELLS, "cells", cells,
"parent", parent, "index", index, "source", source,
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
try
cellsAdded(cells, parent, index, source, target, false, true);
fireEvent(new mxEventObject(mxEvent.ADD_CELLS, "cells", cells,
"parent", parent, "index", index, "source", source,
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
/**
* Removes the specified cells from their parents and adds them to the
* default parent.
*
* @param cells Array of cells to be removed from their parents.
* @return Returns the cells that were removed from their parents.
*/
public Object[] removeCellsFromParent(Object[] cells)
{
if (cells == null)
{
cells = getSelectionCells();
}
model.beginUpdate();
try
{
Object parent = getDefaultParent();
int index = model.getChildCount(parent);
cellsAdded(cells, parent, index, null, null, true);
fireEvent(new mxEventObject(mxEvent.REMOVE_CELLS_FROM_PARENT,
"cells", cells));
}
finally
{
model.endUpdate();
}
return cells;
}
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
cellsAdded(cells, group, index, null, null, false);
cellsMoved(cells, -bounds.getX(), -bounds.getY(), false, true);
cellsAdded(new Object[] { group }, parent, index, null, null,
false, false);
cellsResized(new Object[] { group },
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
cellsAdded(cells, group, index, null, null, false);
cellsMoved(cells, -bounds.getX(), -bounds.getY(), false, true);
cellsAdded(new Object[] { group }, parent, index, null, null,
false, false);
cellsResized(new Object[] { group },
代码示例来源:origin: org.tinyjee.jgraphx/jgraphx
cellsAdded(cells, target, index, null, null, true);
代码示例来源:origin: com.github.vlsi.mxgraph/jgraphx
cellsAdded(cells, target, index, null, null, true);
内容来源于网络,如有侵权,请联系作者删除!